hypercast.events
Class NOTIFICATION_EVENT

java.lang.Object
  |
  +--hypercast.events.NOTIFICATION_EVENT
Direct Known Subclasses:
E2EACK_RECEIVED, E2EPARTIALACK_RECEIVED, INTERNAL_EVENT, MSG_WITH_E2EACK_SENT, NAMING_EVENT, NEWSTREAM_ARRIVED_EVENT, NODE_LOGICALADDRESSCHANGED, hypercast.events.NODE_STATEEVENT, hypercast.events.NODE_TOPOLOGYEVENT

public abstract class NOTIFICATION_EVENT
extends java.lang.Object

This class defines a NOTIFICATION_EVENT. It is the root of event hierarchy and is extended by all other notification events. When an interesting event happens, a NOTIFICATION_EVENT object is created and put into the event queue of a NotificationHandler object. The NotificationHandler object reads events from the queue and processes them.


Constructor Summary
NOTIFICATION_EVENT(long timestamp, java.lang.Object info)
          Constructs an event with the given timestamp and meta data.
 
Method Summary
 java.lang.Object getInfo()
          Gets the information stored in this event.
 long getTimestamp()
          Gets the timestamp of the event.
 void setInfo(java.lang.Object info)
          Sets information stored about this event.
 void setTimestamp(long timestamp)
          Sets timestamp of the event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOTIFICATION_EVENT

public NOTIFICATION_EVENT(long timestamp,
                          java.lang.Object info)
Constructs an event with the given timestamp and meta data.

Method Detail

getTimestamp

public long getTimestamp()
Gets the timestamp of the event.


setTimestamp

public void setTimestamp(long timestamp)
Sets timestamp of the event.


getInfo

public java.lang.Object getInfo()
Gets the information stored in this event.


setInfo

public void setInfo(java.lang.Object info)
Sets information stored about this event.