|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dd.api.DDRouteMsg | +--dd.api.DDRepairObjReq
DDRepairObjReq
is a
msg
sent from a
root
directory
node to a server requesting that an object be repaired. The
DDRepairObjReq
msg is generated when
the low_watermark
(i.e. threshold) for the number of
ptrs
specified in the
DDThresholdTag
is reached; that is,
a DDRepairObjReq
is triggered from the
number of remaining ptrs
.
The root
can send the DDRepairObjReq
to any number of the remaining server nodes (e.g. only one, half,
all servers, etc). Any coordination required to repair the object
will have to be done between the servers.
Finally, the DDRepairObjReq
has to be followed by a
DDRepairObjResp
. The
DDRepairObjResp
is simply an
acknowledgment of the repair request. That is, it is not an
acknowledgment that the object has been repaired yet. The
root
node will know the object is repaired when the
number of ptrs
increase.
The DDRepairObjResp
is provided
as a clean way for the root
node to know an object is being
repaired without having to send the DDRepairObjReq
to all the remaining servers and without having to wait for the
ptrs
to increase.
DDRepairObjResp
,
DDThresholdTag
Field Summary |
---|
Fields inherited from class dd.api.DDRouteMsg |
---|
dd_intermediate_upcall, hopCount, inbound, one_hop, peer, recursive_route, TTL |
Constructor Summary | |
---|---|
DDRepairObjReq(InputBuffer buffer)
Constructs a DDRepairObjReq from its
serialized form. |
|
DDRepairObjReq(SecureHash node,
SecureHash objguid,
DDThresholdTag tag,
QSTreeSet remaining,
QSTreeSet dead,
boolean recursive_route,
boolean dd_intermediate_upcall,
boolean one_hop)
Constucts a DDRepairObjReq from specified parameters. |
Method Summary | |
---|---|
QSTreeSet |
getDead()
dead returns the set of dead servers that
use to contain the object that needs to be repaired. |
SecureHash |
getObjguid()
getObjguid returns the
identifier of object that needs
to be repaired. |
QSTreeSet |
getRemaining()
remaining returns the set of remaining servers that
contain the object that needs to be repaired. |
DDThresholdTag |
getTag()
getTag returns the
Tag
of the object that needs to be repaired. |
void |
serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable |
String |
toString()
Specified by java.lang.Object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DDRepairObjReq(SecureHash node, SecureHash objguid, DDThresholdTag tag, QSTreeSet remaining, QSTreeSet dead, boolean recursive_route, boolean dd_intermediate_upcall, boolean one_hop)
DDRepairObjReq
from specified parameters.
node
- Server that needs to repair object.objguid
- identifier
of
object that needs to be repaired.tag
- Tag
of the object that needs to be repaired.remaining
- set of remaining servers that contain the
object that needs to be repaired.dead
- set of dead servers that use to contain the
object that needs to be repaired.recursive_route
- See DDRouteMsg.recursive_route
for details.dd_intermediate_upcall
- See
DDRouteMsg.dd_intermediate_upcall
for details.one_hop
- See DDRouteMsg.one_hop
for details.public DDRepairObjReq(InputBuffer buffer) throws QSException
DDRepairObjReq
from its
serialized
form.
buffer
- serialized
form of object.Method Detail |
public SecureHash getObjguid()
getObjguid
returns the
identifier
of object that needs
to be repaired.
identifier
of object
that needs to be repaired.public DDThresholdTag getTag()
getTag
returns the
Tag
of the object that needs to be repaired.
Tag
of the object that needs to be repaired.public QSTreeSet getRemaining()
remaining
returns the set of remaining servers that
contain the object that needs to be repaired.
public QSTreeSet getDead()
dead
returns the set of dead servers that
use to contain the object that needs to be repaired.
public void serialize(OutputBuffer buffer)
serialize
in interface QuickSerializable
serialize
in class DDRouteMsg
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |