Ejemplo n.º 1
0
        def __init__(self, options):
                self.prelude_client = None

                log.initLogger(options)
                self.config = config.Config(options.config)

                # restore previous context
                # (this need to be called after logger is setup, and before plugin loading).
                context.load(self)

                self.pluginmanager = pluginmanager.PluginManager(self)
                logger.info("%d plugins have been loaded.", self.pluginmanager.getPluginCount())
Ejemplo n.º 2
0
    def load_plugins(self):
        self.pluginmanager = pluginmanager.PluginManager()

        # restore previous context
        # (this need to be called after logger is setup, and before plugin loading).
        context.load(self.profile)

        # Since we can launch different instances of prelude-correlator with different profiles,
        # we need to separate their context and specific rules data files
        # (this need to be called before plugin loading)
        _init_profile_dir(self.profile)

        self.pluginmanager.load()
        self.pluginmanager.check_dependencies()
        logger.info("%d plugins have been loaded.",
                    self.pluginmanager.getPluginCount())
Ejemplo n.º 3
0
    def __init__(self, options):
        self.prelude_client = None

        log.initLogger(options)
        self.config = config.Config(options.config)
        self.profile = options.profile

        self.pluginmanager = pluginmanager.PluginManager(self)

        # restore previous context
        # (this need to be called after logger is setup, and before plugin loading).
        context.load(self.profile)

        # Since we can launch different instances of prelude-correlator with different profiles,
        # we need to separate their context and specific rules data files
        # (this need to be called before plugin loading)
        _init_profile_dir(self.profile)

        self.pluginmanager.load()
        logger.info("%d plugins have been loaded.", self.pluginmanager.getPluginCount())