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
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
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)

### 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.

### 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