示例#1
0
文件: writers.py 项目: tekmans/mmc
 def __init__(self):
     """
     Init Object AuditWriterDB
     """
     Singleton.__init__(self)
     AuditWriterI.__init__(self)
     # self.fqdn contains the agent FQDN.
     self.fqdn = socket.getfqdn()
示例#2
0
 def __init__(self):
     """
     Init Object AuditWriterDB
     """
     Singleton.__init__(self)
     AuditWriterI.__init__(self)
     # self.fqdn contains the agent FQDN.
     self.fqdn = socket.getfqdn()
示例#3
0
    def __init__(self, config=None, init=True):
        Singleton.__init__(self)
        if not hasattr(self, "logaction"):
            if config == None:
                from mmc.plugins.base import BasePluginConfig
                from mmc.support.config import PluginConfigFactory

                try:
                    # Read the configuration
                    self.make(PluginConfigFactory.new(BasePluginConfig, "base"), init)
                except IOError:
                    # Fallback on default configuration
                    self.make(None, init)
            else:
                self.make(config, init)
示例#4
0
 def __init__(self, config=None, init=True):
     Singleton.__init__(self)
     if not hasattr(self, 'logaction'):
         if config == None:
             from mmc.plugins.base import BasePluginConfig
             from mmc.support.config import PluginConfigFactory
             try:
                 # Read the configuration
                 self.make(
                     PluginConfigFactory.new(BasePluginConfig, 'base'),
                     init)
             except IOError:
                 # Fallback on default configuration
                 self.make(None, init)
         else:
             self.make(config, init)
示例#5
0
 def __init__(self):
     Singleton.__init__(self)
     self.logger = logging.getLogger()
示例#6
0
文件: agent.py 项目: allgi/mmc
 def __init__(self):
     Singleton.__init__(self)
示例#7
0
 def __init__(self):
     Singleton.__init__(self)
示例#8
0
 def __init__(self):
     Singleton.__init__(self)
     self.logger = logging.getLogger()