dd.ptr.api
Class AddPtrReq

java.lang.Object
  |
  +--dd.ptr.api.PtrReq
        |
        +--dd.ptr.api.AddPtrReq
All Implemented Interfaces:
QueueElementIF

public class AddPtrReq
extends PtrReq

Tell the pointer manager stage that there's a new object pointer it should be aware of. NOTE: will override existing PublishInfo for the same guid, src, tag tuple.

Version:
$Id: AddPtrReq.java,v 1.2 2004/04/28 01:00:36 hweather Exp $
Author:
Hakim Weatherspoon

Field Summary
 SecureHash[] objguids
          Array of objguids to store in DHT.
 PublishInfo[] pinfos
          Array of PublishInfo to store in DHT.
 boolean[] root
          Array indicating to store in root (or nonroot) set
 
Fields inherited from class dd.ptr.api.PtrReq
appId, sink, userData
 
Constructor Summary
AddPtrReq(SecureHash[] o, PublishInfo[] p, boolean[] r, long a, Object u, SinkIF s)
          Constructor: Creates a new AddPtrReq.
AddPtrReq(SecureHash o, PublishInfo p, boolean r, long a, Object u, SinkIF s)
          Constructor: Creates a new AddPtrReq.
 
Method Summary
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class dd.ptr.api.PtrReq
BUG
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

objguids

public SecureHash[] objguids
Array of objguids to store in DHT.


pinfos

public PublishInfo[] pinfos
Array of PublishInfo to store in DHT.


root

public boolean[] root
Array indicating to store in root (or nonroot) set

Constructor Detail

AddPtrReq

public AddPtrReq(SecureHash[] o,
                 PublishInfo[] p,
                 boolean[] r,
                 long a,
                 Object u,
                 SinkIF s)
Constructor: Creates a new AddPtrReq.

Parameters:
o - Array of objguids to store in DHT
p - Array of PublishInfo to store in DHT
r - Array indicating to store in root (or nonroot) set
a - Unique identifier for a destination application.
u - Requestor defined object to be returned in the resp.
s - Requestor sink to return resp

AddPtrReq

public AddPtrReq(SecureHash o,
                 PublishInfo p,
                 boolean r,
                 long a,
                 Object u,
                 SinkIF s)
Constructor: Creates a new AddPtrReq.

Parameters:
o - objguid to store in DHT
p - PublishInfo to store in DHT
r - Flag indicating to store in root (or nonroot) set
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 String toString()
Specified by java.lang.Object

Specified by:
toString in class PtrReq