def __init__(self, nrtdir, archdir, isodir, filedb, max_size, dcid, subnode_addr, dcid_override): self.__volume_factory = None self.__local_volume_fd = None self.__local_volume_size = 0 self.__request_size = 0 self.__sds = sds.SDS(nrtdir, archdir, isodir, filedb) self.__arcl = ArclinkManager(None, socket_timeout = SOCKET_TIMEOUT, download_retry = DOWNLOAD_RETRY) self.__max_size = max_size self.__dcid = dcid self.__subnode_addr = subnode_addr self.__dcid_override = dcid_override self.__foreign_req = {}
def __init__(self, rtype, args, label, user, user_ip): self.__rtype = rtype self.__args = args self.__label = label self.__user = user self.__user_ip = user_ip self.__ready = False self.__error = None self.__tw_proxy = [] self.__tw_local = [] self.__req_sent = [] self.__req_noroute = [] self.__size = 0 self.__encrypted = False self.__vol_map = {} self.__purged = False self.__used = 0 self.__lock = threading.RLock() self.__cond = threading.Condition() self.__sds = sds.SDS(g_options.nrtdir, g_options.arcdir, g_options.isodir)
def after_restore_state(self): self.__lock = threading.RLock() self.__cond = threading.Condition() self.__sds = sds.SDS(g_options.nrtdir, g_options.arcdir, g_options.isodir)