@NotThreadSafe public final class MetaMasterMasterServiceHandler extends MetaMasterMasterServiceGrpc.MetaMasterMasterServiceImplBase
Constructor and Description |
---|
MetaMasterMasterServiceHandler(MetaMaster metaMaster)
Creates a new instance of
MetaMasterMasterServiceHandler . |
Modifier and Type | Method and Description |
---|---|
void |
getMasterId(GetMasterIdPRequest request,
io.grpc.stub.StreamObserver<GetMasterIdPResponse> responseObserver)
Returns a master id for the given master address.
|
void |
masterHeartbeat(MasterHeartbeatPRequest request,
io.grpc.stub.StreamObserver<MasterHeartbeatPResponse> responseObserver)
Heartbeats to indicate the master is lost or not.
|
void |
registerMaster(RegisterMasterPRequest request,
io.grpc.stub.StreamObserver<RegisterMasterPResponse> responseObserver)
Registers a master.
|
bindService
public MetaMasterMasterServiceHandler(MetaMaster metaMaster)
MetaMasterMasterServiceHandler
.metaMaster
- the Alluxio meta masterpublic void getMasterId(GetMasterIdPRequest request, io.grpc.stub.StreamObserver<GetMasterIdPResponse> responseObserver)
MetaMasterMasterServiceGrpc.MetaMasterMasterServiceImplBase
Returns a master id for the given master address.
getMasterId
in class MetaMasterMasterServiceGrpc.MetaMasterMasterServiceImplBase
public void registerMaster(RegisterMasterPRequest request, io.grpc.stub.StreamObserver<RegisterMasterPResponse> responseObserver)
MetaMasterMasterServiceGrpc.MetaMasterMasterServiceImplBase
Registers a master.
registerMaster
in class MetaMasterMasterServiceGrpc.MetaMasterMasterServiceImplBase
public void masterHeartbeat(MasterHeartbeatPRequest request, io.grpc.stub.StreamObserver<MasterHeartbeatPResponse> responseObserver)
MetaMasterMasterServiceGrpc.MetaMasterMasterServiceImplBase
Heartbeats to indicate the master is lost or not.
masterHeartbeat
in class MetaMasterMasterServiceGrpc.MetaMasterMasterServiceImplBase
Copyright © 2023. All Rights Reserved.