com.sun.tracing.Provider Java Examples

The following examples show how to use com.sun.tracing.Provider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MultiplexProviderFactory.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public <T extends Provider> T createProvider(Class<T> cls) {
    HashSet<Provider> providers = new HashSet<Provider>();
    for (ProviderFactory factory : factories) {
        providers.add(factory.createProvider(cls));
    }
    MultiplexProvider provider = new MultiplexProvider(cls, providers);
    provider.init();
    return provider.newProxyInstance();
}
 
Example #2
Source File: MultiplexProviderFactory.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
MultiplexProbe(Method m, Set<Provider> providers) {
    super(m.getParameterTypes());
    probes = new HashSet<Probe>();
    for (Provider p : providers) {
        Probe probe = p.getProbe(m);
        if (probe != null) {
            probes.add(probe);
        }
    }
}
 
Example #3
Source File: MultiplexProviderFactory.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
MultiplexProbe(Method m, Set<Provider> providers) {
    super(m.getParameterTypes());
    probes = new HashSet<Probe>();
    for (Provider p : providers) {
        Probe probe = p.getProbe(m);
        if (probe != null) {
            probes.add(probe);
        }
    }
}
 
Example #4
Source File: MultiplexProviderFactory.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public <T extends Provider> T createProvider(Class<T> cls) {
    HashSet<Provider> providers = new HashSet<Provider>();
    for (ProviderFactory factory : factories) {
        providers.add(factory.createProvider(cls));
    }
    MultiplexProvider provider = new MultiplexProvider(cls, providers);
    provider.init();
    return provider.newProxyInstance();
}
 
Example #5
Source File: MultiplexProviderFactory.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
MultiplexProbe(Method m, Set<Provider> providers) {
    super(m.getParameterTypes());
    probes = new HashSet<Probe>();
    for (Provider p : providers) {
        Probe probe = p.getProbe(m);
        if (probe != null) {
            probes.add(probe);
        }
    }
}
 
Example #6
Source File: MultiplexProviderFactory.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public <T extends Provider> T createProvider(Class<T> cls) {
    HashSet<Provider> providers = new HashSet<Provider>();
    for (ProviderFactory factory : factories) {
        providers.add(factory.createProvider(cls));
    }
    MultiplexProvider provider = new MultiplexProvider(cls, providers);
    provider.init();
    return provider.newProxyInstance();
}
 
Example #7
Source File: MultiplexProviderFactory.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public <T extends Provider> T createProvider(Class<T> cls) {
    HashSet<Provider> providers = new HashSet<Provider>();
    for (ProviderFactory factory : factories) {
        providers.add(factory.createProvider(cls));
    }
    MultiplexProvider provider = new MultiplexProvider(cls, providers);
    provider.init();
    return provider.newProxyInstance();
}
 
Example #8
Source File: MultiplexProviderFactory.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public <T extends Provider> T createProvider(Class<T> cls) {
    HashSet<Provider> providers = new HashSet<Provider>();
    for (ProviderFactory factory : factories) {
        providers.add(factory.createProvider(cls));
    }
    MultiplexProvider provider = new MultiplexProvider(cls, providers);
    provider.init();
    return provider.newProxyInstance();
}
 
Example #9
Source File: MultiplexProviderFactory.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
MultiplexProbe(Method m, Set<Provider> providers) {
    super(m.getParameterTypes());
    probes = new HashSet<Probe>();
    for (Provider p : providers) {
        Probe probe = p.getProbe(m);
        if (probe != null) {
            probes.add(probe);
        }
    }
}
 
Example #10
Source File: MultiplexProviderFactory.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public <T extends Provider> T createProvider(Class<T> cls) {
    HashSet<Provider> providers = new HashSet<Provider>();
    for (ProviderFactory factory : factories) {
        providers.add(factory.createProvider(cls));
    }
    MultiplexProvider provider = new MultiplexProvider(cls, providers);
    provider.init();
    return provider.newProxyInstance();
}
 
Example #11
Source File: MultiplexProviderFactory.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public <T extends Provider> T createProvider(Class<T> cls) {
    HashSet<Provider> providers = new HashSet<Provider>();
    for (ProviderFactory factory : factories) {
        providers.add(factory.createProvider(cls));
    }
    MultiplexProvider provider = new MultiplexProvider(cls, providers);
    provider.init();
    return provider.newProxyInstance();
}
 
Example #12
Source File: MultiplexProviderFactory.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
MultiplexProbe(Method m, Set<Provider> providers) {
    super(m.getParameterTypes());
    probes = new HashSet<Probe>();
    for (Provider p : providers) {
        Probe probe = p.getProbe(m);
        if (probe != null) {
            probes.add(probe);
        }
    }
}
 
Example #13
Source File: MultiplexProviderFactory.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
MultiplexProbe(Method m, Set<Provider> providers) {
    super(m.getParameterTypes());
    probes = new HashSet<Probe>();
    for (Provider p : providers) {
        Probe probe = p.getProbe(m);
        if (probe != null) {
            probes.add(probe);
        }
    }
}
 
Example #14
Source File: ProviderSkeleton.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Initializes the provider.
 *
 * @param type the user's interface
 */
protected ProviderSkeleton(Class<? extends Provider> type) {
    this.active = false; // in case of some error during initialization
    this.providerType = type;
    this.probes = new HashMap<Method,ProbeSkeleton>();
}
 
Example #15
Source File: PrintStreamProviderFactory.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
PrintStreamProvider(Class<? extends Provider> type, PrintStream stream) {
    super(type);
    this.stream = stream;
    this.providerName = getProviderName();
}
 
Example #16
Source File: PrintStreamProviderFactory.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
PrintStreamProvider(Class<? extends Provider> type, PrintStream stream) {
    super(type);
    this.stream = stream;
    this.providerName = getProviderName();
}
 
Example #17
Source File: ProviderSkeleton.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Initializes the provider.
 *
 * @param type the user's interface
 */
protected ProviderSkeleton(Class<? extends Provider> type) {
    this.active = false; // in case of some error during initialization
    this.providerType = type;
    this.probes = new HashMap<Method,ProbeSkeleton>();
}
 
Example #18
Source File: MultiplexProviderFactory.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
MultiplexProvider(Class<? extends Provider> type, Set<Provider> providers) {
    super(type);
    this.providers = providers;
}
 
Example #19
Source File: DTraceProvider.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
DTraceProvider(Class<? extends Provider> type) {
    super(type);
}
 
Example #20
Source File: ProviderSkeleton.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Initializes the provider.
 *
 * @param type the user's interface
 */
protected ProviderSkeleton(Class<? extends Provider> type) {
    this.active = false; // in case of some error during initialization
    this.providerType = type;
    this.probes = new HashMap<Method,ProbeSkeleton>();
}
 
Example #21
Source File: MultiplexProviderFactory.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public void dispose() {
    for (Provider p : providers) {
        p.dispose();
    }
    super.dispose();
}
 
Example #22
Source File: DTraceProvider.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
DTraceProvider(Class<? extends Provider> type) {
    super(type);
}
 
Example #23
Source File: NullProviderFactory.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
NullProvider(Class<? extends Provider> type) {
    super(type);
}
 
Example #24
Source File: PrintStreamProviderFactory.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public <T extends Provider> T createProvider(Class<T> cls) {
    PrintStreamProvider provider = new PrintStreamProvider(cls, stream);
    provider.init();
    return provider.newProxyInstance();
}
 
Example #25
Source File: MultiplexProviderFactory.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public void dispose() {
    for (Provider p : providers) {
        p.dispose();
    }
    super.dispose();
}
 
Example #26
Source File: NullProviderFactory.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
NullProvider(Class<? extends Provider> type) {
    super(type);
}
 
Example #27
Source File: MultiplexProviderFactory.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
MultiplexProvider(Class<? extends Provider> type, Set<Provider> providers) {
    super(type);
    this.providers = providers;
}
 
Example #28
Source File: PrintStreamProviderFactory.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public <T extends Provider> T createProvider(Class<T> cls) {
    PrintStreamProvider provider = new PrintStreamProvider(cls, stream);
    provider.init();
    return provider.newProxyInstance();
}
 
Example #29
Source File: ProviderSkeleton.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Initializes the provider.
 *
 * @param type the user's interface
 */
protected ProviderSkeleton(Class<? extends Provider> type) {
    this.active = false; // in case of some error during initialization
    this.providerType = type;
    this.probes = new HashMap<Method,ProbeSkeleton>();
}
 
Example #30
Source File: DTraceProvider.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
DTraceProvider(Class<? extends Provider> type) {
    super(type);
}