Class JobControllerGrpc.JobControllerImplBase (4.8.0)

public abstract static class JobControllerGrpc.JobControllerImplBase implements BindableService

The JobController provides methods to manage jobs.

Inheritance

java.lang.Object > JobControllerGrpc.JobControllerImplBase

Implements

io.grpc.BindableService

Constructors

JobControllerImplBase()

public JobControllerImplBase()

Methods

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

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
NameDescription
requestCancelJobRequest
responseObserverio.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
NameDescription
requestDeleteJobRequest
responseObserverio.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
NameDescription
requestGetJobRequest
responseObserverio.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
NameDescription
requestListJobsRequest
responseObserverio.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
NameDescription
requestSubmitJobRequest
responseObserverio.grpc.stub.StreamObserver<Job>

submitJobAsOperation(SubmitJobRequest request, StreamObserver<Operation> responseObserver)

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

Submits job to a cluster.

Parameters
NameDescription
requestSubmitJobRequest
responseObserverio.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
NameDescription
requestUpdateJobRequest
responseObserverio.grpc.stub.StreamObserver<Job>