Class JobControllerGrpc.JobControllerStub (4.50.0)

public static final class JobControllerGrpc.JobControllerStub extends AbstractAsyncStub<JobControllerGrpc.JobControllerStub>

A stub to allow clients to do asynchronous rpc calls to service JobController.

The JobController provides methods to manage jobs.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > JobControllerGrpc.JobControllerStub

Methods

build(Channel channel, CallOptions callOptions)

protected JobControllerGrpc.JobControllerStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
JobControllerGrpc.JobControllerStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

cancelJob(CancelJobRequest request, StreamObserver<Job> responseObserver)

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 or regions/{region}/jobs.get.

Parameters
Name Description
request CancelJobRequest
responseObserver io.grpc.stub.StreamObserver<Job>

deleteJob(DeleteJobRequest request, StreamObserver<Empty> responseObserver)

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.

Parameters
Name Description
request DeleteJobRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getJob(GetJobRequest request, StreamObserver<Job> responseObserver)

public void getJob(GetJobRequest request, StreamObserver<Job> responseObserver)

Gets the resource representation for a job in a project.

Parameters
Name Description
request GetJobRequest
responseObserver io.grpc.stub.StreamObserver<Job>

listJobs(ListJobsRequest request, StreamObserver<ListJobsResponse> responseObserver)

public void listJobs(ListJobsRequest request, StreamObserver<ListJobsResponse> responseObserver)

Lists regions/{region}/jobs in a project.

Parameters
Name Description
request ListJobsRequest
responseObserver io.grpc.stub.StreamObserver<ListJobsResponse>

submitJob(SubmitJobRequest request, StreamObserver<Job> responseObserver)

public void submitJob(SubmitJobRequest request, StreamObserver<Job> responseObserver)

Submits a job to a cluster.

Parameters
Name Description
request SubmitJobRequest
responseObserver io.grpc.stub.StreamObserver<Job>

submitJobAsOperation(SubmitJobRequest request, StreamObserver<Operation> responseObserver)

public void submitJobAsOperation(SubmitJobRequest request, StreamObserver<Operation> responseObserver)

Submits job to a cluster.

Parameters
Name Description
request SubmitJobRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateJob(UpdateJobRequest request, StreamObserver<Job> responseObserver)

public void updateJob(UpdateJobRequest request, StreamObserver<Job> responseObserver)

Updates a job in a project.

Parameters
Name Description
request UpdateJobRequest
responseObserver io.grpc.stub.StreamObserver<Job>