Class GossipData

  • All Implemented Interfaces:
    SizeStreamable, Streamable

    public class GossipData
    extends java.lang.Object
    implements SizeStreamable
    Encapsulates data sent between GossipRouter and RouterStub (TCPGOSSIP and TUNNEL)
    Author:
    Bela Ban Oct 4 2001
    • Constructor Detail

      • GossipData

        public GossipData()
      • GossipData

        public GossipData​(GossipType type)
      • GossipData

        public GossipData​(GossipType type,
                          java.lang.String group,
                          Address addr)
      • GossipData

        public GossipData​(GossipType type,
                          java.lang.String group,
                          Address addr,
                          java.util.List<PingData> ping_data)
      • GossipData

        public GossipData​(GossipType type,
                          java.lang.String group,
                          Address addr,
                          byte[] buffer)
      • GossipData

        public GossipData​(GossipType type,
                          java.lang.String group,
                          Address addr,
                          byte[] buffer,
                          int offset,
                          int length)
    • Method Detail

      • getGroup

        public java.lang.String getGroup()
      • getAddress

        public Address getAddress()
      • getSender

        public Address getSender()
      • getLogicalName

        public java.lang.String getLogicalName()
      • getPingData

        public java.util.List<PingData> getPingData()
      • getBuffer

        public byte[] getBuffer()
      • getOffset

        public int getOffset()
      • getLength

        public int getLength()
      • toString

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

        public void writeTo​(java.io.DataOutput out)
                     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 in)
                      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
      • readFrom

        public void readFrom​(java.io.DataInput in,
                             boolean read_type)
                      throws java.io.IOException,
                             java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • readFrom

        public void readFrom​(java.io.DataInput in,
                             boolean read_type,
                             boolean read_payload)
                      throws java.io.IOException,
                             java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException