def terminate(self, service_id = None): AbstractGrid.terminate(self, service_id) self.communicator.halt() self.__stop = True if self.debug: ## please keep debug statement! print 'FileBasedGrid: terminated.'
def __init__(self, hosts, src_path, display, X11_delay, debug, verbose, nfs_care=False): AbstractGrid.__init__(self, hosts, src_path, display, X11_delay, debug, verbose, shared_temp_path=True) #copy all files in current dir to remote host. if self.debug: print "initialising" self.initialise(src_path, ['filebased_loader','ro', 'FileBasedGrid','OrderedDict']) if self.debug: print "setting filebased_loader" self.set_loader(src_path, 'filebased_loader') if self.debug: print "creating communicator" self.create_communicator(nfs_care) self.results = {} self.key = 0 self.__stop = False self.__stopped = False if self.debug: print 'FileBasedGrid created: tid = ', self.communicator.tid
def set_debug(self, debug): AbstractGrid.set_debug(self, debug) self.communicator.debug = debug