Class ClusterState

Representation of a Cluster State.

Inheritance

builtins.object > ClusterState

Methods

__eq__

__eq__(other)

Checks if two ClusterState instances(self and other) are equal on the basis of instance variable 'replication_state'.

Parameter
NameDescription
other ClusterState

ClusterState instance to compare with.

Returns
TypeDescription
Boolean valueTrue if two cluster state instances have same replication_state.

__ne__

__ne__(other)

Checks if two ClusterState instances(self and other) are not equal.

Parameter
NameDescription
other ClusterState.

ClusterState instance to compare with.

Returns
TypeDescription
Boolean value.True if two cluster state instances are not equal.

__repr__

__repr__()

Representation of cluster state instance as string value for cluster state.

Returns
TypeDescription
ClusterState instanceClusterState instance as representation of string value for cluster state.