Class: Google::Cloud::Bigtable::Table::ClusterState
- Inherits:
-
Object
- Object
- Google::Cloud::Bigtable::Table::ClusterState
- Defined in:
- lib/google/cloud/bigtable/table/cluster_state.rb
Overview
Table::ClusterState is a The state of a table's data in a particular cluster.
Instance Attribute Summary collapse
-
#cluster_name ⇒ Object
readonly
Returns the value of attribute cluster_name.
Instance Method Summary collapse
-
#initializing? ⇒ Boolean
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.
-
#planned_maintenance? ⇒ Boolean
The table is temporarily unable to serve requests from this cluster due to planned internal maintenance.
-
#ready? ⇒ Boolean
The table can serve requests from this cluster.
-
#replication_state ⇒ Symbol
The state of replication for the table in this cluster.
-
#unplanned_maintenance? ⇒ Boolean
The table is temporarily unable to serve requests from this cluster due to unplanned or emergency maintenance.
Instance Attribute Details
#cluster_name ⇒ Object (readonly)
Returns the value of attribute cluster_name
24 25 26 |
# File 'lib/google/cloud/bigtable/table/cluster_state.rb', line 24 def cluster_name @cluster_name end |
Instance Method Details
#initializing? ⇒ Boolean
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.
51 52 53 |
# File 'lib/google/cloud/bigtable/table/cluster_state.rb', line 51 def initializing? replication_state == :INITIALIZING end |
#planned_maintenance? ⇒ Boolean
The table is temporarily unable to serve requests from this cluster due to planned internal maintenance.
59 60 61 |
# File 'lib/google/cloud/bigtable/table/cluster_state.rb', line 59 def planned_maintenance? replication_state == :PLANNED_MAINTENANCE end |
#ready? ⇒ Boolean
The table can serve requests from this cluster. Depending on replication delay, reads may not immediately reflect the state of the table in other clusters.
76 77 78 |
# File 'lib/google/cloud/bigtable/table/cluster_state.rb', line 76 def ready? replication_state == :READY end |
#replication_state ⇒ Symbol
The state of replication for the table in this cluster. Valid values are:
:INITIALIZING
- The cluster was recently created.:PLANNED_MAINTENANCE
- The table is temporarily unable to serve.:UNPLANNED_MAINTENANCE
- The table is temporarily unable to serve.:READY
- The table can serve.
42 43 44 |
# File 'lib/google/cloud/bigtable/table/cluster_state.rb', line 42 def replication_state @grpc.replication_state end |
#unplanned_maintenance? ⇒ Boolean
The table is temporarily unable to serve requests from this cluster due to unplanned or emergency maintenance.
67 68 69 |
# File 'lib/google/cloud/bigtable/table/cluster_state.rb', line 67 def unplanned_maintenance? replication_state == :UNPLANNED_MAINTENANCE end |