java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.cluster.ClusterInfo
All Implemented Interfaces:
Serializable

public class ClusterInfo extends com.gentics.contentnode.rest.model.response.GenericResponse
Response containing clustering information
See Also:
  • Field Details

    • feature

      protected boolean feature
      Flag for feature
    • master

      protected boolean master
      Flag for master node
    • started

      protected boolean started
      Flag for cluster started
    • members

      protected Set<String> members
      Cluster members (uuids)
    • localMember

      protected MemberInfo localMember
      Local member
  • Constructor Details

    • ClusterInfo

      public ClusterInfo()
  • Method Details

    • isFeature

      public boolean isFeature()
      True if the clustering feature is activated, false if not
      Returns:
      true for clustering feature
    • setFeature

      public ClusterInfo setFeature(boolean feature)
      Set whether the clustering feature is activated
      Parameters:
      feature - true for clustering feature
      Returns:
      fluent API
    • isMaster

      public boolean isMaster()
      True if this is the master node (or clustering is disabled)
      Returns:
      true for master node
    • setMaster

      public ClusterInfo setMaster(boolean master)
      Set master node info
      Parameters:
      master - true for master node
      Returns:
      fluent API
    • isStarted

      public boolean isStarted()
      True if the cluster (hazelcast) is started, false if not
      Returns:
      true for started cluster
    • setStarted

      public ClusterInfo setStarted(boolean started)
      Set started info
      Parameters:
      started - true if cluster is started
      Returns:
      fluent API
    • getMembers

      public Set<String> getMembers()
      UUIDs of the cluster members
      Returns:
      UUID set
    • setMembers

      public ClusterInfo setMembers(Set<String> members)
      Set UUIDs of cluster members
      Parameters:
      members - UUID set
      Returns:
      fluent API
    • getLocalMember

      public MemberInfo getLocalMember()
      Info about the local cluster member
      Returns:
      local member
    • setLocalMember

      public ClusterInfo setLocalMember(MemberInfo localMember)
      Set Info about local cluster member
      Parameters:
      localMember - local member
      Returns:
      fluent API