| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ostore.dtree.DTreeResp
A superclass of all responses sent by the DTreeNode.
| Field Summary | |
|---|---|
static int | 
DENIED
An error code that indicates the sender was unable or unwilling to perform the request.  | 
protected  SecureHash | 
digest
The digest of this DTreeResp.
  | 
protected  int | 
error_code
One of the error codes above (or NO_ERROR). | 
static int | 
NO_ERROR
An error code that indicates no error occurred.  | 
static int | 
NOT_OPEN
An error code that indicates the requestor had attempted to close a replica that was not open.  | 
protected  SecureHash | 
req_digest
A digest of the corresponding DTreeReq. | 
protected  SecureHash | 
tree_id
The name of the dissemination tree from the original request.  | 
static int | 
UNKNOWN_TREE
An error code that indicates this node is not a member of the specified dissemination tree.  | 
static int | 
UNREACHABLE
An error code that indicates the dissemination tree was unreachable.  | 
| Constructor Summary | |
|---|---|
protected  | 
DTreeResp(DTreeReq req,
          int error_code)
Constructs a DTreeResp for the specified
 DTreeReq. | 
protected  | 
DTreeResp(InputBuffer buffer)
Constructs a DTreeResp from its
 QuickSerializable form. | 
protected  | 
DTreeResp(SecureHash req_digest,
          SecureHash tree_id,
          int error_code)
Constructs a new DTreeResp. | 
| Method Summary | |
|---|---|
 SecureHash | 
get_digest()
Returns the digest of this DTreeResp.
  | 
 int | 
get_error_code()
Returns the error code.  | 
 SecureHash | 
get_req_digest()
Returns the digest of the corresponding DTreeReq. | 
 SecureHash | 
get_tree_id()
Returns the name of the dissemination tree from the original request.  | 
 int | 
hashCode()
Returns the hash of the digest of this DTreeResp.
  | 
 void | 
serialize(OutputBuffer buffer)
Add the object to the buffer. | 
 boolean | 
successful()
Returns true iff error_code() == NO_ERROR. | 
 String | 
toString()
Returns a human-readable representation of this DTreeResp. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final int NO_ERROR
public static final int UNREACHABLE
public static final int UNKNOWN_TREE
public static final int DENIED
public static final int NOT_OPEN
protected SecureHash req_digest
DTreeReq.
protected SecureHash tree_id
protected int error_code
NO_ERROR).
protected transient SecureHash digest
DTreeResp.
 Do NOT include this field in to_bytes.
| Constructor Detail | 
protected DTreeResp(SecureHash req_digest,
                    SecureHash tree_id,
                    int error_code)
DTreeResp.
protected DTreeResp(DTreeReq req,
                    int error_code)
DTreeResp for the specified
 DTreeReq.
protected DTreeResp(InputBuffer buffer)
             throws QSException
DTreeResp from its
 QuickSerializable form.
| Method Detail | 
public boolean successful()
true iff error_code() == NO_ERROR.
public int get_error_code()
public SecureHash get_req_digest()
DTreeReq.
get_digest()public SecureHash get_tree_id()
public SecureHash get_digest()
DTreeResp.
 WARNING: the first invocation of this method may be expensive, because it requires serializing the entire object.
get_req_digest()public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializablebuffer - the output buffer to add the object topublic int hashCode()
DTreeResp.
 WARNING: the first invocation of this method may be expensive, because it requires serializing the entire object.
hashCode in class Objectpublic String toString()
DTreeResp.
toString in class Object
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||