public class JmxReporter extends Object implements DynamicMBean
| Constructor and Description |
|---|
JmxReporter(MetricRegistry registry)
Instantiates a new JMX reporter.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attributeNameOrPath) |
AttributeList |
getAttributes(String[] attributeNames) |
MBeanInfo |
getMBeanInfo() |
Object |
invoke(String operationName,
Object[] params,
String[] signature) |
void |
register(String domain,
String description)
Register.
|
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
public JmxReporter(MetricRegistry registry)
registry - the registry in which the metrics, that this JMXReporter
reports, are storedpublic Object getAttribute(String attributeNameOrPath) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList getAttributes(String[] attributeNames)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanpublic Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic void register(String domain, String description) throws MalformedObjectNameException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
domain - the domaindescription - the descriptionMalformedObjectNameException - the malformed object name exceptionInstanceAlreadyExistsException - the instance already exists exceptionMBeanRegistrationException - the m bean registration exceptionNotCompliantMBeanException - the not compliant M bean exceptionCopyright © 2018. All rights reserved.