Package Products :: Package DataCollector :: Module ApplyDataMap :: Class ApplyDataMapThread |
[hide private]
[frames] | no frames]

# Class ApplyDataMapThread

source code

            object --+
                     |
    threading._Verbose --+
                         |
          threading.Thread --+
                             |
                object --+   |
                         |   |
              ApplyDataMap --+
                             |
                            ApplyDataMapThread

Thread that applies datamaps to a device. It reads from a queue that should have tuples of (devid, datamaps) where devid is the primaryId to the device and datamps is a list of datamaps to apply. Cache is synced at the start of each transaction and there is one transaction per device.

Instance Methods | [hide private]
__init__(self, datacollector, app) | source code
processClient(self, device, collectorClient) Apply datamps to device. | source code
run(self) Process collectorClients as they are passed in from a data collector. | source code
stop(self) Stop the thread once all devices are processed. | source code
Inherited from `threading.Thread`: `__repr__`, `getName`, `isAlive`, `isDaemon`, `join`, `setDaemon`, `setName`, `start` Inherited from `threading.Thread` (private): `_set_daemon` Inherited from `threading._Verbose` (private): `_note` Inherited from `ApplyDataMap`: `applyDataMap`, `logChange`, `logEvent` Inherited from `ApplyDataMap` (private): `_applyDataMap`, `_createRelObject`, `_updateObject`, `_updateRelationship` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, datacollector, app) (Constructor) | source code
Overrides: threading.Thread.__init__

### processClient(self, device, collectorClient) | source code
Apply datamps to device. Overrides: ApplyDataMap.processClient

### run(self) | source code
Process collectorClients as they are passed in from a data collector. Overrides: threading.Thread.run

### stop(self) | source code
Stop the thread once all devices are processed. Overrides: ApplyDataMap.stop