Class ConfluenceJmxConfigService
- java.lang.Object
-
- com.atlassian.confluence.impl.metrics.ConfluenceJmxConfigService
-
- All Implemented Interfaces:
JmxConfigService
public class ConfluenceJmxConfigService extends Object implements JmxConfigService
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, com.atlassian.diagnostics.internal.ipd.IpdMainRegistry ipdMainRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ClusterNodeExecution<NodeJmxMonitoringConfig>>
getNodesJmxMonitoringConfigs()
boolean
isAppMonitoringEnabled()
boolean
isIpdMonitoringEnabled()
boolean
isJmxEnabledOnCluster()
Checks if JMX is enabled across the cluster.void
onApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent ignored)
void
onClusteredJmxConfigChangedEvent(ClusterEventWrapper clusterEvent)
void
postConstruct()
void
preDestroy()
void
setAppMonitoringEnabled(boolean enableAppMonitoring)
void
setIpdMonitoringEnabled(boolean enableIpdMonitoring)
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, com.atlassian.diagnostics.internal.ipd.IpdMainRegistry ipdMainRegistry)
-
-
Method Detail
-
isJmxEnabledOnCluster
public boolean isJmxEnabledOnCluster()
Description copied from interface:JmxConfigService
Checks if JMX is enabled across the cluster.- Specified by:
isJmxEnabledOnCluster
in interfaceJmxConfigService
- Returns:
- true if JMX is enabled on the cluster, false otherwise
-
isAppMonitoringEnabled
public boolean isAppMonitoringEnabled()
-
isIpdMonitoringEnabled
public boolean isIpdMonitoringEnabled()
-
setIpdMonitoringEnabled
public void setIpdMonitoringEnabled(boolean enableIpdMonitoring)
-
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()
-
-