AccessEngine :: AEMonitor :: MonitorCollection :: MonitorCollection :: Class MonitorCollection
[hide private]
[frames] | no frames]

Class MonitorCollection

source code

object --+
         |
        MonitorCollection

Collection of known monitors. Defines methods for informing all elements about about information to be buffered.

Instance Methods [hide private]
 
__init__(self)
Initializes the monitor list.
source code
iterator
__iter__(self)
Returns: Iterator over the list of AEMonitors
source code
integer
__len__(self)
Returns: Number of monitors in the collection
source code
boolean
__contains__(self, val)
Checks if the given monitor class name or instance is in the monitor collection.
source code
 
clear(self)
Closes all monitors in monitors.
source code
 
removeByClassName(self, name)
Removes one AEMonitor instance given its class name from the collection.
source code
 
remove(self, *mons)
Removes one or more AEMonitor instances from the collection.
source code
 
add(self, kind, monitors)
Adds one or more AEMonitors to the list of monitors to be notified.
source code
 
show(self, *args, **kwargs)
Informs AEMonitors added via add of information to be buffered.
source code

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

Instance Variables [hide private]
list of AEMonitors monitors
list of AEMonitors that will be notified of events
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Initializes the monitor list.
Overrides: object.__init__

__iter__(self)

source code 
Returns: iterator
Iterator over the list of AEMonitors

__len__(self)
(Length operator)

source code 
Returns: integer
Number of monitors in the collection

__contains__(self, val)
(In operator)

source code 
Checks if the given monitor class name or instance is in the monitor collection.
Parameters:
  • val (string or AEMonitor) - Instance of a monitor or a string representing its class name
Returns: boolean
Is the monitor in the collection?

removeByClassName(self, name)

source code 
Removes one AEMonitor instance given its class name from the collection.
Parameters:
  • name (string) - Class name of the monitor to remove

remove(self, *mons)

source code 
Removes one or more AEMonitor instances from the collection.
Parameters:
  • mons (list of AEMonitor) - Monitors to remove

add(self, kind, monitors)

source code 
Adds one or more AEMonitors to the list of monitors to be notified. Filters the list of monitors based on the kind of events in which they are interested.
Parameters:
  • kind (class) - Kind of event of interest to the monitor
  • monitors (tuple of AEMonitors) - AEMonitors to notify

show(self, *args, **kwargs)

source code 
Informs AEMonitors added via add of information to be buffered. Calls Base.AEMonitor.show on all monitors. Monitors raising IOError in show are removed from the monitors list and are no longer notified of events.
Parameters:
  • args (list) - Information to buffer
  • kwargs (dictionary) - Information to buffer