org.planx.routing.kademlia.operation
Class StoreRequestMessage

java.lang.Object
  extended by org.planx.routing.kademlia.operation.OriginMessage
      extended by org.planx.routing.kademlia.operation.StoreRequestMessage
All Implemented Interfaces:
Message, Streamable

public class StoreRequestMessage
extends OriginMessage


Constructor Summary
StoreRequestMessage(DataInput in)
           
StoreRequestMessage(Node origin, long begin, long end)
           
 
Method Summary
 byte code()
          The unique code for the message type, used to differentiate all messages from each other.
 void fromStream(DataInput in)
          Reads the internal state of the Streamable object from the input stream.
 long getBegin()
           
 long getEnd()
           
 void toStream(DataOutput out)
          Writes the internal state of the Streamable object to the output stream in a format that can later be read by the same Streamble class using the Streamable.fromStream(java.io.DataInput) method.
 String toString()
           
 
Methods inherited from class org.planx.routing.kademlia.operation.OriginMessage
getOrigin
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StoreRequestMessage

public StoreRequestMessage(Node origin,
                           long begin,
                           long end)

StoreRequestMessage

public StoreRequestMessage(DataInput in)
                    throws IOException
Throws:
IOException
Method Detail

fromStream

public void fromStream(DataInput in)
                throws IOException
Description copied from interface: Streamable
Reads the internal state of the Streamable object from the input stream. Immutable objects should throw an UnsupportedOperationException, and instead implement a constructor as described above.

Specified by:
fromStream in interface Streamable
Overrides:
fromStream in class OriginMessage
Throws:
IOException

toStream

public void toStream(DataOutput out)
              throws IOException
Description copied from interface: Streamable
Writes the internal state of the Streamable object to the output stream in a format that can later be read by the same Streamble class using the Streamable.fromStream(java.io.DataInput) method.

Specified by:
toStream in interface Streamable
Overrides:
toStream in class OriginMessage
Throws:
IOException

getBegin

public long getBegin()

getEnd

public long getEnd()

code

public byte code()
Description copied from interface: Message
The unique code for the message type, used to differentiate all messages from each other. Since this is of byte type there can be at most 256 different message types.

Specified by:
code in interface Message
Specified by:
code in class OriginMessage

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2005 Plan-X. All Rights Reserved.