org.ow2.jasmine.monitoring.mbeancmd.sampling
Class SamplerFactory

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.SamplerFactory

public class SamplerFactory
extends java.lang.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.
 
Method Summary
static Sampler newSampler(java.lang.String type)
          Creates a sampler of a given type.
static Sampler newSampler(java.lang.String type, java.lang.String urlString)
          Creates a sampler of a given type and a given JMX URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamplerFactory

protected SamplerFactory()
Dummy constructor to avoid the class from being used in any other way than calling the CommandDispatcher.newSampler method.

Method Detail

newSampler

public static Sampler newSampler(java.lang.String type)
Creates a sampler of a given type. Calls newSampler(String, String) with urlString set to null.

Parameters:
type - Sampler type.
Returns:
Created sampler, null if type doesn't match any sampler.

newSampler

public static Sampler newSampler(java.lang.String type,
                                 java.lang.String urlString)
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.