Class CustomMeter.Noop<T>
java.lang.Object
com.atlassian.diagnostics.ipd.api.meters.AbstractIpdMeter
com.atlassian.diagnostics.ipd.api.meters.IpdMeter.NoopMeter
com.atlassian.diagnostics.ipd.api.meters.CustomMeter.Noop<T>
- All Implemented Interfaces:
CustomMeter<T>,IpdMeter
- Enclosing interface:
CustomMeter<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.diagnostics.ipd.api.meters.CustomMeter
CustomMeter.MBeanSupplier<BEAN_TYPE>, CustomMeter.Noop<T>Nested classes/interfaces inherited from interface com.atlassian.diagnostics.ipd.api.meters.IpdMeter
IpdMeter.NoopMeter -
Field Summary
Fields inherited from interface com.atlassian.diagnostics.ipd.api.meters.CustomMeter
TYPE_ID -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.atlassian.diagnostics.ipd.api.meters.IpdMeter.NoopMeter
getAttributes, isVisible, registerMBean, unregisterMBeanMethods inherited from class com.atlassian.diagnostics.ipd.api.meters.AbstractIpdMeter
close, getConfig, getMeterKey, getObjectName, hideUntilUpdate, isClosed, isEnabled, lastUpdateMillis, metricUpdatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.diagnostics.ipd.api.meters.IpdMeter
close, getAttributes, getConfig, getMeterKey, getObjectName, hideUntilUpdate, isClosed, isEnabled, isVisible, lastUpdateMillis
-
Constructor Details
-
Noop
-
-
Method Details
-
getMBeanObject
Description copied from interface:CustomMeterThe returned object holds attribute data that are exposed to JMX. You can update the meter state directly by calling methods on this instance.However, any changes made through this instance will bypass enabled checks of this meter.
Do not keep this MBeanObject instance long-term.
Direct updates won't be logged to file when the meter is configured asMeterConfigBuilder.setLogOnUpdate(boolean).- Specified by:
getMBeanObjectin interfaceCustomMeter<T>- Returns:
- the object that will be exposed to JMX
-
getTypeId
Description copied from interface:IpdMeterIdentifies type of the meter. -
update
Description copied from interface:CustomMeterUpdates the meter state by calling the updater function. Updater function will be called only when the meter is enabled.Updates made through this instance will be logged to file when the meter is configured as
MeterConfigBuilder.setLogOnUpdate(boolean).- Specified by:
updatein interfaceCustomMeter<T>- Parameters:
updater- function that updates the meter state
-