|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ostore.replica.ReplicaResp
|
+--ostore.replica.ReplicaOpenResp
Events sent from the ReplicaStage to the
ClientStage responding to ReplicaOpenReq events.
| Field Summary | |
|---|---|
protected Heartbeat |
hb
The most recent available Heartbeat for the replica. |
| 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 | |
|---|---|
ReplicaOpenResp(InputBuffer buffer)
Constructs a ReplicaOpenResp from its
serialized form. |
|
ReplicaOpenResp(ReplicaOpenReq req,
Heartbeat hb)
Constructs a new (successful) ReplicaOpenResp. |
|
ReplicaOpenResp(ReplicaOpenReq req,
int error_code)
Constructs a new (failed) ReplicaOpenResp. |
|
| Method Summary | |
|---|---|
Heartbeat |
get_hb()
Returns the most recent available Heartbeat for the
replica (null if request was unsuccessful). |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
| Methods inherited from class ostore.replica.ReplicaResp |
|---|
get_digest, get_error_code, get_req_digest, get_target, hashCode, is_local, successful, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Heartbeat hb
Heartbeat for the replica.
| Constructor Detail |
public ReplicaOpenResp(ReplicaOpenReq req,
Heartbeat hb)
ReplicaOpenResp.
public ReplicaOpenResp(ReplicaOpenReq req,
int error_code)
ReplicaOpenResp.
public ReplicaOpenResp(InputBuffer buffer)
throws QSException
ReplicaOpenResp from its
serialized form.
| Method Detail |
public Heartbeat get_hb()
Heartbeat for the
replica (null if request was unsuccessful).
public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializableserialize in class ReplicaRespbuffer - the output buffer to add the object to
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||