Class SystemMessage

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean authenticated  
      protected int sender  
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemMessage()
      Creates a new instance of SystemMessage
      SystemMessage​(int sender)
      Creates a new instance of SystemMessage
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getSender()
      Returns the ID of the process which sent the message
      void readExternal​(java.io.ObjectInput in)  
      void writeExternal​(java.io.ObjectOutput out)  
      • Methods inherited from class java.lang.Object

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

      • sender

        protected int sender
      • authenticated

        public transient boolean authenticated
    • Constructor Detail

      • SystemMessage

        public SystemMessage()
        Creates a new instance of SystemMessage
      • SystemMessage

        public SystemMessage​(int sender)
        Creates a new instance of SystemMessage
        Parameters:
        sender - ID of the process which sent the message
    • Method Detail

      • getSender

        public final int getSender()
        Returns the ID of the process which sent the message
        Returns:
      • 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