Package com.google.cloud.dataproc.v1
Class ClusterControllerGrpc.ClusterControllerBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<ClusterControllerGrpc.ClusterControllerBlockingStub>
-
- com.google.cloud.dataproc.v1.ClusterControllerGrpc.ClusterControllerBlockingStub
-
- Enclosing class:
- ClusterControllerGrpc
public static final class ClusterControllerGrpc.ClusterControllerBlockingStub extends io.grpc.stub.AbstractBlockingStub<ClusterControllerGrpc.ClusterControllerBlockingStub>
A stub to allow clients to do synchronous rpc calls to service ClusterController.The ClusterControllerService provides methods to manage clusters of Compute Engine instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClusterControllerGrpc.ClusterControllerBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.longrunning.Operation
createCluster(CreateClusterRequest request)
Creates a cluster in a project.com.google.longrunning.Operation
deleteCluster(DeleteClusterRequest request)
Deletes a cluster in a project.com.google.longrunning.Operation
diagnoseCluster(DiagnoseClusterRequest request)
Gets cluster diagnostic information.Cluster
getCluster(GetClusterRequest request)
Gets the resource representation for a cluster in a project.ListClustersResponse
listClusters(ListClustersRequest request)
Lists all regions/{region}/clusters in a project alphabetically.com.google.longrunning.Operation
startCluster(StartClusterRequest request)
Starts a cluster in a project.com.google.longrunning.Operation
stopCluster(StopClusterRequest request)
Stops a cluster in a project.com.google.longrunning.Operation
updateCluster(UpdateClusterRequest request)
Updates a cluster in a project.
-
-
-
Method Detail
-
build
protected ClusterControllerGrpc.ClusterControllerBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<ClusterControllerGrpc.ClusterControllerBlockingStub>
-
createCluster
public com.google.longrunning.Operation createCluster(CreateClusterRequest request)
Creates a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-
updateCluster
public com.google.longrunning.Operation updateCluster(UpdateClusterRequest request)
Updates a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error is returned.
-
stopCluster
public com.google.longrunning.Operation stopCluster(StopClusterRequest request)
Stops a cluster in a project.
-
startCluster
public com.google.longrunning.Operation startCluster(StartClusterRequest request)
Starts a cluster in a project.
-
deleteCluster
public com.google.longrunning.Operation deleteCluster(DeleteClusterRequest request)
Deletes a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-
getCluster
public Cluster getCluster(GetClusterRequest request)
Gets the resource representation for a cluster in a project.
-
listClusters
public ListClustersResponse listClusters(ListClustersRequest request)
Lists all regions/{region}/clusters in a project alphabetically.
-
diagnoseCluster
public com.google.longrunning.Operation diagnoseCluster(DiagnoseClusterRequest request)
Gets cluster diagnostic information. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). After the operation completes, [Operation.response][google.longrunning.Operation.response] contains [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
-
-