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()
JmxMetricsExposerstartExposing in interface JmxMetricsExposerpublic void publishRefreshMessage()
JmxMetricsExposerpublishRefreshMessage in interface JmxMetricsExposerpublic void stopExposing()
JmxMetricsExposerstopExposing in interface JmxMetricsExposerpublic List<String> getExposedMetricNames()
getExposedMetricNames in interface JmxMetricsExposerpublic boolean isJmxEnabled()
isJmxEnabled in interface JmxMetricsExposerpublic void init()
JmxMetricsExposerinit in interface JmxMetricsExposerCopyright © 2002-2019 Atlassian. All Rights Reserved.