demo.repair
Class RepairDirectoryTest.CreateReplicaReq

java.lang.Object
  |
  +--demo.repair.RepairDirectoryTest.CreateReplicaReq
All Implemented Interfaces:
QueueElementIF
Enclosing class:
RepairDirectoryTest

public static class RepairDirectoryTest.CreateReplicaReq
extends Object
implements QueueElementIF

CreateReplicaReq is a request to disseminate a replica on a set of storage servers.


Field Summary
 SinkIF sink
           
 Object userData
           
 
Constructor Summary
RepairDirectoryTest.CreateReplicaReq(SecureHash objguid, DDThresholdTag ttag, QuickSerializable object, int numReplicas, Object userData, SinkIF sink)
          Construct according to the given fields.
 
Method Summary
 int getNumReplicas()
          getNumReplicas returns the number of replicas to be replicated on storage servers.
 QuickSerializable getObj()
          getObj returns the object to be replicated on storage server.
 SecureHash getObjguid()
          getObjguid returns the guid of the originally requested obj specified in the CreateReplicaReq.
 DDThresholdTag getTag()
          getTag returns the DDThresholdTag associated with the objguid.
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

userData

public Object userData

sink

public SinkIF sink
Constructor Detail

RepairDirectoryTest.CreateReplicaReq

public RepairDirectoryTest.CreateReplicaReq(SecureHash objguid,
                                            DDThresholdTag ttag,
                                            QuickSerializable object,
                                            int numReplicas,
                                            Object userData,
                                            SinkIF sink)
Construct according to the given fields.

Method Detail

getObj

public final QuickSerializable getObj()
getObj returns the object to be replicated on storage server.

Returns:
the object to be replicated on storage server.

getNumReplicas

public final int getNumReplicas()
getNumReplicas returns the number of replicas to be replicated on storage servers.

Returns:
the number of replicas to be replicated on storage servers.

getObjguid

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

Returns:
the guid specified in the CreateReplicaReq.

getTag

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

Returns:
the DDThresholdTag associated to the objguid.

toString

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

Overrides:
toString in class Object