Beispiel #1
0
                panda_config.nDBConnection, True)

# initialize JobDispatcher
from jobdispatcher.JobDispatcher import jobDispatcher
if panda_config.nDBConnection != 0:
    jobDispatcher.init(taskBuffer)

# initialize DataService
from dataservice.DataService import dataService
if panda_config.nDBConnection != 0:
    dataService.init(taskBuffer)

# initialize UserIF
from userinterface.UserIF import userIF
if panda_config.nDBConnection != 0:
    userIF.init(taskBuffer)

# import web I/F
allowedMethods = []

from taskbuffer.Utils            import isAlive,putFile,deleteFile,getServer,updateLog,fetchLog,\
     touchFile,getVomsAttr,putEventPickingRequest,getAttr,getFile,uploadLog
allowedMethods += [
    'isAlive', 'putFile', 'deleteFile', 'getServer', 'updateLog', 'fetchLog',
    'touchFile', 'getVomsAttr', 'putEventPickingRequest', 'getAttr', 'getFile',
    'uploadLog'
]

from dataservice.DataService import datasetCompleted, updateFileStatusInDisp
allowedMethods += ['datasetCompleted', 'updateFileStatusInDisp']
Beispiel #2
0
taskBuffer.init(panda_config.dbhost,panda_config.dbpasswd,panda_config.nDBConnection,True)

# initialize JobDispatcher
from jobdispatcher.JobDispatcher import jobDispatcher
if panda_config.nDBConnection != 0:
    jobDispatcher.init(taskBuffer)

# initialize DataService
from dataservice.DataService import dataService
if panda_config.nDBConnection != 0:
    dataService.init(taskBuffer)

# initialize UserIF
from userinterface.UserIF import userIF
if panda_config.nDBConnection != 0:
    userIF.init(taskBuffer)

# import web I/F
allowedMethods = []

from taskbuffer.Utils            import isAlive,putFile,deleteFile,getServer,updateLog,fetchLog,\
     touchFile,getVomsAttr,putEventPickingRequest,getAttr,getFile,uploadLog
allowedMethods += ['isAlive','putFile','deleteFile','getServer','updateLog','fetchLog',
                   'touchFile','getVomsAttr','putEventPickingRequest','getAttr','getFile',
                   'uploadLog']

from dataservice.DataService     import datasetCompleted,updateFileStatusInDisp
allowedMethods += ['datasetCompleted','updateFileStatusInDisp']

from jobdispatcher.JobDispatcher import getJob,updateJob,getStatus,genPilotToken,\
    getEventRanges,updateEventRange,getKeyPair