tapestry.ptr.impl.dht
Class DhtPutReq

java.lang.Object
  |
  +--tapestry.ptr.impl.dht.DhtReq
        |
        +--tapestry.ptr.impl.dht.DhtPutReq
All Implemented Interfaces:
QueueElementIF

public class DhtPutReq
extends DhtReq

DhtPutReq (local) event requesting that the DHT maintain the array of objects identified by their objguid. A DhtPutResp is returned indicating the success of each individual store request.

Each object has an associated root flag indicating whether object needs to be maintained by the DHT root set. The root flag is set to false indicating that the object is not maintained by the DHT root set. For example, root=false as a local cache that does not need to be maintained.

Version:
$Id: DhtPutReq.java,v 1.1.1.1 2004/03/26 19:57:11 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 tapestry.ptr.impl.dht.DhtReq
appId, sink, userData
 
Constructor Summary
DhtPutReq(SecureHash[] o, PublishInfo[] p, boolean[] r, long a, Object u, SinkIF s)
          Constructor: Creates a new DhtPutReq.
DhtPutReq(SecureHash o, PublishInfo p, boolean r, long a, Object u, SinkIF s)
          Constructor: Creates a new DhtPutReq.
 
Method Summary
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class tapestry.ptr.impl.dht.DhtReq
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

DhtPutReq

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

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

DhtPutReq

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

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 DhtReq