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()booleanisAppMonitoringEnabled()booleanisIpdMonitoringEnabled()booleanisJmxEnabledOnCluster()Checks if JMX is enabled across the cluster.voidonApplicationStartedEvent(com.atlassian.config.lifecycle.events.ApplicationStartedEvent ignored)voidonClusteredJmxConfigChangedEvent(ClusterEventWrapper clusterEvent)voidpostConstruct()voidpreDestroy()voidsetAppMonitoringEnabled(boolean enableAppMonitoring)voidsetIpdMonitoringEnabled(boolean enableIpdMonitoring)voidsetJmxMonitoringEnabled(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:JmxConfigServiceChecks if JMX is enabled across the cluster.- Specified by:
isJmxEnabledOnClusterin 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()
-
-