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 StringgetAddress()StringgetId()VotingStategetVotingState()booleanisVoting()voidsetAddress(String address)voidsetVotingState(VotingState votingState)StringtoString()
-
-
-
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)
-
-