ClusterState(replication_state)
Representation of a Cluster State.
Parameter | |
---|---|
Name | Description |
replication_state |
int
enum value for cluster state Possible replications_state values are 0 for STATE_NOT_KNOWN: The replication state of the table is unknown in this cluster. 1 for INITIALIZING: The cluster was recently created, and the table must finish copying over pre-existing data from other clusters before it can begin receiving live replication updates and serving |
Methods
__eq__
__eq__(other)
Checks if two ClusterState instances(self and other) are equal on the basis of instance variable 'replication_state'.
Parameter | |
---|---|
Name | Description |
other |
ClusterState
ClusterState instance to compare with. |
Returns | |
---|---|
Type | Description |
Boolean value | True if two cluster state instances have same replication_state. |
__ne__
__ne__(other)
Checks if two ClusterState instances(self and other) are not equal.
Parameter | |
---|---|
Name | Description |
other |
ClusterState.
ClusterState instance to compare with. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ClusterState instance | ClusterState instance as representation of string value for cluster state. |