Package com.google.cloud.batch.v1.stub
Class GrpcBatchServiceStub
java.lang.Object
com.google.cloud.batch.v1.stub.BatchServiceStub
com.google.cloud.batch.v1.stub.GrpcBatchServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the BatchService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcBatchServiceStub(BatchServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcBatchServiceStub, using the given settings.protectedGrpcBatchServiceStub(BatchServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcBatchServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcBatchServiceStubcreate(ClientContext clientContext) static final GrpcBatchServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcBatchServiceStubcreate(BatchServiceStubSettings settings) OperationCallable<DeleteJobRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.batch.v1.stub.BatchServiceStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcBatchServiceStub
protected GrpcBatchServiceStub(BatchServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcBatchServiceStub, 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
-
GrpcBatchServiceStub
protected GrpcBatchServiceStub(BatchServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcBatchServiceStub, 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 GrpcBatchServiceStub create(BatchServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcBatchServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classBatchServiceStub
-
createJobCallable
- Overrides:
createJobCallablein classBatchServiceStub
-
getJobCallable
- Overrides:
getJobCallablein classBatchServiceStub
-
deleteJobCallable
- Overrides:
deleteJobCallablein classBatchServiceStub
-
deleteJobOperationCallable
public OperationCallable<DeleteJobRequest,com.google.protobuf.Empty, deleteJobOperationCallable()OperationMetadata> - Overrides:
deleteJobOperationCallablein classBatchServiceStub
-
cancelJobCallable
- Overrides:
cancelJobCallablein classBatchServiceStub
-
cancelJobOperationCallable
public OperationCallable<CancelJobRequest,CancelJobResponse, cancelJobOperationCallable()OperationMetadata> - Overrides:
cancelJobOperationCallablein classBatchServiceStub
-
listJobsCallable
- Overrides:
listJobsCallablein classBatchServiceStub
-
listJobsPagedCallable
public UnaryCallable<ListJobsRequest,BatchServiceClient.ListJobsPagedResponse> listJobsPagedCallable()- Overrides:
listJobsPagedCallablein classBatchServiceStub
-
getTaskCallable
- Overrides:
getTaskCallablein classBatchServiceStub
-
listTasksCallable
- Overrides:
listTasksCallablein classBatchServiceStub
-
listTasksPagedCallable
public UnaryCallable<ListTasksRequest,BatchServiceClient.ListTasksPagedResponse> listTasksPagedCallable()- Overrides:
listTasksPagedCallablein classBatchServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classBatchServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,BatchServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classBatchServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classBatchServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classBatchServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-