def __init__(self):
     # Indicates if we are doing a backup. This uses a piece of shared memory
     # so forked processes will all see the same value when updated
     self._doing_backup = multiprocessing.Value('i', 0)
     self._htsql_port = str(get_random_port())
     self._paused = False
     self._xmlrpc_conn1, self._xmlrpc_conn2 = multiprocessing.Pipe(True)
     self._updater_event = multiprocessing.Event()
     self._plugins_pipes = {}
     self._manager = TaskManager()
Exemple #2
0
 def __init__(self):
     # Indicates if we are doing a backup. This uses a piece of shared memory
     # so forked processes will all see the same value when updated
     self._doing_backup = multiprocessing.Value('i', 0)
     self._htsql_port = str(get_random_port())
     self._paused = False
     self._xmlrpc_conn1, self._xmlrpc_conn2 = multiprocessing.Pipe(True)
     self._updater_event = multiprocessing.Event()
     self._plugins_pipes = {}
     self._manager = TaskManager()
Exemple #3
0
    def __init__(self, port=None):
        super(Daemon, self).__init__()

        self.port = port
        if self.port is None and is_developer_mode():
            self.port = 8080
        elif self.port is None:
            self.port = get_random_port()
        # Indicate that this Thread is a daemon. Accordingly to the
        # documentation, the entire python program exits when no alive
        # non-daemon threads are left.
        self.daemon = True
 def __init__(self, port=None):
     self._port = port or get_random_port()
     self._addrs = []
     self._root = Resource()
     self._root.putChild('XMLRPC', XMLRPCResource(self._root))
     server.Site.__init__(self, self._root)
Exemple #5
0
 def __init__(self, port=None):
     self._port = port or get_random_port()
     self._addrs = []
     self._root = Resource()
     self._root.putChild('XMLRPC', XMLRPCResource(self._root))
     server.Site.__init__(self, self._root)