Package Products :: Package ZenHub :: Module PBDaemon |
[hide private]
[frames] | no frames]

# Module PBDaemon

source code

Classes | [hide private]
RemoteException Exception that can cross the PB barrier
RemoteConflictError
RemoteBadMonitor
HubDown
FakeRemote
PBDaemon

Functions | [hide private]
various |
translateError(callable) Decorator function to wrap remote exceptions into something understandable by our daemon. | source code

Variables | [hide private]
| __doc__ = `"""PBDae`...``
| PB_PORT = `8789`
| startEvent = `{'eventClass': App_Start, 'summary': 'started', '`...``
| stopEvent = `{'eventClass': App_Stop, 'summary': 'stopped', 'se`...``
| DEFAULT_HUB_HOST = `'localhost'`
| DEFAULT_HUB_PORT = `8789`
| DEFAULT_HUB_USERNAME = `'admin'`
| DEFAULT_HUB_PASSWORD = `'zenoss'`
| DEFAULT_HUB_MONITOR = `'localhost'`

Function Details | [hide private]

### translateError(callable) | source code
Decorator function to wrap remote exceptions into something understandable by our daemon. Parameters: `callable` (function) - function to wrap Returns: various function's return or an exception

Variables Details | [hide private]

  ### __doc__ Value:
      """PBDaemon

      Base for daemons that connect to zenhub

      """

  ### startEvent Value:
      {'eventClass': App_Start, 'summary': 'started', 'severity': Clear,}

  ### stopEvent Value:
      {'eventClass': App_Stop, 'summary': 'stopped', 'severity': Warning,}