public class JobMasterClientServiceHandler extends JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Constructor and Description |
---|
JobMasterClientServiceHandler(JobMaster jobMaster)
Creates a new instance of
JobMasterClientRestServiceHandler . |
Modifier and Type | Method and Description |
---|---|
void |
cancel(CancelPRequest request,
io.grpc.stub.StreamObserver<CancelPResponse> responseObserver)
Cancels the given job.
|
void |
getAllMasterStatus(GetAllMasterStatusPRequest request,
io.grpc.stub.StreamObserver<GetAllMasterStatusPResponse> responseObserver)
Lists all job master status.
|
void |
getAllWorkerHealth(GetAllWorkerHealthPRequest request,
io.grpc.stub.StreamObserver<GetAllWorkerHealthPResponse> responseObserver)
Lists all worker health.
|
void |
getCmdStatus(GetCmdStatusRequest request,
io.grpc.stub.StreamObserver<GetCmdStatusResponse> responseObserver)
Get status for a CMD job, return a status.
|
void |
getCmdStatusDetailed(GetCmdStatusDetailedRequest request,
io.grpc.stub.StreamObserver<GetCmdStatusDetailedResponse> responseObserver)
Get detailed status for a CMD job, return detailed status information.
|
void |
getJobServiceSummary(GetJobServiceSummaryPRequest request,
io.grpc.stub.StreamObserver<GetJobServiceSummaryPResponse> responseObserver)
Gets the summary of the job service.
|
void |
getJobStatus(GetJobStatusPRequest request,
io.grpc.stub.StreamObserver<GetJobStatusPResponse> responseObserver)
Gets the status of the given job.
|
void |
getJobStatusDetailed(GetJobStatusDetailedPRequest request,
io.grpc.stub.StreamObserver<GetJobStatusDetailedPResponse> responseObserver)
Gets the status of the given job.
|
void |
listAll(ListAllPRequest request,
io.grpc.stub.StreamObserver<ListAllPResponse> responseObserver)
Lists ids of all known jobs.
|
void |
run(RunPRequest request,
io.grpc.stub.StreamObserver<RunPResponse> responseObserver)
Starts the given job, returning a job id.
|
void |
submit(SubmitRequest request,
io.grpc.stub.StreamObserver<SubmitResponse> responseObserver)
Submit a CMD job, return a jobControlId.
|
bindService
public JobMasterClientServiceHandler(JobMaster jobMaster)
JobMasterClientRestServiceHandler
.jobMaster
- the job master to usepublic void cancel(CancelPRequest request, io.grpc.stub.StreamObserver<CancelPResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Cancels the given job.
public void getJobStatus(GetJobStatusPRequest request, io.grpc.stub.StreamObserver<GetJobStatusPResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Gets the status of the given job.
public void getJobStatusDetailed(GetJobStatusDetailedPRequest request, io.grpc.stub.StreamObserver<GetJobStatusDetailedPResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Gets the status of the given job.
public void getJobServiceSummary(GetJobServiceSummaryPRequest request, io.grpc.stub.StreamObserver<GetJobServiceSummaryPResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Gets the summary of the job service.
public void listAll(ListAllPRequest request, io.grpc.stub.StreamObserver<ListAllPResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Lists ids of all known jobs.
public void run(RunPRequest request, io.grpc.stub.StreamObserver<RunPResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Starts the given job, returning a job id.
public void getAllWorkerHealth(GetAllWorkerHealthPRequest request, io.grpc.stub.StreamObserver<GetAllWorkerHealthPResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Lists all worker health.
public void getAllMasterStatus(GetAllMasterStatusPRequest request, io.grpc.stub.StreamObserver<GetAllMasterStatusPResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Lists all job master status.
public void submit(SubmitRequest request, io.grpc.stub.StreamObserver<SubmitResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Submit a CMD job, return a jobControlId.
public void getCmdStatus(GetCmdStatusRequest request, io.grpc.stub.StreamObserver<GetCmdStatusResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Get status for a CMD job, return a status.
public void getCmdStatusDetailed(GetCmdStatusDetailedRequest request, io.grpc.stub.StreamObserver<GetCmdStatusDetailedResponse> responseObserver)
JobMasterClientServiceGrpc.AsyncService
Get detailed status for a CMD job, return detailed status information.
Copyright © 2023. All Rights Reserved.