dd.ptr.api
Class PtrReq

java.lang.Object
  |
  +--dd.ptr.api.PtrReq
All Implemented Interfaces:
QueueElementIF
Direct Known Subclasses:
AddPtrReq, GetPtrReq, PtrIteratorNextReq, PtrIteratorStartReq, RemovePtrReq

public abstract class PtrReq
extends Object
implements QueueElementIF

PtrReq is an abstract class for all DHT request.

Version:
$Id: PtrReq.java,v 1.1 2004/04/09 22:01:42 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
PtrReq(long a, Object u, SinkIF s)
          Constructor: Creates a new PtrPutReq.
 
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

PtrReq

public PtrReq(long a,
              Object u,
              SinkIF s)
Constructor: Creates a new PtrPutReq.

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.