Interface JobControllerGrpc.AsyncService (4.28.0)

See more code actions.
public static interface JobControllerGrpc.AsyncService

The JobController provides methods to manage jobs.

See more code actions.
public default 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 default 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 default 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 default 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 default 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 default 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 default void updateJob(UpdateJobRequest request, StreamObserver<Job> responseObserver)

Updates a job in a project.

Parameters
NameDescription
requestUpdateJobRequest
responseObserverio.grpc.stub.StreamObserver<Job>