Exemple #1
0
 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()
Exemple #2
0
 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
Exemple #3
0
 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
Exemple #4
0
    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
Exemple #7
0
 def reset(self):
     """ State implementation. """
     RetryingRequestList.reset(self)
     self.blocks = ()
     self.history.reset()
Exemple #8
0
 def reset(self):
     """ State implementation. """
     RetryingRequestList.reset(self)
     self.files = []
Exemple #9
0
 def reset(self):
     """ Implementation of State virtual. """
     #print "reset -- pending: ", len(self.pending)
     self.top_key_tuple = None
     RetryingRequestList.reset(self)
Exemple #10
0
 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
Exemple #11
0
 def reset(self):
     """ Implementation of State virtual. """
     self.ordered = []
     self.required_successes = 0
     self.try_all = False
     RetryingRequestList.reset(self)
Exemple #12
0
 def reset(self):
     """ Implementation of State virtual. """
     self.ordered = []
     self.required_successes = 0
     self.try_all = False
     RetryingRequestList.reset(self)