Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 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)