org.ow2.jasmine.monitoring.mbeancmd.sampling
Class SamplerFactory
java.lang.Object
org.ow2.jasmine.monitoring.mbeancmd.sampling.SamplerFactory
public class SamplerFactory
- extends Object
Sampler factory.
|
Constructor Summary |
protected |
SamplerFactory()
Dummy constructor to avoid the class from being used
in any other way than calling the CommandDispatcher.newSampler method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SamplerFactory
protected SamplerFactory()
- Dummy constructor to avoid the class from being used
in any other way than calling the CommandDispatcher.newSampler method.
newSampler
public static Sampler newSampler(String type,
String onPattern,
SamplerContext context)
- Creates a sampler of a given type and a given JMX URL.
- Parameters:
type - Sampler type.urlString - JMX URL.
- Returns:
- Created sampler, null if type doesn't match any sampler.
Copyright © 2012 OW2 Consortium. All Rights Reserved.