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 |
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.JobMasterClientServiceImplBase
Cancels the given job.
cancel
in class JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
public void getJobStatus(GetJobStatusPRequest request, io.grpc.stub.StreamObserver<GetJobStatusPResponse> responseObserver)
JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Gets the status of the given job.
getJobStatus
in class JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
public void getJobStatusDetailed(GetJobStatusDetailedPRequest request, io.grpc.stub.StreamObserver<GetJobStatusDetailedPResponse> responseObserver)
JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Gets the status of the given job.
getJobStatusDetailed
in class JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
public void getJobServiceSummary(GetJobServiceSummaryPRequest request, io.grpc.stub.StreamObserver<GetJobServiceSummaryPResponse> responseObserver)
JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Gets the summary of the job service.
getJobServiceSummary
in class JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
public void listAll(ListAllPRequest request, io.grpc.stub.StreamObserver<ListAllPResponse> responseObserver)
JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Lists ids of all known jobs.
listAll
in class JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
public void run(RunPRequest request, io.grpc.stub.StreamObserver<RunPResponse> responseObserver)
JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Starts the given job, returning a job id.
run
in class JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
public void getAllWorkerHealth(GetAllWorkerHealthPRequest request, io.grpc.stub.StreamObserver<GetAllWorkerHealthPResponse> responseObserver)
JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Lists all worker health.
getAllWorkerHealth
in class JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
public void submit(SubmitRequest request, io.grpc.stub.StreamObserver<SubmitResponse> responseObserver)
JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Submit a CMD job, return a jobControlId.
submit
in class JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
public void getCmdStatus(GetCmdStatusRequest request, io.grpc.stub.StreamObserver<GetCmdStatusResponse> responseObserver)
JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Get status for a CMD job, return a status.
getCmdStatus
in class JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
public void getCmdStatusDetailed(GetCmdStatusDetailedRequest request, io.grpc.stub.StreamObserver<GetCmdStatusDetailedResponse> responseObserver)
JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Get detailed status for a CMD job, return detailed status information.
getCmdStatusDetailed
in class JobMasterClientServiceGrpc.JobMasterClientServiceImplBase
Copyright © 2023. All Rights Reserved.