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

# Class PythonClient

source code

               object --+
                        |
    BaseClient.BaseClient --+
                            |
                           PythonClient

Implement the DataCollector Client interface for Python

Instance Methods | [hide private]
__init__(self, device=None, datacollector=None, plugins=[]) Initializer | source code
run(self) Start Python collection. | source code
collectComplete(self, r, plugin) Twisted deferred error callback used to store the results of the collection run | source code
clientFinished(self) Stop the collection of performance data | source code
list of results |
getResults(self) Return the results of the data collection. | source code
Inherited from `BaseClient.BaseClient`: `stop` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

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

Method Details | [hide private]

### __init__(self, device=None, datacollector=None, plugins=[]) (Constructor) | source code
Initializer Parameters: `device` (device object) - remote device to use the datacollector `datacollector` (datacollector object) - performance data collector object `plugins` (list of plugin objects) - Python-based performance data collector plugin Overrides: BaseClient.BaseClient.__init__

### run(self) | source code
Start Python collection. Overrides: BaseClient.BaseClient.run

### collectComplete(self, r, plugin) | source code
Twisted deferred error callback used to store the results of the collection run Parameters: `r` (result or Exception) - result from the collection run `plugin` (plugin object) - Python-based performance data collector plugin

### getResults(self) | source code
Return the results of the data collection. To be implemented by child classes Returns: list of results list of results Overrides: BaseClient.BaseClient.getResults