|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ostore.replica.ReplicaResp
|
+--ostore.read.ReplicaReadResp
A superclass for events sent from the ReplicaStage to the
ClientStage responding to ReplicaReadReq events.
| Field Summary | |
|---|---|
protected Selection |
missing
The portion of the Replica that was not
successfully read. |
protected Selection |
read
The portion of the Replica that was successfully
read, or null. |
protected VID |
version
The id for the version of the Replica that was read,
or null.
|
| 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 | |
|---|---|
protected |
ReplicaReadResp(InputBuffer buffer)
Constructs a ReplicaReadResp from its
serialized form. |
protected |
ReplicaReadResp(ReplicaReadReq req,
int error_code)
Constructs a new (failed) ReplicaReadResp. |
protected |
ReplicaReadResp(ReplicaReadReq req,
VID version,
Selection read,
Selection missing)
Constructs a new (successful) ReplicaReadResp.
|
| Method Summary | |
|---|---|
Selection |
get_missing()
Returns the Selection which describes the portion of
the Replica that was not successfuly read. |
Selection |
get_read()
Returns the Selection which describes the portion of
the Replica that was read. |
VID |
get_version()
Returns id for the version of the Replica that was read. |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
String |
toString()
Returns a human-readable representation of this ReplicaReadResp. |
| 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 VID version
Replica that was read,
or null.
version != null iff this.successful().
protected Selection read
Replica that was successfully
read, or null.
protected Selection missing
Replica that was not
successfully read. The union of read and
missing should equal the original requested
Selection.
| Constructor Detail |
protected ReplicaReadResp(ReplicaReadReq req,
VID version,
Selection read,
Selection missing)
ReplicaReadResp.
This constructor applies for responses which denote partial success.
protected ReplicaReadResp(ReplicaReadReq req,
int error_code)
ReplicaReadResp.
protected ReplicaReadResp(InputBuffer buffer)
throws QSException
ReplicaReadResp from its
serialized form.
| Method Detail |
public VID get_version()
Replica that was read.
public Selection get_read()
Selection which describes the portion of
the Replica that was read.
public Selection get_missing()
Selection which describes the portion of
the Replica that was not successfuly read.
public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializableserialize in class ReplicaRespbuffer - the output buffer to add the object topublic String toString()
ReplicaReadResp.
toString in class ReplicaResp
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||