edu.harvard.deas.hyperenc
Class HyperEncryptionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by edu.harvard.deas.hyperenc.HyperEncryptionEvent
All Implemented Interfaces:
Serializable

public class HyperEncryptionEvent
extends EventObject

A HyperEncryptionEvent signals a state change in a HyperCollector. The most common HyperEncryptionEvent indicates that the number of blocks or pages in a HyperStorage has changed.

See Also:
HyperEncryptionEventType, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
HyperEncryptionEvent(HyperCollector source, Contact contact, Direction direction, HyperEncryptionEventType type)
          Create a new HyperEncryptionEvent.
 
Method Summary
 Contact getContact()
          Returns the contact whose HyperStorage caused this event.
 Direction getDirection()
          Returns the direction of the HyperStorage that caused this event.
 HyperEncryptionEventType getType()
          Returns the type of this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HyperEncryptionEvent

public HyperEncryptionEvent(HyperCollector source,
                            Contact contact,
                            Direction direction,
                            HyperEncryptionEventType type)
Create a new HyperEncryptionEvent.

Parameters:
source - The HyperCollector whose state change triggered this Event.
contact - The contact whose HyperStorage was affected by the state change
direction - The direction of communication for the affected HyperStorage
type - The type of event
Method Detail

getContact

public Contact getContact()
Returns the contact whose HyperStorage caused this event.

Returns:
the contact whose HyperStorage caused this event

getDirection

public Direction getDirection()
Returns the direction of the HyperStorage that caused this event.

Returns:
the direction of the HyperStorage that caused this event

getType

public HyperEncryptionEventType getType()
Returns the type of this event.

Returns:
the type of this event