Package funkload :: Module Monitor :: Class MonitorThread
[hide private]
[frames] | no frames]

Class MonitorThread

source code

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

The monitor thread that collect information.

Instance Methods [hide private]
 
__init__(self, records, host=None, interval=None, interface=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setInterval(self, interval)
Set the interval between monitoring.
source code
 
setInterface(self, interface)
Set the network interface to monitor.
source code
 
setHost(self, host)
Set the monitored host.
source code
 
checkKernelRev(self)
Check the linux kernel revision.
source code
 
run(self)
Thread jobs.
source code
 
stop(self)
Stop the thread.
source code
 
monitor(self)
The monitor task.
source code
 
startRecord(self)
Enable recording.
source code
 
stopRecord(self)
Stop recording.
source code
 
countRecorders(self)
Return the number of recorder.
source code

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

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, records, host=None, interval=None, interface=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

run(self)

source code 

Thread jobs.

Overrides: threading.Thread.run