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 |
getNodeState(GetNodeStatePRequest request,
io.grpc.stub.StreamObserver<GetNodeStatePResponse> responseObserver)
Gets the state of the current node and returns whether it is primary or standby.
|
void |
getQuorumInfo(GetQuorumInfoPRequest request,
io.grpc.stub.StreamObserver<GetQuorumInfoPResponse> responseObserver)
Gets list of server states in an embedded journal quorum.
|
void |
getTransferLeaderMessage(GetTransferLeaderMessagePRequest request,
io.grpc.stub.StreamObserver<GetTransferLeaderMessagePResponse> responseObserver)
Gets exception message throwing when transfer leader.
|
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.AsyncService
Gets list of server states in an embedded journal quorum.
public void removeQuorumServer(RemoveQuorumServerPRequest request, io.grpc.stub.StreamObserver<RemoveQuorumServerPResponse> responseObserver)
JournalMasterClientServiceGrpc.AsyncService
Removes a server from embedded journal quorum.
public void transferLeadership(TransferLeadershipPRequest request, io.grpc.stub.StreamObserver<TransferLeadershipPResponse> responseObserver)
JournalMasterClientServiceGrpc.AsyncService
Transfers the leadership from the current leader to another designated leader.
public void resetPriorities(ResetPrioritiesPRequest request, io.grpc.stub.StreamObserver<ResetPrioritiesPResponse> responseObserver)
JournalMasterClientServiceGrpc.AsyncService
Reset all the RaftPeer priorities.
public void getTransferLeaderMessage(GetTransferLeaderMessagePRequest request, io.grpc.stub.StreamObserver<GetTransferLeaderMessagePResponse> responseObserver)
JournalMasterClientServiceGrpc.AsyncService
Gets exception message throwing when transfer leader.
public void getNodeState(GetNodeStatePRequest request, io.grpc.stub.StreamObserver<GetNodeStatePResponse> responseObserver)
JournalMasterClientServiceGrpc.AsyncService
Gets the state of the current node and returns whether it is primary or standby.
Copyright © 2023. All Rights Reserved.