org.smallmind.instrument
Class MetricRegistry

java.lang.Object
  extended by org.smallmind.instrument.MetricRegistry

public class MetricRegistry
extends Object


Constructor Summary
MetricRegistry()
           
 
Method Summary
<M extends Metric>
M
instrument(Metrics.MetricBuilder<M> builder, String domain, MetricProperty... properties)
           
 void register()
           
 void setJmxNamingPolicy(JMXNamingPolicy jmxNamingPolicy)
           
 void setServer(MBeanServer server)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricRegistry

public MetricRegistry()
Method Detail

setServer

public void setServer(MBeanServer server)

setJmxNamingPolicy

public void setJmxNamingPolicy(JMXNamingPolicy jmxNamingPolicy)

register

public void register()

instrument

public <M extends Metric> M instrument(Metrics.MetricBuilder<M> builder,
                                       String domain,
                                       MetricProperty... properties)
                            throws MalformedObjectNameException,
                                   InstanceAlreadyExistsException,
                                   MBeanRegistrationException,
                                   NotCompliantMBeanException
Throws:
MalformedObjectNameException
InstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException


Copyright © 2012. All Rights Reserved.