示例#1
0
    def __init__(self, config):
        Process.__init__(self)
        self.name = 'RuleEngine'
        self.config = config
        self.database = DatabaseHandler(self.config.name)
        self.logutil = KBLogUtil(self.config.name, self.name)
        self.wids = WIDSClient(self.config.server_ip, self.config.server_port)
        self.active = None
        self.rules = []

        #///dev///
        self.rules.append(rule1)
示例#2
0
 def __init__(self, settings, config, shutdown_event, name):
     Process.__init__(self)
     self.name = name
     self.settings = settings
     self.config = config
     self.shutdown_event = shutdown_event
     self.database = DatabaseHandler(self.config.name)
     self.logutil = KBLogUtil(self.config.name, self.name, None)
     self.wids_api = WIDSClient(self.config.server_ip,
                                self.config.server_port)
     self.tasks = {}
     self.active = False
     self.running = False