Package onep :: Package core :: Package event :: Module AsyncMsg :: Class AsyncMsg
[frames] | no frames]

Class AsyncMsg


This abstract class is meant to be implemented by a any class acting as a event object.

Instance Methods
 
__init__(self, element, msgType)
Constructor for AsyncMsg class.
 
do_event(self, source)
This method must be implemented by substantial class to specify what action to do when a event is processed in the event queue.

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

Class Variables
  OnepAsyncMsgType = AsyncMsg.OnepAsyncMsgType
Instance Variables
  src_ne
The Network Element associated with the event
Properties

Inherited from object: __class__

Method Details

__init__(self, element, msgType)
(Constructor)

 

Constructor for AsyncMsg class.

Keyword argument:
eventHandle
    Event ID is a unique ID to identify which event listener
    should receive the event .
type
    Event type, for example OnepConstants.EVENT_TYPE_SYSLOG
    represent a syslog event type.

Overrides: object.__init__

do_event(self, source)

 

This method must be implemented by substantial class to specify what
action to do when a event is processed in the event queue. Typically an
action would be invoking client's event listener.

Keyword argument:
source
    The source of the event. For example, the source of a syslog
    event would be a NetworkElement object.