public class FollowerRole extends NonLeaderRole
Modifier and Type | Method and Description |
---|---|
String |
getLeaderAddress()
Get the address of my leader, if known.
|
String |
getLeaderIdentity()
Get the identity of my leader, if known.
|
int |
getNodesProbed()
Determine the number of nodes (including this node) that this node has successfully probed when probing
for a majority of nodes with
PingRequest s prior to reverting to a candidate. |
String |
getVotedFor()
Get the identity of the node that this node voted for this term, if any.
|
boolean |
isInstallingSnapshot()
Determine whether this node is currently in the process of receiving a whole database snapshot download.
|
String |
toString() |
getElectionTimeout, startElection
getKVDatabase, isLeaderLeaseActiveAt, isLeaderLeaseActiveNow
public String getLeaderIdentity()
public String getLeaderAddress()
public String getVotedFor()
public boolean isInstallingSnapshot()
public int getNodesProbed()
PingRequest
s prior to reverting to a candidate.Copyright © 2022. All rights reserved.