|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ostore.replica.ReplicaResp
|
+--ostore.replica.ReplicaCreateResp
Events sent from the ReplicaStage to the
ClientStage responding to ReplicaCreateReq
events.
| Field Summary | |
|---|---|
protected CreateObjectResp |
create_resp
The result of the create, or null if the response is
only tentative. |
protected SecureHash |
initial_vhash
The VHASH of the intial version of the object. |
| Fields inherited from class ostore.replica.ReplicaResp |
|---|
digest, error_code, local, NO_ERROR, NOT_OPEN, OBJECT_NOT_FOUND, READ_ERROR, req_digest, target, VERSION_PREDICATE_NOT_SATISFIED |
| Constructor Summary | |
|---|---|
ReplicaCreateResp(InputBuffer buffer)
Constructs a ReplicaCreateResp from its
serialized form. |
|
ReplicaCreateResp(ReplicaCreateReq req,
CreateObjectResp create_resp)
Constructs a new (successful) ReplicaCreateResp. |
|
ReplicaCreateResp(ReplicaCreateReq req,
SecureHash initial_vhash)
Constructs a new (successful) ReplicaCreateResp for a
tentatively create object. |
|
| Method Summary | |
|---|---|
CreateObjectResp |
get_create_resp()
Returns the result of the create. |
SecureHash |
get_initial_vhash()
Returns the VHASH of the intial version of the object. |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
String |
toString()
Returns a human-readable representation of this ReplicaCreateResp. |
| Methods inherited from class ostore.replica.ReplicaResp |
|---|
get_digest, get_error_code, get_req_digest, get_target, hashCode, is_local, successful |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected CreateObjectResp create_resp
null if the response is
only tentative.
protected SecureHash initial_vhash
create_resp. For tentative responses, this field is
set and stored explicitly, because create_resp is
null.
| Constructor Detail |
public ReplicaCreateResp(ReplicaCreateReq req,
CreateObjectResp create_resp)
ReplicaCreateResp.
public ReplicaCreateResp(ReplicaCreateReq req,
SecureHash initial_vhash)
ReplicaCreateResp for a
tentatively create object.
public ReplicaCreateResp(InputBuffer buffer)
throws QSException
ReplicaCreateResp from its
serialized form.
| Method Detail |
public CreateObjectResp get_create_resp()
public SecureHash get_initial_vhash()
public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializableserialize in class ReplicaRespbuffer - the output buffer to add the object topublic String toString()
ReplicaCreateResp.
toString in class ReplicaResp
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||