Package Products :: Package ZenHub :: Module zenhub :: Class HubAvitar |
[hide private]
[frames] | no frames]

# Class HubAvitar

source code

    twisted.spread.pb.Avatar --+
                               |
                              HubAvitar

Connect collectors to their configuration Services

Instance Methods | [hide private]
__init__(self, hub) | source code
perspective_ping(self) | source code
perspective_getService(self, serviceName, instance=None, listener=None) Allow a collector to find a Hub service by name. | source code
perspective_reportingForWork(self, worker) Allow a worker register for work. | source code
Inherited from `twisted.spread.pb.Avatar`: `perspectiveMessageReceived`

Method Details | [hide private]

### perspective_getService(self, serviceName, instance=None, listener=None) | source code
Allow a collector to find a Hub service by name. It also associates the service with a collector so that changes can be pushed back out to collectors. Parameters: `serviceName` (string) - a name, like 'EventService' `instance` (string) - the collector's instance name, like 'localhost' `listener` (a remote reference to the collector) - the callback interface to the collector @return a remote reference to a service

### perspective_reportingForWork(self, worker) | source code
Allow a worker register for work. Parameters: `worker` (a pb.RemoteReference) - a reference to zenhubworker @return None