|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ostore.read.ReadResp
|
+--ostore.read.HandleStoreReadResp
Events sent from the ReadStage to the
ReplicaStage responding to SliceReadReq events.
| Field Summary | |
|---|---|
protected HandleStore |
_handleStore
A VID->VerifiableBlock map containing the blocks that
make up the slice read, or null.
|
| Fields inherited from class ostore.read.ReadResp |
|---|
digest, error_code, missing, NO_ERROR, read, READ_ERROR, req_digest |
| Constructor Summary | |
|---|---|
HandleStoreReadResp(InputBuffer buffer)
Constructs a HandleStoreReadResp from its
serialized form. |
|
HandleStoreReadResp(ReadReq req,
int error_code)
Constructs a new (failed) HandleStoreReadResp. |
|
HandleStoreReadResp(ReadReq req,
Selection read,
Selection missing,
HandleStore handleStore)
Constructs a new (successful) HandleStoreReadResp.
|
|
| Method Summary | |
|---|---|
HandleStore |
getHandleStore()
Returns the VID->block map containing the blocks that make up the
slice read. |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
| Methods inherited from class ostore.read.ReadResp |
|---|
get_digest, get_error_code, get_missing, get_read, get_req_digest, get_req_seq_num, hashCode, successful, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected HandleStore _handleStore
VID->VerifiableBlock map containing the blocks that
make up the slice read, or null.
blocks != null iff this.successful().
The hashCode of responses depend on their digest.
Therefore we keep this map sorted, to ensure a deterministic
serialization.
| Constructor Detail |
public HandleStoreReadResp(ReadReq req,
Selection read,
Selection missing,
HandleStore handleStore)
HandleStoreReadResp.
If blocks is not already a SortedMap,
it is copied into one.
public HandleStoreReadResp(ReadReq req,
int error_code)
HandleStoreReadResp.
public HandleStoreReadResp(InputBuffer buffer)
throws QSException
HandleStoreReadResp from its
serialized form.
| Method Detail |
public HandleStore getHandleStore()
VID->block map containing the blocks that make up the
slice read.
public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializableserialize in class ReadRespbuffer - the output buffer to add the object to
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||