tapestry.ptr.impl.dht
Class DhtReq

java.lang.Object
  |
  +--tapestry.ptr.impl.dht.DhtReq
All Implemented Interfaces:
QueueElementIF
Direct Known Subclasses:
DhtGetReq, DhtIteratorNextReq, DhtIteratorStartReq, DhtPutReq, DhtRemoveReq

public abstract class DhtReq
extends Object
implements QueueElementIF

DhtReq is an abstract class for all DHT request.

Version:
$Id: DhtReq.java,v 1.1.1.1 2004/03/26 19:57:11 hweather Exp $
Author:
Hakim Weatherspoon

Field Summary
 long appId
          Unique identifier for a destination application.
 SinkIF sink
          Requestor sink to return resp.
 Object userData
          Requestor defined object to be returned in the resp.
 
Constructor Summary
DhtReq(long a, Object u, SinkIF s)
          Constructor: Creates a new DhtPutReq.
 
Method Summary
protected  void BUG(String msg)
          BUG outputs a fatal error msg, then terminates the proces.
abstract  String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

appId

public long appId
Unique identifier for a destination application.


userData

public Object userData
Requestor defined object to be returned in the resp.


sink

public SinkIF sink
Requestor sink to return resp.

Constructor Detail

DhtReq

public DhtReq(long a,
              Object u,
              SinkIF s)
Constructor: Creates a new DhtPutReq.

Parameters:
a - Unique identifier for a destination application.
u - Requestor defined object to be returned in the resp.
s - Requestor sink to return resp
Method Detail

toString

public abstract String toString()
Specified by java.lang.Object

Overrides:
toString in class Object

BUG

protected void BUG(String msg)
BUG outputs a fatal error msg, then terminates the proces.