public interface BigtableInstanceClient
Modifier and Type | Method and Description |
---|---|
com.google.longrunning.Operation |
createInstance(com.google.bigtable.admin.v2.CreateInstanceRequest request)
Create an instance within a project.
|
com.google.protobuf.Empty |
deleteInstance(com.google.bigtable.admin.v2.DeleteInstanceRequest request)
Updates an instance within a project.
|
com.google.bigtable.admin.v2.Cluster |
getCluster(com.google.bigtable.admin.v2.GetClusterRequest request)
Gets information about a cluster.
|
com.google.longrunning.Operation |
getOperation(com.google.longrunning.GetOperationRequest request)
Gets the latest state of a long-running operation.
|
com.google.bigtable.admin.v2.ListClustersResponse |
listCluster(com.google.bigtable.admin.v2.ListClustersRequest request)
Lists information about clusters in an instance.
|
com.google.bigtable.admin.v2.ListInstancesResponse |
listInstances(com.google.bigtable.admin.v2.ListInstancesRequest request)
Lists all instances in the given project.
|
com.google.longrunning.Operation |
updateCluster(com.google.bigtable.admin.v2.Cluster cluster)
Updates a cluster within an instance.
|
com.google.bigtable.admin.v2.Instance |
updateInstance(com.google.bigtable.admin.v2.Instance instance)
Updates an instance within a project.
|
void |
waitForOperation(com.google.longrunning.Operation operation)
Waits for the long running operation to complete by polling with exponential backoff.
|
void |
waitForOperation(com.google.longrunning.Operation operation,
long timeout,
TimeUnit timeUnit)
Waits for the long running operation to complete by polling with exponential backoff.
|
com.google.longrunning.Operation createInstance(com.google.bigtable.admin.v2.CreateInstanceRequest request)
request
- a CreateInstanceRequest
object.Operation
object.com.google.longrunning.Operation getOperation(com.google.longrunning.GetOperationRequest request)
createInstance(CreateInstanceRequest)
and updateCluster(Cluster)
will
return a Operation
. Use this method and pass in the Operation
's name in the
request to see if the Operation is done via Operation.getDone()
. The instance will not
be available until that happens.
request
- a GetOperationRequest
object.Operation
object.void waitForOperation(com.google.longrunning.Operation operation) throws TimeoutException, IOException
operation
- IOException
TimeoutException
- If the timeout is exceeded.void waitForOperation(com.google.longrunning.Operation operation, long timeout, TimeUnit timeUnit) throws IOException, TimeoutException
operation
- timeout
- timeUnit
- IOException
TimeoutException
- If the timeout is exceeded.com.google.bigtable.admin.v2.ListInstancesResponse listInstances(com.google.bigtable.admin.v2.ListInstancesRequest request)
request
- a ListInstancesRequest
object.ListInstancesResponse
object.com.google.bigtable.admin.v2.Instance updateInstance(com.google.bigtable.admin.v2.Instance instance)
instance
- a Instance
object.Instance
object.com.google.protobuf.Empty deleteInstance(com.google.bigtable.admin.v2.DeleteInstanceRequest request)
request
- a DeleteInstanceRequest
object.Empty
object.com.google.bigtable.admin.v2.Cluster getCluster(com.google.bigtable.admin.v2.GetClusterRequest request)
request
- a GetClusterRequest
object.Cluster
object.com.google.bigtable.admin.v2.ListClustersResponse listCluster(com.google.bigtable.admin.v2.ListClustersRequest request)
request
- a ListClustersRequest
object.ListClustersResponse
object.com.google.longrunning.Operation updateCluster(com.google.bigtable.admin.v2.Cluster cluster)
cluster
- a Cluster
object.Operation
object.