demo.repair
Class RepairDirectoryTest2.DisseminateResp

java.lang.Object
  |
  +--ostore.network.NetworkMessage
        |
        +--demo.repair.RepairDirectoryTest2.DisseminateResp
All Implemented Interfaces:
Cloneable, QueueElementIF, QuickSerializable
Enclosing class:
RepairDirectoryTest2

public static class RepairDirectoryTest2.DisseminateResp
extends NetworkMessage

DisseminateResp is either an ack or nack response sent to the leader acknowedging the receipt of the disseminatable and the willingness to be a storage server. The leader node responsible for coordinating the repair of an object replicated on a set of nodes.


Field Summary
 SecureHash dest
           
 SecureHash src
           
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms
 
Constructor Summary
RepairDirectoryTest2.DisseminateResp(InputBuffer buffer)
          Constructs a DisseminateResp from its serialized form.
RepairDirectoryTest2.DisseminateResp(NodeId peer, SecureHash src, SecureHash dest, SecureHash objguid, DDThresholdTag ttag, boolean ack)
          Construct according to the given fields.
 
Method Summary
 boolean getAck()
          getAck returns the ack (i.e. the willingness to store the disseminatable).
 SecureHash getObjguid()
          getObjguid returns the guid of the originally requested obj specified in the DisseminateResp.
 DDThresholdTag getTag()
          getTag returns the DDThresholdTag associated with the objguid.
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class ostore.network.NetworkMessage
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

src

public SecureHash src

dest

public SecureHash dest
Constructor Detail

RepairDirectoryTest2.DisseminateResp

public RepairDirectoryTest2.DisseminateResp(NodeId peer,
                                            SecureHash src,
                                            SecureHash dest,
                                            SecureHash objguid,
                                            DDThresholdTag ttag,
                                            boolean ack)
Construct according to the given fields.


RepairDirectoryTest2.DisseminateResp

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

Parameters:
buffer - serialized form of object.
Method Detail

getAck

public final boolean getAck()
getAck returns the ack (i.e. the willingness to store the disseminatable).

Returns:
the ack.

getObjguid

public final SecureHash getObjguid()
getObjguid returns the guid of the originally requested obj specified in the DisseminateResp.

Returns:
the guid specified in the DisseminateResp.

getTag

public final DDThresholdTag getTag()
getTag returns the DDThresholdTag associated with the objguid.

Returns:
the DDThresholdTag associated to the objguid.

serialize

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

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

toString

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

Overrides:
toString in class NetworkMessage