def __init__(self, is_daemon=True): Controller.__init__(self, Cluster.ADDR, "cluster", config.CLUSTER_LOG, config.LOG_LEVEL, is_daemon) self._logger.info("initialze controller done") self._initialized = 0 self._cc_detail = None self._inst_lock = None self._res_lock = None self._nccall_sem = None
def __init__(self, is_daemon=True): # initialize controller Controller.__init__(self, Node.ADDR, "node", config.NODE_LOG, config.LOG_LEVEL, is_daemon) self._logger.info("initialze controller done") # 0 no _initialized, 1 has been _initialized, -1 _initialized error or initialing. self._initialized = 0 self._global_instances = None self._nc_detail = None self._hyp_lock = None self._inst_lock = None self._res_lock = None