dd.api
Class DDRepairObjResp

java.lang.Object
  |
  +--dd.api.DDRouteMsg
        |
        +--dd.api.DDRepairObjResp
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class DDRepairObjResp
extends DDRouteMsg

DDRepairObjResp is a response sent from a server to a root directory node acknowledging that the server received the DDRepairObjReq and will repair the object.

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.

Version:
$Id: DDRepairObjResp.java,v 1.3 2004/05/04 23:21:08 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
DDRepairObjReq, DDThresholdTag

Field Summary
 
Fields inherited from class dd.api.DDRouteMsg
dd_intermediate_upcall, hopCount, inbound, one_hop, peer, recursive_route, TTL
 
Constructor Summary
DDRepairObjResp(InputBuffer buffer)
          Constructs a DDRepairObjResp from its serialized form.
DDRepairObjResp(SecureHash node, SecureHash objguid, DDThresholdTag tag, boolean recursive_route, boolean dd_intermediate_upcall, boolean one_hop)
          Constucts a DDRepairObjResp from specified parameters.
 
Method Summary
 SecureHash getObjguid()
          getObjguid returns the identifier of 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

DDRepairObjResp

public DDRepairObjResp(SecureHash node,
                       SecureHash objguid,
                       DDThresholdTag tag,
                       boolean recursive_route,
                       boolean dd_intermediate_upcall,
                       boolean one_hop)
Constucts a DDRepairObjResp from specified parameters.

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.
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.

DDRepairObjResp

public DDRepairObjResp(InputBuffer buffer)
                throws QSException
Constructs a DDRepairObjResp from its serialized form.

Parameters:
buffer - serialized form of object.
Method Detail

getObjguid

public SecureHash getObjguid()
getObjguid returns the identifier of object that needs to be repaired.

Returns:
the identifier of object that needs to be repaired.

getTag

public DDThresholdTag getTag()
getTag returns the Tag of the object that needs to be repaired.

Returns:
the Tag of the object that needs to be repaired.

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class DDRouteMsg

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object