|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ostore.replica.ReplicaReq
|
+--ostore.read.ReplicaReadReq
Events sent from the ClientStage to the
ReplicaStage requesting the latter to
read a portion of a Replica.
| Field Summary | |
|---|---|
static byte |
FAIL
A value for fault_mode instructing the
ReplicaStage to give up completely. |
protected byte |
fault_mode
Specifies what the ReplicaStage should do if any required
blocks from the DataObject are missing from the
memory cache. |
static byte |
FETCH_ALL
A value for fault_mode instructing the
ReplicaStage to fetch missing blocks through the block
manager (memory cache). |
static byte |
INTERIM
A value for fault_mode instructing the
ReplicaStage to return as much data as possible
immediately, as with PARTIAL, but continue to read the
remainder of the Selection automatically, as with
FETCH_ALL. |
static byte |
PARTIAL
A value for fault_mode instructing the
ReplicaStage to read as much as possible and include in
its response a Selection describing the portion of the
DataObject which it could not find locally. |
protected Selection |
sel
The portion of the DataObject to read,
or null if none. |
protected VersionPredicate |
version_pred
A predicate specifying which version(s) of the Replica (a DataObject) to read. |
| Fields inherited from class ostore.replica.ReplicaReq |
|---|
digest, local, target |
| Constructor Summary | |
|---|---|
protected |
ReplicaReadReq(InputBuffer buffer)
Constructs a ReplicaReadReq from its
serialized form. |
protected |
ReplicaReadReq(SecureHash target,
VersionPredicate version_pred,
Selection sel,
byte fault_mode)
Constructs a new ReplicaReadReq. |
| Method Summary | |
|---|---|
byte |
get_fault_mode()
Returns the code for the fault mode. |
VersionPredicate |
get_predicate()
Returns the predicate specifying which version(s) of the Replica (a DataObject) to read. |
Selection |
get_selection()
Returns the Selection describing the read. |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
String |
toString()
Returns a human-readable representation of this ReplicaReaqReq. |
| Methods inherited from class ostore.replica.ReplicaReq |
|---|
get_digest, get_seq_num, get_target, hashCode, is_local |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final byte FAIL
fault_mode instructing the
ReplicaStage to give up completely.
public static final byte FETCH_ALL
fault_mode instructing the
ReplicaStage to fetch missing blocks through the block
manager (memory cache).
public static final byte PARTIAL
fault_mode instructing the
ReplicaStage to read as much as possible and include in
its response a Selection describing the portion of the
DataObject which it could not find locally.
public static final byte INTERIM
fault_mode instructing the
ReplicaStage to return as much data as possible
immediately, as with PARTIAL, but continue to read the
remainder of the Selection automatically, as with
FETCH_ALL. The remainder will be returned
in a second ReplicaReadResp.
protected VersionPredicate version_pred
Replica (a DataObject) to read.
protected Selection sel
DataObject to read,
or null if none. Should only be null for
ReplicaMetadataReadReqs.
protected byte fault_mode
ReplicaStage should do if any required
blocks from the DataObject are missing from the
memory cache.
| Constructor Detail |
protected ReplicaReadReq(SecureHash target,
VersionPredicate version_pred,
Selection sel,
byte fault_mode)
ReplicaReadReq.
protected ReplicaReadReq(InputBuffer buffer)
throws QSException
ReplicaReadReq from its
serialized form.
| Method Detail |
public VersionPredicate get_predicate()
Replica (a DataObject) to read.
public Selection get_selection()
Selection describing the read.
public byte get_fault_mode()
public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializableserialize in class ReplicaReqbuffer - the output buffer to add the object topublic String toString()
ReplicaReaqReq.
toString in class ReplicaReq
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||