Package org.infinispan.health.impl
Class ClusterHealthImpl
- java.lang.Object
-
- org.infinispan.health.impl.ClusterHealthImpl
-
- All Implemented Interfaces:
ClusterHealth
public class ClusterHealthImpl extends Object implements ClusterHealth
-
-
Constructor Summary
Constructors Constructor Description ClusterHealthImpl(EmbeddedCacheManager cacheManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClusterName()
Returns the name of the cluster.HealthStatus
getHealthStatus()
Returns total cluster health.List<String>
getNodeNames()
Returns node names.int
getNumberOfNodes()
Returns the number of nodes in the cluster.
-
-
-
Constructor Detail
-
ClusterHealthImpl
public ClusterHealthImpl(EmbeddedCacheManager cacheManager)
-
-
Method Detail
-
getHealthStatus
public HealthStatus getHealthStatus()
Description copied from interface:ClusterHealth
Returns total cluster health.- Specified by:
getHealthStatus
in interfaceClusterHealth
-
getClusterName
public String getClusterName()
Description copied from interface:ClusterHealth
Returns the name of the cluster.- Specified by:
getClusterName
in interfaceClusterHealth
-
getNumberOfNodes
public int getNumberOfNodes()
Description copied from interface:ClusterHealth
Returns the number of nodes in the cluster.- Specified by:
getNumberOfNodes
in interfaceClusterHealth
-
getNodeNames
public List<String> getNodeNames()
Description copied from interface:ClusterHealth
Returns node names.- Specified by:
getNodeNames
in interfaceClusterHealth
-
-