Class ConfluenceJmxConfigService
- java.lang.Object
-
- com.atlassian.confluence.impl.metrics.ConfluenceJmxConfigService
-
public class ConfluenceJmxConfigService extends Object
This service takes care of configuring and initializing the JMX configuration across the cluster. Part of that configuration includes application monitoring which is a subset of JMX metrics.- Since:
- 7.17
-
-
Constructor Summary
Constructors Constructor Description ConfluenceJmxConfigService(com.atlassian.event.api.EventPublisher eventPublisher, ConfluenceJmxConfig confluenceJmxConfig, io.micrometer.core.instrument.composite.CompositeMeterRegistry compositeMeterRegistry, com.atlassian.bandana.BandanaManager bandanaManager, DarkFeaturesManager darkFeaturesManager, ClusterManager clusterManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ClusterNodeExecution<NodeJmxMonitoringConfig>>
getNodesJmxMonitoringConfigs()
boolean
isAppMonitoringEnabled()
boolean
isJmxEnabledOnCluster()
void
onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent ignored)
void
onClusteredJmxConfigChangedEvent(ClusterEventWrapper clusterEvent)
void
postConstruct()
void
preDestroy()
void
setAppMonitoringEnabled(boolean enableAppMonitoring)
void
setJmxMonitoringEnabled(boolean isJmxEnabled)
-
-
-
Constructor Detail
-
ConfluenceJmxConfigService
public ConfluenceJmxConfigService(com.atlassian.event.api.EventPublisher eventPublisher, ConfluenceJmxConfig confluenceJmxConfig, io.micrometer.core.instrument.composite.CompositeMeterRegistry compositeMeterRegistry, com.atlassian.bandana.BandanaManager bandanaManager, DarkFeaturesManager darkFeaturesManager, ClusterManager clusterManager)
-
-
Method Detail
-
isJmxEnabledOnCluster
public boolean isJmxEnabledOnCluster()
-
isAppMonitoringEnabled
public boolean isAppMonitoringEnabled()
-
setAppMonitoringEnabled
public void setAppMonitoringEnabled(boolean enableAppMonitoring)
-
setJmxMonitoringEnabled
public void setJmxMonitoringEnabled(boolean isJmxEnabled)
-
getNodesJmxMonitoringConfigs
public List<ClusterNodeExecution<NodeJmxMonitoringConfig>> getNodesJmxMonitoringConfigs()
-
onApplicationStartedEvent
@EventListener public void onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent ignored)
-
onClusteredJmxConfigChangedEvent
@EventListener public void onClusteredJmxConfigChangedEvent(ClusterEventWrapper clusterEvent)
-
postConstruct
@PostConstruct public void postConstruct()
-
preDestroy
@PreDestroy public void preDestroy()
-
-