public static final class JobControllerGrpc.JobControllerStub extends AbstractAsyncStub<JobControllerGrpc.JobControllerStub>
The JobController provides methods to manage jobs.
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
protected JobControllerGrpc.JobControllerStub |
build(Channel channel,
CallOptions callOptions) |
void |
cancelJob(CancelJobRequest request,
StreamObserver<Job> responseObserver)
Starts a job cancellation request.
|
void |
deleteJob(DeleteJobRequest request,
StreamObserver<Empty> responseObserver)
Deletes the job from the project.
|
void |
getJob(GetJobRequest request,
StreamObserver<Job> responseObserver)
Gets the resource representation for a job in a project.
|
void |
listJobs(ListJobsRequest request,
StreamObserver<ListJobsResponse> responseObserver)
Lists regions/{region}/jobs in a project.
|
void |
submitJob(SubmitJobRequest request,
StreamObserver<Job> responseObserver)
Submits a job to a cluster.
|
void |
submitJobAsOperation(SubmitJobRequest request,
StreamObserver<Operation> responseObserver)
Submits job to a cluster.
|
void |
updateJob(UpdateJobRequest request,
StreamObserver<Job> responseObserver)
Updates a job in a project.
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected JobControllerGrpc.JobControllerStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<JobControllerGrpc.JobControllerStub>
public void submitJob(SubmitJobRequest request, StreamObserver<Job> responseObserver)
Submits a job to a cluster.
public void submitJobAsOperation(SubmitJobRequest request, StreamObserver<Operation> responseObserver)
Submits job to a cluster.
public void getJob(GetJobRequest request, StreamObserver<Job> responseObserver)
Gets the resource representation for a job in a project.
public void listJobs(ListJobsRequest request, StreamObserver<ListJobsResponse> responseObserver)
Lists regions/{region}/jobs in a project.
public void updateJob(UpdateJobRequest request, StreamObserver<Job> responseObserver)
Updates a job in a project.
public void cancelJob(CancelJobRequest request, StreamObserver<Job> responseObserver)
Starts a job cancellation request. To access the job resource after cancellation, call [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
public void deleteJob(DeleteJobRequest request, StreamObserver<Empty> responseObserver)
Deletes the job from the project. If the job is active, the delete fails, and the response returns `FAILED_PRECONDITION`.
Copyright © 2022 Google LLC. All rights reserved.