dd.api
Class DDPublishReq

java.lang.Object
  |
  +--dd.api.DDPublishReq
All Implemented Interfaces:
QueueElementIF

public class DDPublishReq
extends Object
implements QueueElementIF

Event that causes DD to publish an object pointer to the given GUID with the given tag.

Version:
$Id: DDPublishReq.java,v 1.2 2004/05/04 23:21:08 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
DDPublishResp

Field Summary
 SecureHash guid
          The object guid.
 int intermediate_ttl
          Time-to-live (in seconds) for object pointer stored at intermediate nodes.
 int local_ttl
          Time-to-live (in seconds) for object pointer stored locally.
 boolean publish
          Flag indicating whether request is a publish or unpublish.
 int root_ttl
          Time-to-live (in seconds) for object pointer at the root node(s).
 SinkIF sink
          Requestor sink to return resp.
 DDTag tag
          The object tag.
 Object userData
          Requestor defined object to be returned in the resp.
 
Constructor Summary
DDPublishReq(SecureHash g, DDTag t, boolean p, int local_ttl, int intermediate_ttl, int root_ttl, Object u, SinkIF s)
          Constructor: Creates a new DDPublishReq.
 
Method Summary
 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

guid

public SecureHash guid
The object guid.


tag

public DDTag tag
The object tag.


publish

public boolean publish
Flag indicating whether request is a publish or unpublish.


local_ttl

public int local_ttl
Time-to-live (in seconds) for object pointer stored locally.


intermediate_ttl

public int intermediate_ttl
Time-to-live (in seconds) for object pointer stored at intermediate nodes. That is, nodes along the path between the local and root nodes.


root_ttl

public int root_ttl
Time-to-live (in seconds) for object pointer at the root node(s).


userData

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


sink

public SinkIF sink
Requestor sink to return resp.

Constructor Detail

DDPublishReq

public DDPublishReq(SecureHash g,
                    DDTag t,
                    boolean p,
                    int local_ttl,
                    int intermediate_ttl,
                    int root_ttl,
                    Object u,
                    SinkIF s)
Constructor: Creates a new DDPublishReq.

Parameters:
g - guid of object to publish.
t - tag of object to publish.
p - Flag indicating whether request is a publish or unpublish.
local_ttl - Time-to-live (in seconds) for guid/tag pointer pair stored locally.
intermediate_ttl - Time-to-live (in seconds) for guid/tag pointer pair stored at intermediate nodes (i.e. along the path between local and root nodes).
root_ttl - Time-to-live (in seconds) for guid/tag pointer pair stored at the root node(s).
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

Overrides:
toString in class Object