@NotThreadSafe public final class JobMasterMasterServiceHandler extends JobMasterMasterServiceGrpc.JobMasterMasterServiceImplBase
Constructor and Description |
---|
JobMasterMasterServiceHandler(JobMaster jobMaster)
Creates a new instance of
JobMasterMasterServiceHandler . |
Modifier and Type | Method and Description |
---|---|
void |
getMasterId(GetJobMasterIdPRequest request,
io.grpc.stub.StreamObserver<GetJobMasterIdPResponse> responseObserver)
Returns a master id for the given master address.
|
void |
masterHeartbeat(JobMasterHeartbeatPRequest request,
io.grpc.stub.StreamObserver<JobMasterHeartbeatPResponse> responseObserver)
Heartbeats to indicate the master is lost or not.
|
void |
registerMaster(RegisterJobMasterPRequest request,
io.grpc.stub.StreamObserver<RegisterJobMasterPResponse> responseObserver)
Registers a master.
|
bindService
public JobMasterMasterServiceHandler(JobMaster jobMaster)
JobMasterMasterServiceHandler
.jobMaster
- the job master from the primary job master processpublic void getMasterId(GetJobMasterIdPRequest request, io.grpc.stub.StreamObserver<GetJobMasterIdPResponse> responseObserver)
JobMasterMasterServiceGrpc.AsyncService
Returns a master id for the given master address.
public void registerMaster(RegisterJobMasterPRequest request, io.grpc.stub.StreamObserver<RegisterJobMasterPResponse> responseObserver)
JobMasterMasterServiceGrpc.AsyncService
Registers a master.
public void masterHeartbeat(JobMasterHeartbeatPRequest request, io.grpc.stub.StreamObserver<JobMasterHeartbeatPResponse> responseObserver)
JobMasterMasterServiceGrpc.AsyncService
Heartbeats to indicate the master is lost or not.
Copyright © 2023. All Rights Reserved.