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.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
public void getTransferLeaderMessage(GetTransferLeaderMessagePRequest request, io.grpc.stub.StreamObserver<GetTransferLeaderMessagePResponse> responseObserver)
JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
Gets exception message throwing when transfer leader.
public void getNodeState(GetNodeStatePRequest request, io.grpc.stub.StreamObserver<GetNodeStatePResponse> responseObserver)
JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
Gets the state of the current node and returns whether it is primary or standby.
getNodeState
in class JournalMasterClientServiceGrpc.JournalMasterClientServiceImplBase
Copyright © 2023. All Rights Reserved.