Class ClusterInfo
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 Summary
Modifier and TypeFieldDescriptionprotected boolean
Flag for featureprotected MemberInfo
Local memberprotected boolean
Flag for master nodeCluster members (uuids)protected boolean
Flag for cluster started -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionInfo about the local cluster memberUUIDs of the cluster membersboolean
True if the clustering feature is activated, false if notboolean
isMaster()
True if this is the master node (or clustering is disabled)boolean
True if the cluster (hazelcast) is started, false if notsetFeature
(boolean feature) Set whether the clustering feature is activatedsetLocalMember
(MemberInfo localMember) Set Info about local cluster membersetMaster
(boolean master) Set master node infosetMembers
(Set<String> members) Set UUIDs of cluster memberssetStarted
(boolean started) Set started infoMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Field Details
-
feature
protected boolean featureFlag for feature -
master
protected boolean masterFlag for master node -
started
protected boolean startedFlag for cluster started -
members
Cluster members (uuids) -
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
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
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
Set started info- Parameters:
started
- true if cluster is started- Returns:
- fluent API
-
getMembers
UUIDs of the cluster members- Returns:
- UUID set
-
setMembers
Set UUIDs of cluster members- Parameters:
members
- UUID set- Returns:
- fluent API
-
getLocalMember
Info about the local cluster member- Returns:
- local member
-
setLocalMember
Set Info about local cluster member- Parameters:
localMember
- local member- Returns:
- fluent API
-