Class GrpcClusterControllerStub
- java.lang.Object
-
- com.google.cloud.dataproc.v1.stub.ClusterControllerStub
-
- com.google.cloud.dataproc.v1.stub.GrpcClusterControllerStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcClusterControllerStub extends ClusterControllerStub
gRPC stub implementation for the ClusterController service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcClusterControllerStub(ClusterControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcClusterControllerStub, using the given settings.protectedGrpcClusterControllerStub(ClusterControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcClusterControllerStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcClusterControllerStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcClusterControllerStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcClusterControllerStubcreate(ClusterControllerStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateClusterRequest,com.google.longrunning.Operation>createClusterCallable()com.google.api.gax.rpc.OperationCallable<CreateClusterRequest,Cluster,ClusterOperationMetadata>createClusterOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteClusterRequest,com.google.longrunning.Operation>deleteClusterCallable()com.google.api.gax.rpc.OperationCallable<DeleteClusterRequest,com.google.protobuf.Empty,ClusterOperationMetadata>deleteClusterOperationCallable()com.google.api.gax.rpc.UnaryCallable<DiagnoseClusterRequest,com.google.longrunning.Operation>diagnoseClusterCallable()com.google.api.gax.rpc.OperationCallable<DiagnoseClusterRequest,DiagnoseClusterResults,ClusterOperationMetadata>diagnoseClusterOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetClusterRequest,Cluster>getClusterCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListClustersRequest,ListClustersResponse>listClustersCallable()com.google.api.gax.rpc.UnaryCallable<ListClustersRequest,ClusterControllerClient.ListClustersPagedResponse>listClustersPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<StartClusterRequest,com.google.longrunning.Operation>startClusterCallable()com.google.api.gax.rpc.OperationCallable<StartClusterRequest,Cluster,ClusterOperationMetadata>startClusterOperationCallable()com.google.api.gax.rpc.UnaryCallable<StopClusterRequest,com.google.longrunning.Operation>stopClusterCallable()com.google.api.gax.rpc.OperationCallable<StopClusterRequest,Cluster,ClusterOperationMetadata>stopClusterOperationCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateClusterRequest,com.google.longrunning.Operation>updateClusterCallable()com.google.api.gax.rpc.OperationCallable<UpdateClusterRequest,Cluster,ClusterOperationMetadata>updateClusterOperationCallable()-
Methods inherited from class com.google.cloud.dataproc.v1.stub.ClusterControllerStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcClusterControllerStub
protected GrpcClusterControllerStub(ClusterControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcClusterControllerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcClusterControllerStub
protected GrpcClusterControllerStub(ClusterControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcClusterControllerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcClusterControllerStub create(ClusterControllerStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcClusterControllerStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcClusterControllerStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classClusterControllerStub
-
createClusterCallable
public com.google.api.gax.rpc.UnaryCallable<CreateClusterRequest,com.google.longrunning.Operation> createClusterCallable()
- Overrides:
createClusterCallablein classClusterControllerStub
-
createClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateClusterRequest,Cluster,ClusterOperationMetadata> createClusterOperationCallable()
- Overrides:
createClusterOperationCallablein classClusterControllerStub
-
updateClusterCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateClusterRequest,com.google.longrunning.Operation> updateClusterCallable()
- Overrides:
updateClusterCallablein classClusterControllerStub
-
updateClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateClusterRequest,Cluster,ClusterOperationMetadata> updateClusterOperationCallable()
- Overrides:
updateClusterOperationCallablein classClusterControllerStub
-
stopClusterCallable
public com.google.api.gax.rpc.UnaryCallable<StopClusterRequest,com.google.longrunning.Operation> stopClusterCallable()
- Overrides:
stopClusterCallablein classClusterControllerStub
-
stopClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<StopClusterRequest,Cluster,ClusterOperationMetadata> stopClusterOperationCallable()
- Overrides:
stopClusterOperationCallablein classClusterControllerStub
-
startClusterCallable
public com.google.api.gax.rpc.UnaryCallable<StartClusterRequest,com.google.longrunning.Operation> startClusterCallable()
- Overrides:
startClusterCallablein classClusterControllerStub
-
startClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartClusterRequest,Cluster,ClusterOperationMetadata> startClusterOperationCallable()
- Overrides:
startClusterOperationCallablein classClusterControllerStub
-
deleteClusterCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteClusterRequest,com.google.longrunning.Operation> deleteClusterCallable()
- Overrides:
deleteClusterCallablein classClusterControllerStub
-
deleteClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteClusterRequest,com.google.protobuf.Empty,ClusterOperationMetadata> deleteClusterOperationCallable()
- Overrides:
deleteClusterOperationCallablein classClusterControllerStub
-
getClusterCallable
public com.google.api.gax.rpc.UnaryCallable<GetClusterRequest,Cluster> getClusterCallable()
- Overrides:
getClusterCallablein classClusterControllerStub
-
listClustersCallable
public com.google.api.gax.rpc.UnaryCallable<ListClustersRequest,ListClustersResponse> listClustersCallable()
- Overrides:
listClustersCallablein classClusterControllerStub
-
listClustersPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListClustersRequest,ClusterControllerClient.ListClustersPagedResponse> listClustersPagedCallable()
- Overrides:
listClustersPagedCallablein classClusterControllerStub
-
diagnoseClusterCallable
public com.google.api.gax.rpc.UnaryCallable<DiagnoseClusterRequest,com.google.longrunning.Operation> diagnoseClusterCallable()
- Overrides:
diagnoseClusterCallablein classClusterControllerStub
-
diagnoseClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<DiagnoseClusterRequest,DiagnoseClusterResults,ClusterOperationMetadata> diagnoseClusterOperationCallable()
- Overrides:
diagnoseClusterOperationCallablein classClusterControllerStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classClusterControllerStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classClusterControllerStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classClusterControllerStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classClusterControllerStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-