Class GrpcJobControllerStub
java.lang.Object
com.google.cloud.dataproc.v1.stub.JobControllerStub
com.google.cloud.dataproc.v1.stub.GrpcJobControllerStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the JobController service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcJobControllerStub(JobControllerStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcJobControllerStub, using the given settings.protectedGrpcJobControllerStub(JobControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcJobControllerStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcJobControllerStubcreate(ClientContext clientContext) static final GrpcJobControllerStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcJobControllerStubcreate(JobControllerStubSettings settings) UnaryCallable<DeleteJobRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.dataproc.v1.stub.JobControllerStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcJobControllerStub
protected GrpcJobControllerStub(JobControllerStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcJobControllerStub, 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
-
GrpcJobControllerStub
protected GrpcJobControllerStub(JobControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcJobControllerStub, 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 Details
-
create
public static final GrpcJobControllerStub create(JobControllerStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcJobControllerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classJobControllerStub
-
submitJobCallable
- Overrides:
submitJobCallablein classJobControllerStub
-
submitJobAsOperationCallable
- Overrides:
submitJobAsOperationCallablein classJobControllerStub
-
submitJobAsOperationOperationCallable
- Overrides:
submitJobAsOperationOperationCallablein classJobControllerStub
-
getJobCallable
- Overrides:
getJobCallablein classJobControllerStub
-
listJobsCallable
- Overrides:
listJobsCallablein classJobControllerStub
-
listJobsPagedCallable
public UnaryCallable<ListJobsRequest,JobControllerClient.ListJobsPagedResponse> listJobsPagedCallable()- Overrides:
listJobsPagedCallablein classJobControllerStub
-
updateJobCallable
- Overrides:
updateJobCallablein classJobControllerStub
-
cancelJobCallable
- Overrides:
cancelJobCallablein classJobControllerStub
-
deleteJobCallable
- Overrides:
deleteJobCallablein classJobControllerStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classJobControllerStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classJobControllerStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classJobControllerStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classJobControllerStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-