Class CertifiedDecision

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    public class CertifiedDecision
    extends java.lang.Object
    implements java.io.Externalizable
    Data about the last consensus decision
    See Also:
    Serialized Form
    • Constructor Detail

      • CertifiedDecision

        public CertifiedDecision()
        Empty constructor
      • CertifiedDecision

        public CertifiedDecision​(int pid,
                                 int cid,
                                 byte[] decision,
                                 java.util.Set<ConsensusMessage> consMsgs)
        Constructor
        Parameters:
        pid - process id
        cid - execution id
        decision - decision value
        consMsgs - proof of the decision in the form of authenticated Consensus Messages
    • Method Detail

      • getCID

        public int getCID()
        Get consensus ID
        Returns:
        consensus ID
      • getDecision

        public byte[] getDecision()
        Get decision value
        Returns:
        decision value
      • getConsMessages

        public java.util.Set<ConsensusMessage> getConsMessages()
        Get proof of the decision in the form of authenticated Consensus Messages
        Returns:
        proof of the decision in the form of authenticated Consensus Messages
      • getPID

        public int getPID()
        Get process id
        Returns:
        process id
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException