com.atlassian.confluence.cluster.hazelcast.monitoring
Class HazelcastClusterMonitoring

java.lang.Object
  extended by com.atlassian.confluence.cluster.hazelcast.monitoring.HazelcastClusterMonitoring
All Implemented Interfaces:
com.atlassian.cluster.monitoring.spi.ClusterMonitoring

@Internal
public class HazelcastClusterMonitoring
extends Object
implements com.atlassian.cluster.monitoring.spi.ClusterMonitoring

ClusterMonitoring implementation which relies on hazelcast to get information from other nodes

Since:
5.7

Constructor Summary
HazelcastClusterMonitoring(com.atlassian.util.concurrent.Supplier<com.hazelcast.core.HazelcastInstance> instanceSupplier)
           
 
Method Summary
 com.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,com.atlassian.cluster.monitoring.spi.model.NodeIdentifier> getCurrentNode()
           
 com.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)
           
 com.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,List<com.atlassian.cluster.monitoring.spi.model.NodeInformation>> getNodes()
           
 boolean isAvailable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HazelcastClusterMonitoring

public HazelcastClusterMonitoring(com.atlassian.util.concurrent.Supplier<com.hazelcast.core.HazelcastInstance> instanceSupplier)
Method Detail

getCurrentNode

public com.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,com.atlassian.cluster.monitoring.spi.model.NodeIdentifier> getCurrentNode()
Specified by:
getCurrentNode in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring

getNodes

public com.atlassian.fugue.Either<com.atlassian.cluster.monitoring.spi.model.MonitoringError,List<com.atlassian.cluster.monitoring.spi.model.NodeInformation>> getNodes()
Specified by:
getNodes in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring

getData

@Nonnull
public com.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)
Specified by:
getData in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring

isAvailable

public boolean isAvailable()
Specified by:
isAvailable in interface com.atlassian.cluster.monitoring.spi.ClusterMonitoring


Copyright © 2003–2015 Atlassian. All rights reserved.