| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--ostore.read.ReadResp
        |
        +--ostore.read.SliceReadResp
Events sent from the ReadStage to the
 ReplicaStage responding to SliceReadReq events.
| Field Summary | |
|---|---|
protected  SortedMap | 
blocks
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 | |
|---|---|
SliceReadResp(InputBuffer buffer)
Constructs a SliceReadResp from its
 serialized form. | 
|
SliceReadResp(ReadReq req,
              int error_code)
Constructs a new (failed) SliceReadResp. | 
|
SliceReadResp(ReadReq req,
              Selection read,
              Selection missing,
              Map blocks)
Constructs a new (successful) SliceReadResp.
  | 
|
| Method Summary | |
|---|---|
 Map | 
get_blocks()
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 SortedMap blocks
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 SliceReadResp(ReadReq req,
                     Selection read,
                     Selection missing,
                     Map blocks)
SliceReadResp.
 
 If blocks is not already a SortedMap,
 it is copied into one.
public SliceReadResp(ReadReq req,
                     int error_code)
SliceReadResp.
public SliceReadResp(InputBuffer buffer)
              throws QSException
SliceReadResp from its
 serialized form.
| Method Detail | 
public Map get_blocks()
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 | ||||||||||