Class ClusterServiceImpl

java.lang.Object
com.atlassian.crowd.manager.cluster.ClusterServiceImpl
All Implemented Interfaces:
ClusterService

public class ClusterServiceImpl extends Object implements ClusterService
Implementation of com.atlassian.crowd.service.cluster.ClusterService
Since:
2.12.0
  • Constructor Details

  • Method Details

    • isAvailable

      public boolean isAvailable()
      Specified by:
      isAvailable in interface ClusterService
      Returns:
      true if clustering is available, otherwise false
    • getNodeId

      public String getNodeId()
      Description copied from interface: ClusterService
      Retrieves a cluster-wide unique identifier for this node.

      The value is guaranteed to be unique within the cluster. If the cluster is restarted, every node's ID will still be unique but will likely not be the same as the previous value.

      Specified by:
      getNodeId in interface ClusterService
      Returns:
      a cluster-wide unique opaque identifier for this node
      See Also:
    • getClusterNode

      @Transactional(readOnly=true) public Optional<ClusterNode> getClusterNode()
      Description copied from interface: ClusterService
      Retrieves details for this node
      Specified by:
      getClusterNode in interface ClusterService
      Returns:
      details for this node or empty optional if clustering is unavailable
    • getInformation

      @Transactional(readOnly=true) @Nonnull public ClusterInformation getInformation()
      Specified by:
      getInformation in interface ClusterService
      Returns:
      details about the cluster and its nodes