Class HttpJsonClusterControllerStub (4.39.0)

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.

Inheritance

java.lang.Object > ClusterControllerStub > HttpJsonClusterControllerStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonClusterControllerStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonClusterControllerStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonClusterControllerStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonClusterControllerStub
Exceptions
Type Description
IOException

create(ClusterControllerStubSettings settings)

public static final HttpJsonClusterControllerStub create(ClusterControllerStubSettings settings)
Parameter
Name Description
settings ClusterControllerStubSettings
Returns
Type Description
HttpJsonClusterControllerStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonClusterControllerStub(ClusterControllerStubSettings settings, ClientContext clientContext)

protected HttpJsonClusterControllerStub(ClusterControllerStubSettings settings, ClientContext clientContext)

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.

Parameters
Name Description
settings ClusterControllerStubSettings
clientContext ClientContext

HttpJsonClusterControllerStub(ClusterControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonClusterControllerStub(ClusterControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
Name Description
settings ClusterControllerStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createClusterCallable()

public UnaryCallable<CreateClusterRequest,Operation> createClusterCallable()
Returns
Type Description
UnaryCallable<CreateClusterRequest,Operation>
Overrides

createClusterOperationCallable()

public OperationCallable<CreateClusterRequest,Cluster,ClusterOperationMetadata> createClusterOperationCallable()
Returns
Type Description
OperationCallable<CreateClusterRequest,Cluster,ClusterOperationMetadata>
Overrides

deleteClusterCallable()

public UnaryCallable<DeleteClusterRequest,Operation> deleteClusterCallable()
Returns
Type Description
UnaryCallable<DeleteClusterRequest,Operation>
Overrides

deleteClusterOperationCallable()

public OperationCallable<DeleteClusterRequest,Empty,ClusterOperationMetadata> deleteClusterOperationCallable()
Returns
Type Description
OperationCallable<DeleteClusterRequest,Empty,ClusterOperationMetadata>
Overrides

diagnoseClusterCallable()

public UnaryCallable<DiagnoseClusterRequest,Operation> diagnoseClusterCallable()
Returns
Type Description
UnaryCallable<DiagnoseClusterRequest,Operation>
Overrides

diagnoseClusterOperationCallable()

public OperationCallable<DiagnoseClusterRequest,DiagnoseClusterResults,ClusterOperationMetadata> diagnoseClusterOperationCallable()
Returns
Type Description
OperationCallable<DiagnoseClusterRequest,DiagnoseClusterResults,ClusterOperationMetadata>
Overrides

getClusterCallable()

public UnaryCallable<GetClusterRequest,Cluster> getClusterCallable()
Returns
Type Description
UnaryCallable<GetClusterRequest,Cluster>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listClustersCallable()

public UnaryCallable<ListClustersRequest,ListClustersResponse> listClustersCallable()
Returns
Type Description
UnaryCallable<ListClustersRequest,ListClustersResponse>
Overrides

listClustersPagedCallable()

public UnaryCallable<ListClustersRequest,ClusterControllerClient.ListClustersPagedResponse> listClustersPagedCallable()
Returns
Type Description
UnaryCallable<ListClustersRequest,ListClustersPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startClusterCallable()

public UnaryCallable<StartClusterRequest,Operation> startClusterCallable()
Returns
Type Description
UnaryCallable<StartClusterRequest,Operation>
Overrides

startClusterOperationCallable()

public OperationCallable<StartClusterRequest,Cluster,ClusterOperationMetadata> startClusterOperationCallable()
Returns
Type Description
OperationCallable<StartClusterRequest,Cluster,ClusterOperationMetadata>
Overrides

stopClusterCallable()

public UnaryCallable<StopClusterRequest,Operation> stopClusterCallable()
Returns
Type Description
UnaryCallable<StopClusterRequest,Operation>
Overrides

stopClusterOperationCallable()

public OperationCallable<StopClusterRequest,Cluster,ClusterOperationMetadata> stopClusterOperationCallable()
Returns
Type Description
OperationCallable<StopClusterRequest,Cluster,ClusterOperationMetadata>
Overrides

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateClusterCallable()

public UnaryCallable<UpdateClusterRequest,Operation> updateClusterCallable()
Returns
Type Description
UnaryCallable<UpdateClusterRequest,Operation>
Overrides

updateClusterOperationCallable()

public OperationCallable<UpdateClusterRequest,Cluster,ClusterOperationMetadata> updateClusterOperationCallable()
Returns
Type Description
OperationCallable<UpdateClusterRequest,Cluster,ClusterOperationMetadata>
Overrides