def __init__(self, config_object): self.rc_config = config_object self.rc_util_db = util.RecoveryControllerUtilDb(self.rc_config) self.rc_util_api = util.RecoveryControllerUtilApi(self.rc_config) self.STATUS_NORMAL = 0 self.STATUS_ERROR = 1
def __init__(self, config_object): """ Constructor: This constructor creates RecoveryControllerWorker object. """ self.rc_config = config_object self.rc_worker = worker.RecoveryControllerWorker(config_object) self.rc_util = util.RecoveryControllerUtil() self.rc_util_db = util.RecoveryControllerUtilDb(config_object) self.rc_util_api = util.RecoveryControllerUtilApi(config_object)