ostore.archive.events
Class BucketsToDisseminateEvent

java.lang.Object
  |
  +--ostore.archive.events.BucketsToDisseminateEvent
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class BucketsToDisseminateEvent
extends Object
implements QueueElementIF, QuickSerializable

BucketsToDisseminateEvent is an event class that contains all the GUID's uniquely modified blocks that the GenerateChkptStage created.

USAGE

. When the checkpointing process is done, all uniquely modified blocks have been Erasure encoded into n Fragments and a BucketsToDisseminateEvent containing the resulting GUID's of all the uniquely modified blocks has been dispatched.

Version:
$Id: BucketsToDisseminateEvent.java,v 1.15 2003/02/07 20:38:14 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
DisseminatorStage, GenerateChkptStage

Field Summary
 SecureHash aguid
          aguid is the active guid.
 Map bucketGuidSet
          bucketGuidSet is the set of all dissemination bucket guids of modified blocks for vguid.
 Map bucketMap
          bucketMap is the set of all DisseminatableBuckets associated with the guids of modified blocks for vguid.
 SecureHash vguid
          vguid is the version guid.
 
Constructor Summary
BucketsToDisseminateEvent()
          Constructor: Initializes instance variables to null.
BucketsToDisseminateEvent(InputBuffer buffer)
          Constructs a BucketsToDisseminateEvent from its serialized form.
BucketsToDisseminateEvent(SecureHash activeGuid, SecureHash versionGuid, Map guidSet, Map dbMap)
          Constructor.
 
Method Summary
 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
 

Field Detail

aguid

public SecureHash aguid
aguid is the active guid.


vguid

public SecureHash vguid
vguid is the version guid.


bucketGuidSet

public Map bucketGuidSet
bucketGuidSet is the set of all dissemination bucket guids of modified blocks for vguid.


bucketMap

public Map bucketMap
bucketMap is the set of all DisseminatableBuckets associated with the guids of modified blocks for vguid.

Constructor Detail

BucketsToDisseminateEvent

public BucketsToDisseminateEvent()
Constructor: Initializes instance variables to null.


BucketsToDisseminateEvent

public BucketsToDisseminateEvent(SecureHash activeGuid,
                                 SecureHash versionGuid,
                                 Map guidSet,
                                 Map dbMap)
Constructor. Initializes the data in this BucketsToDisseminateEvent.

Parameters:
activeGuid - = active guid of object.
versionGuid - = active guid of object.
guidSet - = set of dissemination bucket guids.

BucketsToDisseminateEvent

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

Parameters:
buffer - serialized form of object.
Method Detail

serialize

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

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to

toString

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

Overrides:
toString in class Object