public class JmxMetricsExposerImpl extends Object implements JmxMetricsExposer, Startable
Constructor and Description |
---|
JmxMetricsExposerImpl(InstrumentationMetricsCollector instrumentationMetricsCollector,
ApplicationProperties applicationProperties,
MessageHandlerService messageHandlerService,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getExposedMetricNames() |
void |
init()
Initializes the service.
|
boolean |
isJmxEnabled() |
void |
publishRefreshMessage()
Publishes a cluster-wide message to refresh JMX state.
|
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
void |
startExposing()
Collects currently available metrics and exposes them through JMX.
|
void |
stopExposing()
Unregisters currently registered metrics from JMX.
|
public JmxMetricsExposerImpl(InstrumentationMetricsCollector instrumentationMetricsCollector, ApplicationProperties applicationProperties, MessageHandlerService messageHandlerService, com.atlassian.event.api.EventPublisher eventPublisher)
public void startExposing()
JmxMetricsExposer
startExposing
in interface JmxMetricsExposer
public void publishRefreshMessage()
JmxMetricsExposer
publishRefreshMessage
in interface JmxMetricsExposer
public void stopExposing()
JmxMetricsExposer
stopExposing
in interface JmxMetricsExposer
public List<String> getExposedMetricNames()
getExposedMetricNames
in interface JmxMetricsExposer
public boolean isJmxEnabled()
isJmxEnabled
in interface JmxMetricsExposer
public void init()
JmxMetricsExposer
init
in interface JmxMetricsExposer
Copyright © 2002-2019 Atlassian. All Rights Reserved.