Class PeerInfo
- java.lang.Object
-
- org.opendaylight.controller.cluster.raft.PeerInfo
-
public class PeerInfo extends Object
Stores information about a raft peer.- Author:
- Thomas Pantelis
-
-
Constructor Summary
Constructors Constructor Description PeerInfo(String id, String address, VotingState votingState)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddress()
String
getId()
VotingState
getVotingState()
boolean
isVoting()
void
setAddress(String address)
void
setVotingState(VotingState votingState)
String
toString()
-
-
-
Constructor Detail
-
PeerInfo
public PeerInfo(String id, String address, VotingState votingState)
Constructs an instance.- Parameters:
id
- the id of the peer.address
- the address of the peer.votingState
- the VotingState of the peer.
-
-
Method Detail
-
getId
public String getId()
-
getAddress
public String getAddress()
-
getVotingState
public VotingState getVotingState()
-
isVoting
public boolean isVoting()
-
setAddress
public void setAddress(String address)
-
setVotingState
public void setVotingState(VotingState votingState)
-
-