Class PeerInfo


  • public class PeerInfo
    extends Object
    Stores information about a raft peer.
    Author:
    Thomas Pantelis
    • 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()
      • isVoting

        public boolean isVoting()
      • setAddress

        public void setAddress​(String address)
      • setVotingState

        public void setVotingState​(VotingState votingState)