public static final class JobServiceGrpc.JobServiceStub extends io.grpc.stub.AbstractStub<JobServiceGrpc.JobServiceStub>
Job Service for running RunnerAPI pipelines
| Modifier and Type | Method and Description |
|---|---|
protected JobServiceGrpc.JobServiceStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
cancel(JobApi.CancelJobRequest request,
io.grpc.stub.StreamObserver<JobApi.CancelJobResponse> responseObserver)
Cancel the job
|
void |
getMessageStream(JobApi.JobMessagesRequest request,
io.grpc.stub.StreamObserver<JobApi.JobMessagesResponse> responseObserver)
Subscribe to a stream of state changes and messages from the job
|
void |
getState(JobApi.GetJobStateRequest request,
io.grpc.stub.StreamObserver<JobApi.GetJobStateResponse> responseObserver)
Get the current state of the job
|
void |
getStateStream(JobApi.GetJobStateRequest request,
io.grpc.stub.StreamObserver<JobApi.GetJobStateResponse> responseObserver)
Subscribe to a stream of state changes of the job, will immediately return the current state of the job as the first response.
|
void |
prepare(JobApi.PrepareJobRequest request,
io.grpc.stub.StreamObserver<JobApi.PrepareJobResponse> responseObserver)
Prepare a job for execution.
|
void |
run(JobApi.RunJobRequest request,
io.grpc.stub.StreamObserver<JobApi.RunJobResponse> responseObserver)
Submit the job for execution
|
protected JobServiceGrpc.JobServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<JobServiceGrpc.JobServiceStub>public void prepare(JobApi.PrepareJobRequest request, io.grpc.stub.StreamObserver<JobApi.PrepareJobResponse> responseObserver)
Prepare a job for execution. The job will not be executed until a call is made to run with the returned preparationId.
public void run(JobApi.RunJobRequest request, io.grpc.stub.StreamObserver<JobApi.RunJobResponse> responseObserver)
Submit the job for execution
public void getState(JobApi.GetJobStateRequest request, io.grpc.stub.StreamObserver<JobApi.GetJobStateResponse> responseObserver)
Get the current state of the job
public void cancel(JobApi.CancelJobRequest request, io.grpc.stub.StreamObserver<JobApi.CancelJobResponse> responseObserver)
Cancel the job
public void getStateStream(JobApi.GetJobStateRequest request, io.grpc.stub.StreamObserver<JobApi.GetJobStateResponse> responseObserver)
Subscribe to a stream of state changes of the job, will immediately return the current state of the job as the first response.
public void getMessageStream(JobApi.JobMessagesRequest request, io.grpc.stub.StreamObserver<JobApi.JobMessagesResponse> responseObserver)
Subscribe to a stream of state changes and messages from the job
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.