def doGetContentResponse(self): print "do download" '''Get the time to wait for this transition in millis''' #to_wait = self.inter_arrivals_manager.get_waiting_time(self.markov_current_state, 'GetContentResponse') self.markov_current_state = 'GetContentResponse' action = get_action(["GetContentResponse", 'sampleMake.txt', 'files/get/'], ftp_files) action.perform_action(ftp_client)
def doMoveResponse(self): print "do move" '''Get the time to wait for this transition in millis''' #to_wait = self.inter_arrivals_manager.get_waiting_time(self.markov_current_state, 'MoveResponse') self.markov_current_state = 'MoveResponse' action = get_action(["MoveResponse", 'files', 'ReSampleMake.txt'], ftp_files) action.perform_action(ftp_client)
def doPutContentResponse(self): print "do update" '''Get the time to wait for this transition in millis''' #to_wait = self.inter_arrivals_manager.get_waiting_time(self.markov_current_state, 'PutContentResponse') self.markov_current_state = 'PutContentResponse' action = get_action(["PutContentResponse", 'sampleMake.txt', [0, 57, 1100, 1206, -1, 227]], ftp_files) action.perform_action(ftp_client)
def doUnlink(self ): print "do delete" '''Get the time to wait for this transition in millis''' #to_wait = self.inter_arrivals_manager.get_waiting_time(self.markov_current_state, 'Unlink') self.markov_current_state = 'Unlink' action = get_action(["Unlink", 'sampleMake.txt'], ftp_files) action.perform_action(ftp_client)
def doMakeResponse(self): print "do create" '''Get the time to wait for this transition in millis''' #to_wait = self.inter_arrivals_manager.get_waiting_time(self.markov_current_state, 'MakeResponse') self.markov_current_state = 'MakeResponse' synthetic_file_name = self.data_generator.create_file() action = get_action(["MakeResponse", 'sampleMake.txt', 10], ftp_files) action.perform_action(ftp_client)