def __init__(self, parent, name, success_state, failure_state): RetryingRequestList.__init__(self, parent, name) # block -> (length, (CHK, CHK, ...)) self.success_state = success_state self.failure_state = failure_state self.blocks = () self.history = RequestHistory()
def __init__(self, parent, name, success_state, failure_state): RetryingRequestList.__init__(self, parent, name) self.success_state = success_state self.failure_state = failure_state self.ordered = [] # i.e. so you can deref candidates in order queued self.required_successes = 0 # If this is True attemps all candidates before success. self.try_all = False
def __init__(self, parent, name, success_state, failure_state): RetryingRequestList.__init__(self, parent, name) # [file_name, file_len, [CHK0, CHK1], raw_top_key_data] self.files = [] # Candidate is: # (index, ordinal) # index is an index into self.files # ordinal 2 means request topkey data # ordinal 0, 1 insert self.success_state = success_state self.failure_state = failure_state
def reset(self): """ Implementation of State virtual. """ #print "reset -- pending: ", len(self.pending) self.top_key_tuple = None RetryingRequestList.reset(self)
def __init__(self, parent, name, success_state, failure_state): RetryingRequestList.__init__(self, parent, name) self.success_state = success_state self.failure_state = failure_state self.top_key_tuple = None # FNA sskdata self.freenet_heads = None
def reset(self): """ State implementation. """ RetryingRequestList.reset(self) self.blocks = () self.history.reset()
def reset(self): """ State implementation. """ RetryingRequestList.reset(self) self.files = []
def reset(self): """ Implementation of State virtual. """ self.ordered = [] self.required_successes = 0 self.try_all = False RetryingRequestList.reset(self)