java.lang.Object
org.opendaylight.controller.cluster.raft.PeerInfo

public class PeerInfo extends Object
Stores information about a raft peer.
Author:
Thomas Pantelis
  • Constructor Details

    • 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 Details

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object