Package PyMonitor :: Module monitor :: Class MonitorServer
[show private | hide private]
[frames | no frames]

Class MonitorServer

object --+        
         |        
  _Verbose --+    
             |    
        Thread --+
                 |
                MonitorServer


MonitorServer is an XML-RPC server providing functions from the monitor instance
that is passed as an argument to the server. As default the MonitorServer exposes
the functions in the Monitor class.

Since the monitor class is an parameter to the MonitorServer the functionality
that the MonitorServer provides can be expanded.

i.e.

class MyMonitor(PyMonitor.Monitor):
    def additional_method(self, *args, **kwargs):
            do something very special

and than to initializie the server by:
mon=PyMonitor.MonitorServer(('localhost', 8881),monitor=MyMonitor())
(thanx to Harald Massa for this)

Method Summary
  __init__(self, addr, monitor, daemonized)
  die(self)
  run(self)
    Inherited from Thread
  __repr__(self)
  getName(self)
  isAlive(self)
  isDaemon(self)
  join(self, timeout)
  setDaemon(self, daemonic)
  setName(self, name)
  start(self)
  _set_daemon(self)
    Inherited from _Verbose
  _note(self, format, *args)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Class Variable Summary
    Inherited from Thread
bool _Thread__initialized = False

Generated by Epydoc 2.0 on Sat Apr 10 17:08:45 2004 http://epydoc.sf.net