|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ostore.dtree.DTreeResp
|
+--ostore.dtree.DTreeServiceResp
Messages send from one dissemination tree node to another in response to
a DTreeServiceReq message.
| Field Summary | |
|---|---|
protected QSInt |
depth
The depth of the sender in the tree, or null. |
protected Double |
distance
The distance of the sender from the root the tree, or null. |
protected SignedQS |
signed_hb
The most recent heartbeat for the tree's data object, signed, or null. |
protected SignedQS |
signed_resp
If this response is initiating new service, this field has the signed CreateObjectResp containing the certificates
required to check signatures on objects sent down the new tree.
|
| Fields inherited from class ostore.dtree.DTreeResp |
|---|
DENIED, digest, error_code, NO_ERROR, NOT_OPEN, req_digest, tree_id, UNKNOWN_TREE, UNREACHABLE |
| Constructor Summary | |
|---|---|
DTreeServiceResp(DTreeServiceReq req,
int error_code)
Creates a new (failed) DTreeServiceResp. |
|
DTreeServiceResp(DTreeServiceReq req,
QSInt depth,
Double distance,
SignedQS signed_resp,
SignedQS signed_hb)
Creates a new (successful) DTreeServiceResp. |
|
DTreeServiceResp(InputBuffer buffer)
Creates a DTreeServiceResp from its
QuickSerializable form. |
|
| Method Summary | |
|---|---|
QSInt |
get_depth()
Returns the depth of the sender in the dissemination tree. |
Double |
get_distance()
Returns the distance of the sender from the root of tree. |
SignedQS |
get_signed_hb()
Returns the most recent heartbeat for the tree's data object, signed. |
SignedQS |
get_signed_resp()
Returns signed CreateObjectResp containing the certificates
required to check signatures on objects sent down the new tree. |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
String |
toString()
Returns a human-readable representation of this DTreeServiceReq. |
| Methods inherited from class ostore.dtree.DTreeResp |
|---|
get_digest, get_error_code, get_req_digest, get_tree_id, hashCode, successful |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected QSInt depth
null.
protected Double distance
null.
protected SignedQS signed_resp
CreateObjectResp containing the certificates
required to check signatures on objects sent down the new tree.
Otherwise ths field is null.
protected SignedQS signed_hb
null. The heartbeat itself may be any of the
Heartbeat-like objects.
| Constructor Detail |
public DTreeServiceResp(DTreeServiceReq req,
QSInt depth,
Double distance,
SignedQS signed_resp,
SignedQS signed_hb)
DTreeServiceResp.
req - the corresponding DTreeServiceReq.signed_resp - The CreateObjectResp
for the tree's data object, or null.signed_hb - The most recent heartbeat for the tree's
data object, signed, or null.depth - the depth of the sender in the dissemination tree.distance - the distance of the sender from the root the tree (ms).
public DTreeServiceResp(DTreeServiceReq req,
int error_code)
DTreeServiceResp.
req - the corresponding DTreeServiceReq.error_code - the reason the request failed.
public DTreeServiceResp(InputBuffer buffer)
throws QSException
DTreeServiceResp from its
QuickSerializable form.
| Method Detail |
public SignedQS get_signed_resp()
CreateObjectResp containing the certificates
required to check signatures on objects sent down the new tree.
public SignedQS get_signed_hb()
public QSInt get_depth()
public Double get_distance()
public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializableserialize in class DTreeRespbuffer - the output buffer to add the object topublic String toString()
DTreeServiceReq.
toString in class DTreeResp
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||