Package gofer :: Package agent :: Module main :: Class PluginMonitorThread
[hide private]
[frames] | no frames]

Class PluginMonitorThread

source code

        object --+        
                 |        
threading._Verbose --+    
                     |    
      threading.Thread --+
                         |
                        PluginMonitorThread

Run actions independantly of main thread.

Instance Methods [hide private]
 
__init__(self, plugin)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
run(self)
Monitor plugin attach/detach.
source code
 
update(self)
Update plugin messaging sessions.
source code

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, is_alive, join, setDaemon, setName, start

Inherited from threading.Thread (private): _reset_internal_locks, _set_daemon, _set_ident

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
Plugin plugin
A plugin to monitor.
Properties [hide private]

Inherited from threading.Thread: daemon, ident, name

Inherited from threading.Thread (private): _block

Inherited from object: __class__

Method Details [hide private]

__init__(self, plugin)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • plugin (Plugin) - A plugin to monitor.
Overrides: object.__init__

run(self)

source code 

Monitor plugin attach/detach.

Overrides: threading.Thread.run

update(self)

source code 

Update plugin messaging sessions. When a change in URL or UUID is detected the associated plugin is:

  • detached
  • attached (URL and UUID specified)