|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.replica.ReplicaReq
A superclass of all requests sent to the ReplicaStage
by
the ClientStage
, or possibly a remote
ReplicaStage
.
Field Summary | |
---|---|
protected SecureHash |
digest
The digest of this ReplicaReq .
|
protected boolean |
local
true iff this ReplicaReq was constructed
locally (not from its QuickSerializable form). |
protected SecureHash |
target
The AGUID of the Replica on which to operate. |
Constructor Summary | |
---|---|
protected |
ReplicaReq(InputBuffer buffer)
Constructs a ReplicaReq from its
serialize d form. |
protected |
ReplicaReq(SecureHash target)
Constructs a new ReplicaReq . |
Method Summary | |
---|---|
SecureHash |
get_digest()
Returns the digest of this ReplicaReq . |
long |
get_seq_num()
Returns the sequence number of the request. |
SecureHash |
get_target()
Returns the AGUID of the Replica on which to operate. |
int |
hashCode()
Returns the hash of the digest of this ReplicaReq . |
boolean |
is_local()
Returns true if this ReplicaReq was
sent from a local stage, false if it came off the
network. |
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
String |
toString()
Returns a human-readable representation of this ReplicaReq . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected SecureHash target
Replica
on which to operate.
protected final boolean local
true
iff this ReplicaReq
was constructed
locally (not from its QuickSerializable
form).
protected transient SecureHash digest
ReplicaReq
.
Do NOT include this field in to_bytes
.
Constructor Detail |
protected ReplicaReq(SecureHash target)
ReplicaReq
.
protected ReplicaReq(InputBuffer buffer) throws QSException
ReplicaReq
from its
serialize
d form.
Method Detail |
public long get_seq_num()
public SecureHash get_target()
Replica
on which to operate.
public boolean is_local()
true
if this ReplicaReq
was
sent from a local stage, false
if it came off the
network.
public SecureHash get_digest()
ReplicaReq
.
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object topublic int hashCode()
ReplicaReq
.
hashCode
in class Object
public String toString()
ReplicaReq
.
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |