edu.harvard.deas.hyperenc
Class HyperEncryptionEvent
java.lang.Object
java.util.EventObject
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
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 changedirection
- The direction of communication for the affected HyperStoragetype
- The type of event
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