public class JournalMasterClientServiceHandler extends JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
Constructor and Description |
---|
JournalMasterClientServiceHandler(JournalMaster journalMaster)
Creates gRPC service handler for JobMaster service.
|
Modifier and Type | Method and Description |
---|---|
void |
getQuorumInfo(GetQuorumInfoPRequest request,
io.grpc.stub.StreamObserver<GetQuorumInfoPResponse> responseObserver)
Gets list of server states in an embedded journal quorum.
|
void |
removeQuorumServer(RemoveQuorumServerPRequest request,
io.grpc.stub.StreamObserver<RemoveQuorumServerPResponse> responseObserver)
Removes a server from embedded journal quorum.
|
void |
resetPriorities(ResetPrioritiesPRequest request,
io.grpc.stub.StreamObserver<ResetPrioritiesPResponse> responseObserver)
Reset all the RaftPeer priorities.
|
void |
transferLeadership(TransferLeadershipPRequest request,
io.grpc.stub.StreamObserver<TransferLeadershipPResponse> responseObserver)
Transfers the leadership from the current leader to another designated leader.
|
bindService
public JournalMasterClientServiceHandler(JournalMaster journalMaster)
journalMaster
- the journal masterpublic void getQuorumInfo(GetQuorumInfoPRequest request, io.grpc.stub.StreamObserver<GetQuorumInfoPResponse> responseObserver)
JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
Gets list of server states in an embedded journal quorum.
getQuorumInfo
in class JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
public void removeQuorumServer(RemoveQuorumServerPRequest request, io.grpc.stub.StreamObserver<RemoveQuorumServerPResponse> responseObserver)
JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
Removes a server from embedded journal quorum.
removeQuorumServer
in class JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
public void transferLeadership(TransferLeadershipPRequest request, io.grpc.stub.StreamObserver<TransferLeadershipPResponse> responseObserver)
JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
Transfers the leadership from the current leader to another designated leader.
transferLeadership
in class JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
public void resetPriorities(ResetPrioritiesPRequest request, io.grpc.stub.StreamObserver<ResetPrioritiesPResponse> responseObserver)
JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
Reset all the RaftPeer priorities.
resetPriorities
in class JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
Copyright © 2023. All Rights Reserved.