|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.read.ReadResp | +--ostore.read.BytesReadResp
Events sent from the ReadStage
to the
ReplicaStage
responding to BytesReadReq
events.
Field Summary | |
---|---|
protected byte[][] |
data
The byte s read, or null .
|
Fields inherited from class ostore.read.ReadResp |
---|
digest, error_code, missing, NO_ERROR, read, READ_ERROR, req_digest |
Constructor Summary | |
---|---|
BytesReadResp(InputBuffer buffer)
Constructs a BytesReadResp from its
serialize d form. |
|
BytesReadResp(ReadReq req,
int error_code)
Constructs a new (failed) BytesReadResp . |
|
BytesReadResp(ReadReq req,
Selection read,
Selection missing,
byte[][] data)
Constructs a new (successful) BytesReadResp . |
Method Summary | |
---|---|
byte[][] |
get_data()
Returns the byte s 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 byte[][] data
byte
s read, or null
.
.
If not null
, each sub array contains the data for
one sub-Selection
of read
, in order.
data != null
iff this.successful()
.
Constructor Detail |
public BytesReadResp(ReadReq req, Selection read, Selection missing, byte[][] data)
BytesReadResp
.
public BytesReadResp(ReadReq req, int error_code)
BytesReadResp
.
public BytesReadResp(InputBuffer buffer) throws QSException
BytesReadResp
from its
serialize
d form.
Method Detail |
public byte[][] get_data()
byte
s read.
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
serialize
in class ReadResp
buffer
- the output buffer to add the object to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |