Package onep :: Package interfaces :: Module interfacestatspoll :: Class InterfaceStatisticsPollEvent
[frames] | no frames]

Class InterfaceStatisticsPollEvent


An event indicating that an interface statistics poll event occurred in a network element.

Instance Methods
 
__init__(self, element, event_handle, interf, stat)
Constructor of InterfaceStatisticsPollEvent class.
 
do_event(self, network_element)
This method specifies what action to do when an 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

Inherited from core.event.AsyncMsg.AsyncMsg: OnepAsyncMsgType

Instance Variables
NetworkInterface interface
The network interface
NetworkElement network_element
The Network Element at which the event is generated.
InterfaceStatistics stat
The collected statistics

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, event_handle, interf, stat)
(Constructor)

 

Constructor of InterfaceStatisticsPollEvent class.

Parameters:
  • eventHandle - A unique ID to identify which event listener should receive the event .
  • event_type - The type of the event.
Overrides: object.__init__

do_event(self, network_element)

 

This method specifies what action to do when an event is processed in the event queue. For InterfaceStatisticsPollEvent, the action is invoking client's event listener.

Parameters:
  • network_element (NetworkElement) - The Network Element at which the event is generated.
Overrides: core.event.AsyncMsg.AsyncMsg.do_event