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
PingRequests 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, startElectiongetKVDatabasepublic String getLeaderIdentity()
public String getLeaderAddress()
public String getVotedFor()
public boolean isInstallingSnapshot()
public int getNodesProbed()
PingRequests prior to reverting to a candidate.Copyright © 2016. All rights reserved.