Class PingData

    • Field Detail

      • flags

        protected byte flags
      • logical_name

        protected java.lang.String logical_name
      • mbrs

        protected java.util.Collection<? extends Address> mbrs
    • Constructor Detail

      • PingData

        public PingData()
      • PingData

        public PingData​(Address sender,
                        boolean is_server)
      • PingData

        public PingData​(Address sender,
                        boolean is_server,
                        java.lang.String logical_name,
                        PhysicalAddress physical_addr)
    • Method Detail

      • create

        public java.util.function.Supplier<? extends PingData> create()
        Description copied from interface: Constructable
        Creates an instance of the class implementing this interface
        Specified by:
        create in interface Constructable<PingData>
      • coord

        public PingData coord​(boolean c)
      • server

        public PingData server​(boolean c)
      • isCoord

        public boolean isCoord()
      • isServer

        public boolean isServer()
      • getAddress

        public Address getAddress()
      • getLogicalName

        public java.lang.String getLogicalName()
      • mbrs

        public PingData mbrs​(java.util.Collection<? extends Address> mbrs)
      • mbrs

        public java.util.Collection<? extends Address> mbrs()
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • writeTo

        public void writeTo​(java.io.DataOutput outstream)
                     throws java.io.IOException
        Description copied from interface: Streamable
        Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed
        Specified by:
        writeTo in interface Streamable
        Throws:
        java.io.IOException
      • readFrom

        public void readFrom​(java.io.DataInput instream)
                      throws java.io.IOException,
                             java.lang.ClassNotFoundException
        Description copied from interface: Streamable
        Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
        Specified by:
        readFrom in interface Streamable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException