Class Proposer


  • public class Proposer
    extends java.lang.Object
    This class represents the proposer role in the consensus protocol.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void startConsensus​(int cid, byte[] value)
      This method is called by the TOMLayer (or any other) to start the consensus instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Proposer

        public Proposer​(ServerCommunicationSystem communication,
                        MessageFactory factory,
                        ServerViewController controller)
        Creates a new instance of Proposer
        Parameters:
        communication - Replicas communication system
        factory - Factory for PaW messages
        verifier - Proof verifier
        conf - TOM configuration
    • Method Detail

      • startConsensus

        public void startConsensus​(int cid,
                                   byte[] value)
        This method is called by the TOMLayer (or any other) to start the consensus instance.
        Parameters:
        cid - ID for the consensus instance to be started
        value - Value to be proposed