org.smallmind.instrument
Class MetricRegistry
java.lang.Object
org.smallmind.instrument.MetricRegistry
public class MetricRegistry
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetricRegistry
public MetricRegistry()
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.