public class NodeStateImpl extends Object implements NodeState
Constructor and Description |
---|
NodeStateImpl() |
NodeStateImpl(ClusterState clusterState,
NodeState nodeState,
Version clusterVersion,
MemberVersion memberVersion) |
NodeStateImpl(ClusterState clusterState,
NodeState nodeState,
Version clusterVersion,
MemberVersion memberVersion,
Map<String,List<String>> weakSecretsConfigs) |
Modifier and Type | Method and Description |
---|---|
void |
fromJson(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
ClusterState |
getClusterState() |
Version |
getClusterVersion() |
MemberVersion |
getMemberVersion() |
NodeState |
getNodeState() |
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject . |
String |
toString() |
public NodeStateImpl()
public NodeStateImpl(ClusterState clusterState, NodeState nodeState, Version clusterVersion, MemberVersion memberVersion)
public NodeStateImpl(ClusterState clusterState, NodeState nodeState, Version clusterVersion, MemberVersion memberVersion, Map<String,List<String>> weakSecretsConfigs)
public ClusterState getClusterState()
getClusterState
in interface NodeState
public NodeState getNodeState()
getNodeState
in interface NodeState
public Version getClusterVersion()
getClusterVersion
in interface NodeState
public MemberVersion getMemberVersion()
getMemberVersion
in interface NodeState
public JsonObject toJson()
JsonSerializable
JsonObject
.toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
JsonSerializable
json
object and mutates the
state of this object.fromJson
in interface JsonSerializable
json
- the JSON object carrying state for this objectCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.