Class HttpJsonClusterControllerStub
- java.lang.Object
-
- com.google.cloud.dataproc.v1.stub.ClusterControllerStub
-
- com.google.cloud.dataproc.v1.stub.HttpJsonClusterControllerStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonClusterControllerStub extends ClusterControllerStub
REST 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 protectedHttpJsonClusterControllerStub(ClusterControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonClusterControllerStub, using the given settings.protectedHttpJsonClusterControllerStub(ClusterControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonClusterControllerStub, 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 HttpJsonClusterControllerStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonClusterControllerStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonClusterControllerStubcreate(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.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()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
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonClusterControllerStub
protected HttpJsonClusterControllerStub(ClusterControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonClusterControllerStub, 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
-
HttpJsonClusterControllerStub
protected HttpJsonClusterControllerStub(ClusterControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonClusterControllerStub, 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 HttpJsonClusterControllerStub create(ClusterControllerStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonClusterControllerStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonClusterControllerStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin 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
-
-