Package onep :: Package element :: Module OIREvent :: Class OIREvent
[frames] | no frames]

Class OIREvent


Represents an event which indicates that an online insertion and removal event

Instance Methods
 
__init__(self, element, eventHandle, slot, oirType)
Constructor for the OIREvent class.
 
do_event(self, ne)
Specifies what action to do when a event is processed.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  log = logging.getLogger('onep.'+ __name__)

Inherited from core.event.AsyncMsg.AsyncMsg: OnepAsyncMsgType

Instance Variables

Inherited from core.event.EventObject.EventObject: event_handle, event_type

Inherited from core.event.AsyncMsg.AsyncMsg: src_ne

Properties

Inherited from object: __class__

Method Details

__init__(self, element, eventHandle, slot, oirType)
(Constructor)

 

Constructor for the OIREvent class.

Parameters:
  • eventHandle - Event handle is a unique ID to identify which event listener should receive the event.
  • slot - Slot in which the OIR event came in on.
  • oirType - Type of OIR event.
Overrides: object.__init__

do_event(self, ne)

 

Specifies what action to do when a event is processed.

For OIREvent, the action is invoking client's event listener.

Parameters:
  • ne - The source of the event. For OIREvent, the source in an instance of NetworkElement.
Overrides: core.event.AsyncMsg.AsyncMsg.do_event