Interface GridClientClusterState
-
- All Known Implementing Classes:
GridClientClusterStateImpl
public interface GridClientClusterStateInterface for managing state of grid cluster and obtaining information about it: ID and tag.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringclusterName()Get the cluster name.UUIDid()Unique identifier of cluster STATE command was sent to.ClusterStatestate()voidstate(ClusterState newState, boolean forceDeactivation)Changes cluster state tonewState.Stringtag()User-defined tag of cluster STATE command was sent to.
-
-
-
Method Detail
-
state
ClusterState state() throws GridClientException
- Returns:
- Current cluster state.
- Throws:
GridClientException- If the request to get the cluster state failed.
-
id
UUID id() throws Exception
Unique identifier of cluster STATE command was sent to.- Returns:
- ID of the cluster.
- Throws:
Exception
-
tag
String tag() throws Exception
User-defined tag of cluster STATE command was sent to.- Returns:
- Tag of the cluster.
- Throws:
Exception
-
state
void state(ClusterState newState, boolean forceDeactivation) throws GridClientException
Changes cluster state tonewState.- Parameters:
newState- New cluster state.forceDeactivation- Iftrue, cluster deactivation will be forced.- Throws:
GridClientException- If the request to change the cluster state failed.- See Also:
ClusterState.INACTIVE
-
clusterName
String clusterName() throws GridClientException
Get the cluster name.- Returns:
- The name of the cluster.
- Throws:
GridClientException- If the request to get the cluster name failed.
-
-