dd.ptr.api
Class GetPtrResp

java.lang.Object
  |
  +--dd.ptr.api.PtrResp
        |
        +--dd.ptr.api.GetPtrResp
All Implemented Interfaces:
QueueElementIF

public class GetPtrResp
extends PtrResp

Returns the publish infos requested from the pointer manager stage by a preceding GetPtrReq.

Version:
$Id: GetPtrResp.java,v 1.3 2004/05/03 20:39:14 hweather Exp $
Author:
Jeremy Stribling

Field Summary
 Map hinfos
          Map associating hostguid to HostInfo.
 SecureHash[] objguids
          Array of objguids retrieved from DHT.
 LinkedList[] pinfos
          Array of PublishInfo retrieved from DHT.
 boolean[] root
          Array indicating to retrieved from root (or nonroot) set
 
Fields inherited from class dd.ptr.api.PtrResp
appId, userData
 
Constructor Summary
GetPtrResp(SecureHash[] o, LinkedList[] p, boolean[] r, Map h, long a, Object u)
          Constructor: Creates a new GetPtrResp.
GetPtrResp(SecureHash o, LinkedList p, boolean r, Map h, long a, Object u)
          Constructor: Creates a new GetPtrResp.
 
Method Summary
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class dd.ptr.api.PtrResp
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 retrieved from DHT.


pinfos

public LinkedList[] pinfos
Array of PublishInfo retrieved from DHT.


root

public boolean[] root
Array indicating to retrieved from root (or nonroot) set


hinfos

public Map hinfos
Map associating hostguid to HostInfo.

Constructor Detail

GetPtrResp

public GetPtrResp(SecureHash[] o,
                  LinkedList[] p,
                  boolean[] r,
                  Map h,
                  long a,
                  Object u)
Constructor: Creates a new GetPtrResp.

Parameters:
o - Array of objguids retrieved from DHT.
p - Array of PublishInfo retrieved from DHT.
r - Array indicating retreived from root (or nonroot) set.
h - Map associating hostguid to HostInfo
a - Unique identifier for a destination application.
u - Requestor defined object to be returned in the resp.

GetPtrResp

public GetPtrResp(SecureHash o,
                  LinkedList p,
                  boolean r,
                  Map h,
                  long a,
                  Object u)
Constructor: Creates a new GetPtrResp.

Parameters:
o - objguid retrieved from DHT.
p - PublishInfo retrieved from DHT.
r - Flag indicating retreived from root (or nonroot) set.
h - Map associating hostguid to HostInfo
a - Unique identifier for a destination application.
u - Requestor defined object to be returned in the resp.
Method Detail

toString

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

Specified by:
toString in class PtrResp