fabric.dissemination.pastry.messages
Class Fetch

java.lang.Object
  extended by fabric.dissemination.pastry.messages.Fetch

public class Fetch
extends java.lang.Object

A Fetch message represents a request to fetch a particular object.


Nested Class Summary
static class Fetch.Reply
          A reply to a Fetch message.
 
Constructor Summary
Fetch(InputBuffer buf, Endpoint endpoint, NodeHandle sender)
          Deserialization constructor.
Fetch(NodeHandle sender, Id id, java.lang.String store, long onum)
           
 
Method Summary
 int getPriority()
           
 short getType()
           
 Id id()
          The random id of this message.
 long onum()
          The object number of the requested object.
 boolean refresh()
          A hint as to whether we want to explicitly fetch the latest version from the store.
 void refresh(boolean refresh)
          Set whether we want to refresh.
 Fetch.Reply reply()
          The reply message.
 void reply(Fetch.Reply reply)
          Sets the reply message.
 NodeHandle sender()
          The sender of this message.
 void serialize(OutputBuffer buf)
           
 java.lang.String store()
          The store where the requested object resides.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Fetch

public Fetch(NodeHandle sender,
             Id id,
             java.lang.String store,
             long onum)

Fetch

public Fetch(InputBuffer buf,
             Endpoint endpoint,
             NodeHandle sender)
      throws java.io.IOException
Deserialization constructor.

Throws:
java.io.IOException
Method Detail

sender

public NodeHandle sender()
The sender of this message.


id

public Id id()
The random id of this message.


store

public java.lang.String store()
The store where the requested object resides.


onum

public long onum()
The object number of the requested object.


refresh

public boolean refresh()
A hint as to whether we want to explicitly fetch the latest version from the store.


refresh

public void refresh(boolean refresh)
Set whether we want to refresh.


reply

public Fetch.Reply reply()
The reply message.


reply

public void reply(Fetch.Reply reply)
Sets the reply message.


getPriority

public int getPriority()

toString

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

getType

public short getType()

serialize

public void serialize(OutputBuffer buf)
               throws java.io.IOException
Throws:
java.io.IOException