common.targetmachine (version 0.1, 10 April 2003)
index
e:\bothans\common\targetmachine.py

 MonitoredMachine and associated classes

 
Modules
            
cPickle
common
logging
random
 
Classes
            
GenericUidManager
MonitoredServiceManager
TargetMachineManager
UsedPluginManager
MonitoredService
TargetMachine
UsedPlugin
 
class GenericUidManager
       
   Methods defined here:
__init__(self)
__iter__(self)
_reserveNewUid(self)
 Returns a unused uid
forUid(self, uid)
 Returns the object associated with the uid parameter or None

Data and non-method functions defined here:
__doc__ = None
__module__ = 'common.targetmachine'
 
class MonitoredService
       A class that represents an instance of a service that is monitored on a given target machine.
the pluginUsed to monitor that service on the MonitoredService#target is MonitoredService#pluginUsed.
A suitable one can be found using the PluginManager. cf common.plugin module
it can override default service options by MonitoredService#options
 
   Methods defined here:
__init__(self, uid, service, targetmachine, pluginUsed=None)
 -uid is the unique uid given to this MonitoredService. It is provided by the MonitoredServiceManager.
-service is the service that will be monitored
-targetmachine is the Monitored Machine
geteCrontab(self)
 Returns the ecrontab (a string) to use for this monitored service

Data and non-method functions defined here:
__doc__ = ' A class that represents an instance of a servic... service options by MonitoredService#options\n '
__module__ = 'common.targetmachine'
 
class MonitoredServiceManager(GenericUidManager)
       
   Methods defined here:
newMonitoredService(self, service, target, plugin)
 Return a newly created MonitoredService

Data and non-method functions defined here:
__doc__ = None
__module__ = 'common.targetmachine'

Methods inherited from GenericUidManager:
__init__(self)
__iter__(self)
_reserveNewUid(self)
 Returns a unused uid
forUid(self, uid)
 Returns the object associated with the uid parameter or None
 
class TargetMachine
      #------------------------------------------------------------------------------
# Target Machines
 
   Methods defined here:
__init__(self, peer=None)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'common.targetmachine'
 
class TargetMachineManager(GenericUidManager)
       
   Methods defined here:
newTargetMachine(self, address, os=None, arch=None)
sendPartialConfig(self, uid, peers)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'common.targetmachine'

Methods inherited from GenericUidManager:
__init__(self)
__iter__(self)
_reserveNewUid(self)
 Returns a unused uid
forUid(self, uid)
 Returns the object associated with the uid parameter or None
 
class UsedPlugin
      #------------------------------------------------------------------------------
# Used Plugin
 
   Methods defined here:
__init__(self, uid, plugin, target)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'common.targetmachine'
 
class UsedPluginManager(GenericUidManager)
       
   Methods defined here:
newUsedPlugin(self, plugin, target)
 Returns a newly created UsedPlugin for plugin on target

Data and non-method functions defined here:
__doc__ = None
__module__ = 'common.targetmachine'

Methods inherited from GenericUidManager:
__init__(self)
__iter__(self)
_reserveNewUid(self)
 Returns a unused uid
forUid(self, uid)
 Returns the object associated with the uid parameter or None
 
Data
             __author__ = 'Michel Rasschaert <mrasschaert@neocles.com>'
__date__ = '10 April 2003'
__file__ = r'e:\bothans\common\targetmachine.pyc'
__license__ = 'This file is part of Bothans\n\n Bothans is fre...lace, Suite 330, Boston, MA 02111-1307 USA\n '
__name__ = 'common.targetmachine'
__status__ = 'alpha'
__version__ = '0.1'
log = <logging.Logger instance at 0x00801CF0>
 
Author
             Michel Rasschaert <mrasschaert@neocles.com>