Class IpdMeter.NoopMeter
java.lang.Object
com.atlassian.diagnostics.ipd.api.meters.AbstractIpdMeter
com.atlassian.diagnostics.ipd.api.meters.IpdMeter.NoopMeter
- All Implemented Interfaces:
IpdMeter
- Direct Known Subclasses:
CounterMeter.Noop,CustomMeter.Noop,JmxCopyMeter.Noop,StatsMeter.Noop,ValueMeter.Noop
- Enclosing interface:
IpdMeter
Noop implementation of
IpdMeter. Does nothing. Meter is won't be visible in JMX.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.diagnostics.ipd.api.meters.IpdMeter
IpdMeter.NoopMeter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributes(boolean extraAttributes) Returns the attributes of the meter.booleanMeter might be enabled, but temporarily hidden in JMX.protected voidRegisters the MBean in the MBeanServer.
Method will be called when the meter is enabled and is visible in JMX.protected voidUnregisters the MBean from the MBeanServer.Methods inherited from class com.atlassian.diagnostics.ipd.api.meters.AbstractIpdMeter
close, getConfig, getMeterKey, getObjectName, hideUntilUpdate, isClosed, isEnabled, lastUpdateMillis, metricUpdated
-
Constructor Details
-
NoopMeter
-
-
Method Details
-
registerMBean
protected void registerMBean()Description copied from class:AbstractIpdMeterRegisters the MBean in the MBeanServer.
Method will be called when the meter is enabled and is visible in JMX.- Specified by:
registerMBeanin classAbstractIpdMeter
-
unregisterMBean
protected void unregisterMBean()Description copied from class:AbstractIpdMeterUnregisters the MBean from the MBeanServer.
Method will be called when the meter is closed or is hidden from JMX.- Specified by:
unregisterMBeanin classAbstractIpdMeter
-
isVisible
public boolean isVisible()Description copied from interface:IpdMeterMeter might be enabled, but temporarily hidden in JMX. This might happen when meter value was not set yet or methodIpdMeter.hideUntilUpdate()was called.- Returns:
- true if the meter is visible in JMX, false otherwise
-
getAttributes
Description copied from interface:IpdMeterReturns the attributes of the meter.- Parameters:
extraAttributes- if true, all attributes visible in JMX will be returned, otherwise only the most important ones- Returns:
- Map of meter attributes, will return empty map if attributes can't be retrieved
-