Class JmxCopyMeterImpl
java.lang.Object
com.atlassian.diagnostics.ipd.api.meters.AbstractIpdMeter
com.atlassian.diagnostics.internal.ipd.metrics.JmxCopyMeterImpl
- All Implemented Interfaces:
IpdMeter,JmxCopyMeter
Metric that copies ATTRIBUTES from another JMX bean.
- Since:
- 3.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.diagnostics.ipd.api.meters.IpdMeter
IpdMeter.NoopMeterNested classes/interfaces inherited from interface com.atlassian.diagnostics.ipd.api.meters.JmxCopyMeter
JmxCopyMeter.Noop -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AtomicBooleanprotected final MBeanServerprotected final com.atlassian.util.profiling.MetricKeyFields inherited from interface com.atlassian.diagnostics.ipd.api.meters.JmxCopyMeter
NOOP_FACTORY, TYPE_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJmxCopyMeterImpl(MeterConfig config, MBeanServer mBeanServer, ObjectName sourceBeanName, List<String> allAttributes, List<String> shortAttributes) -
Method Summary
Modifier and TypeMethodDescriptionstatic MeterFactory<JmxCopyMeter> getAttributes(boolean extraAttributes) getAttributes(boolean extraAttributes, ObjectName sourceObjectName) booleanvoidvoidvoidupdate()Methods 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, getConfig, getMeterKey, getObjectName, hideUntilUpdate, isClosed, isEnabled, isVisible, lastUpdateMillisMethods inherited from interface com.atlassian.diagnostics.ipd.api.meters.JmxCopyMeter
getTypeId
-
Field Details
-
mBeanServer
-
jmxRegistered
-
profilingKey
protected final com.atlassian.util.profiling.MetricKey profilingKey
-
-
Constructor Details
-
JmxCopyMeterImpl
protected JmxCopyMeterImpl(MeterConfig config, MBeanServer mBeanServer, ObjectName sourceBeanName, List<String> allAttributes, List<String> shortAttributes)
-
-
Method Details
-
registerMBean
public void registerMBean() -
update
public void update()- Specified by:
updatein interfaceJmxCopyMeter
-
getAttributes
- Specified by:
getAttributesin interfaceIpdMeter
-
unregisterMBean
public void unregisterMBean() -
factory
public static MeterFactory<JmxCopyMeter> factory(ObjectName sourceBeanName, List<String> allAttributes, List<String> shortAttributes) -
getAttributes
-
isVisible
public boolean isVisible()
-