Exemplo n.º 1
0
    def __init__(self):

        path = os.path.dirname(os.path.abspath(__file__))
        if "library.zip" in path:
            path = os.path.dirname(path)
        cfg_path = os.path.join(path, "pulse2agent.ini")
        logging.config.fileConfig(cfg_path)

        self.stopEvent = cx_Threads.Event()
        config = Config()
        config.read(cfg_path)
        self.dp = Dispatcher(config)
Exemplo n.º 2
0
 def __init__(self, debug=False):
     logging.getLogger().handlers = []
     self.stopEvent = cx_Threads.Event()
     self.debug = debug
Exemplo n.º 3
0
 def __init__(self):
     self.stopEvent = cx_Threads.Event()
     self.pollerStop = threading.Event()
     self.config = PullClientConfig.instance()
     logging.config.fileConfig(self.config.config_file)
Exemplo n.º 4
0
 def __init__(self):
     self.event = cx_Threads.Event()
     self.stopEvent = cx_Threads.Event()
     self.stopRequested = False
Exemplo n.º 5
0
 def __init__(self):
     cx_Logging.Info("creating handler instance")
     self.stopEvent = cx_Threads.Event()