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 protected
GrpcClusterControllerStub(ClusterControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcClusterControllerStub, using the given settings.protected
GrpcClusterControllerStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcClusterControllerStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcClusterControllerStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcClusterControllerStub
create(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.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
getOperationsStub
in classClusterControllerStub
-
createClusterCallable
public com.google.api.gax.rpc.UnaryCallable<CreateClusterRequest,com.google.longrunning.Operation> createClusterCallable()
- Overrides:
createClusterCallable
in classClusterControllerStub
-
createClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateClusterRequest,Cluster,ClusterOperationMetadata> createClusterOperationCallable()
- Overrides:
createClusterOperationCallable
in classClusterControllerStub
-
updateClusterCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateClusterRequest,com.google.longrunning.Operation> updateClusterCallable()
- Overrides:
updateClusterCallable
in classClusterControllerStub
-
updateClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateClusterRequest,Cluster,ClusterOperationMetadata> updateClusterOperationCallable()
- Overrides:
updateClusterOperationCallable
in classClusterControllerStub
-
stopClusterCallable
public com.google.api.gax.rpc.UnaryCallable<StopClusterRequest,com.google.longrunning.Operation> stopClusterCallable()
- Overrides:
stopClusterCallable
in classClusterControllerStub
-
stopClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<StopClusterRequest,Cluster,ClusterOperationMetadata> stopClusterOperationCallable()
- Overrides:
stopClusterOperationCallable
in classClusterControllerStub
-
startClusterCallable
public com.google.api.gax.rpc.UnaryCallable<StartClusterRequest,com.google.longrunning.Operation> startClusterCallable()
- Overrides:
startClusterCallable
in classClusterControllerStub
-
startClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartClusterRequest,Cluster,ClusterOperationMetadata> startClusterOperationCallable()
- Overrides:
startClusterOperationCallable
in classClusterControllerStub
-
deleteClusterCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteClusterRequest,com.google.longrunning.Operation> deleteClusterCallable()
- Overrides:
deleteClusterCallable
in classClusterControllerStub
-
deleteClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteClusterRequest,com.google.protobuf.Empty,ClusterOperationMetadata> deleteClusterOperationCallable()
- Overrides:
deleteClusterOperationCallable
in classClusterControllerStub
-
getClusterCallable
public com.google.api.gax.rpc.UnaryCallable<GetClusterRequest,Cluster> getClusterCallable()
- Overrides:
getClusterCallable
in classClusterControllerStub
-
listClustersCallable
public com.google.api.gax.rpc.UnaryCallable<ListClustersRequest,ListClustersResponse> listClustersCallable()
- Overrides:
listClustersCallable
in classClusterControllerStub
-
listClustersPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListClustersRequest,ClusterControllerClient.ListClustersPagedResponse> listClustersPagedCallable()
- Overrides:
listClustersPagedCallable
in classClusterControllerStub
-
diagnoseClusterCallable
public com.google.api.gax.rpc.UnaryCallable<DiagnoseClusterRequest,com.google.longrunning.Operation> diagnoseClusterCallable()
- Overrides:
diagnoseClusterCallable
in classClusterControllerStub
-
diagnoseClusterOperationCallable
public com.google.api.gax.rpc.OperationCallable<DiagnoseClusterRequest,DiagnoseClusterResults,ClusterOperationMetadata> diagnoseClusterOperationCallable()
- Overrides:
diagnoseClusterOperationCallable
in classClusterControllerStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classClusterControllerStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classClusterControllerStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classClusterControllerStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-