Class GridClientClusterStateRequestV2
- java.lang.Object
-
- org.apache.ignite.internal.processors.rest.client.message.GridClientAbstractMessage
-
- org.apache.ignite.internal.processors.rest.client.message.GridClientClusterStateRequest
-
- org.apache.ignite.internal.processors.rest.client.message.GridClientClusterStateRequestV2
-
- All Implemented Interfaces:
Externalizable,Serializable,GridClientMessage
public class GridClientClusterStateRequestV2 extends GridClientClusterStateRequest
Enhanced version ofGridClientClusterStateRequest. Introduced to support forced version of the change state command and keep backward compatibility with nodes of old version that may occur in cluster at the rolling updates.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.rest.client.message.GridClientClusterStateRequest
state
-
-
Constructor Summary
Constructors Constructor Description GridClientClusterStateRequestV2()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanforceDeactivation()voidreadExternal(ObjectInput in)static GridClientClusterStateRequestV2state(ClusterState state, boolean forceDeactivation)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.apache.ignite.internal.processors.rest.client.message.GridClientClusterStateRequest
currentState, isReqCurrentState, state, state
-
Methods inherited from class org.apache.ignite.internal.processors.rest.client.message.GridClientAbstractMessage
clientId, clientId, destinationId, destinationId, requestId, requestId, sessionToken, sessionToken, toString
-
-
-
-
Method Detail
-
forceDeactivation
public boolean forceDeactivation()
- Returns:
Trueif cluster deactivation will be forced.Falseotherwise.- See Also:
ClusterState.INACTIVE
-
state
public static GridClientClusterStateRequestV2 state(ClusterState state, boolean forceDeactivation)
- Parameters:
state- New cluster state.forceDeactivation- Iftrue, cluster deactivation will be forced.- Returns:
- Cluster state change request.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classGridClientClusterStateRequest- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classGridClientClusterStateRequest- Throws:
IOExceptionClassNotFoundException
-
-