Package Products :: Package ZenEvents :: Package events2 :: Module processing :: Class Manager |
[hide private]
[frames] | no frames]

# Class Manager

source code

    object --+
             |
            Manager

Provides lookup access to processing pipes and performs caching.

Instance Methods | [hide private]
__init__(self, dmd) | source code
_initCatalogs(self) | source code
reset(self) | source code
getEventClassOrganizer(self, eventClassName) | source code
lookupEventClass(self, eventContext) Find a Device's EventClass | source code
getElementByUuid(self, uuid) Get a Device/Component by UUID | source code
uuidFromBrain(self, brain) Helper method to deal with catalog brains which are out of date. | source code
getElementUuidById(self, catalog, element_type_id, id) Find element by ID but only cache UUID. | source code
getElementById(self, catalog, element_type_id, id) Find element by ID, first checking a cache for UUIDs then using that UUID to load the element. | source code
getElementUuid(self, obj) | source code
_findDevices(self, identifier, ipAddress, limit=None) returns a tuple ([device brains], [devices]) searching manage IP and interface IPs. | source code
findDeviceUuid(self, identifier, ipAddress) This will return the device's | source code
findDevice(self, identifier, ipAddress) | source code
getUuidsOfPath(self, node) Looks up all the UUIDs in the tree path of an Organizer | source code

Class Variables | [hide private]
| ELEMENT_TYPE_MAP = `{DEVICE: Device, COMPONENT: DeviceComponent,}`

Method Details | [hide private]

### __init__(self, dmd) (Constructor) | source code
Overrides: object.__init__ (inherited documentation)

### uuidFromBrain(self, brain) | source code
Helper method to deal with catalog brains which are out of date. If the uuid is not set on the brain, we attempt to load it from the object.

### getElementUuidById(self, catalog, element_type_id, id) | source code
Find element by ID but only cache UUID. This forces us to lookup elements each time by UUID (pretty fast) which gives us a chance to see if the element has been deleted.

### getElementById(self, catalog, element_type_id, id) | source code
Find element by ID, first checking a cache for UUIDs then using that UUID to load the element. If the element can't be found by UUID, the UUID cache is cleared and lookup tried again.

### _findDevices(self, identifier, ipAddress, limit=None) | source code
returns a tuple ([device brains], [devices]) searching manage IP and interface IPs. limit is the maximum total number in both lists.

### findDeviceUuid(self, identifier, ipAddress) | source code
This will return the device's Parameters: `identifier` (string) - The IP address or id of a device `ipaddress` (string) - The known ipaddress of the device