@Internal
public class HazelcastClusterMonitoring
extends com.atlassian.diagnostics.internal.InitializingMonitor
implements com.atlassian.cluster.monitoring.spi.ClusterMonitoring
Constructor and Description |
---|
HazelcastClusterMonitoring(Supplier<com.hazelcast.core.HazelcastInstance> instanceSupplier,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
boolean |
enableClustering() |
io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,com.atlassian.cluster.monitoring.spi.model.NodeIdentifier> |
getCurrentNode() |
@NonNull io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,com.atlassian.cluster.monitoring.spi.model.Table> |
getData(com.atlassian.plugin.ModuleCompleteKey key,
com.atlassian.cluster.monitoring.spi.model.NodeIdentifier nodeId) |
io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,List<com.atlassian.cluster.monitoring.spi.model.NodeInformation>> |
getNodes() |
void |
init(com.atlassian.diagnostics.MonitoringService monitoringService) |
boolean |
isAvailable() |
boolean |
isClusterSetupEnabled() |
boolean |
isDataCenterLicensed() |
void |
preDestroy() |
public HazelcastClusterMonitoring(Supplier<com.hazelcast.core.HazelcastInstance> instanceSupplier, com.atlassian.event.api.EventPublisher eventPublisher)
@PreDestroy public void preDestroy()
public io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,com.atlassian.cluster.monitoring.spi.model.NodeIdentifier> getCurrentNode()
getCurrentNode
in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
public io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,List<com.atlassian.cluster.monitoring.spi.model.NodeInformation>> getNodes()
getNodes
in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
public @NonNull io.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,com.atlassian.cluster.monitoring.spi.model.Table> getData(com.atlassian.plugin.ModuleCompleteKey key, com.atlassian.cluster.monitoring.spi.model.NodeIdentifier nodeId)
getData
in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
public boolean isAvailable()
isAvailable
in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
public boolean isDataCenterLicensed()
isDataCenterLicensed
in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
public boolean enableClustering()
enableClustering
in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
public boolean isClusterSetupEnabled()
isClusterSetupEnabled
in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring
public void init(com.atlassian.diagnostics.MonitoringService monitoringService)
init
in class com.atlassian.diagnostics.internal.InitializingMonitor
Copyright © 2003–2020 Atlassian. All rights reserved.