def __init__(self): Resource.__init__(self) #self.route('POST', ('outputs',), self.testOutputs) self.route('POST', ('stream', ), self.testStream) self.route('POST', ('stream_callback', ), self.streamUpload) self.route('POST', ('fetch_parent', ), self.testFetchParent)
def __init__(self): self.resourceName = 'remoteconnection' # Hardcode some paths until we know how to pass our # own custom config options to our plugin pathToConnModule = '/home/scott/projects/Cosmology/web-hpc-manager/src/python/webserver' self.mappingFilePath = '/opt/apache-2.4.7/pv-mapping-file/mapping.txt' try : sys.path.insert(0, pathToConnModule) rcm = __import__('RemoteConnection') self.remoteConnMgr = rcm.RemoteConnectionManager() self.launcherModule = __import__('SecureRemoteLauncher') except Exception as inst : print "ERROR: remote connections will not work, exception encountered import module" print inst Resource.__init__(self) self.currentJobsMap = {} self.route('POST', ('connect',), self.secureConnect) self.route('POST', ('tunnellaunch',), self.sshTunnelLaunch) self.route('POST', ('jobschedule',), self.scheduleJob) self.route('POST', ('jobstatus',), self.checkJobStatus) self.route('POST', ('jobcleanup',), self.cleanupJob) self.route('GET', ('create',), self.createConnection) self.route('GET', ('command',), self.sendShellCommand) self.route('GET', ('disconnect',), self.disconnect)
def __init__(self): Resource.__init__(self) #self.route('POST', ('outputs',), self.testOutputs) self.route('POST', ('stream',), self.testStream) self.route('POST', ('stream_callback',), self.streamUpload) self.route('POST', ('fetch_parent',), self.testFetchParent)
def __init__(self): Resource.__init__(self) self.resourceName = 'blur_example' self.route('POST', (':id',), self.createBlurImage)