Class StandardSMMessage

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

    public class StandardSMMessage
    extends SMMessage
    See Also:
    Serialized Form
    • Constructor Detail

      • StandardSMMessage

        public StandardSMMessage​(int sender,
                                 int cid,
                                 int type,
                                 int replica,
                                 ApplicationState state,
                                 View view,
                                 int regency,
                                 int leader)
      • StandardSMMessage

        public StandardSMMessage()
    • Method Detail

      • getReplica

        public int getReplica()
        Retrieves the replica that should send the state
        Returns:
        The replica that should send the state
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class SMMessage
        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
        Overrides:
        readExternal in class SMMessage
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException