ProductionManagerHandler

DISET request handler base class for the ProductionDB.

class DIRAC.ProductionSystem.Service.ProductionManagerHandler.ProductionManagerHandler(*args, **kargs)

Bases: DIRAC.ProductionSystem.Service.ProductionManagerHandler.ProductionManagerHandlerBase

exception ConnectionError(msg)

Bases: exceptions.Exception

__init__(msg)

x.__init__(…) initializes x; see help(type(x)) for signature

args
message
__init__(*args, **kargs)

Constructor

Parameters:
  • handlerInitDict (dictionary) – Information vars for the service
  • trid (object) – Transport to use
auth_ping = ['all']
auth_refreshConfiguration = ['CSAdministrator']
export_addProduction(prodName, prodDescription)
export_addProductionStep(prodStep)
export_addTransformationsToProduction(prodName, transIDs, parentTransIDs)
export_deleteProduction(prodName)
static export_echo(data)

This method is used for testing performance of the service

Parameters:data (str) – data to be sent back to the caller
Returns:S_OK, Value is the input data
export_getProduction(prodName)
export_getProductionParameters(prodName, parameters)
export_getProductionStep(stepID)
export_getProductionTransformations(prodName, condDict=None, older=None, newer=None, timeStamp='CreationTime', orderAttribute=None, limit=None, offset=None)
export_getProductions(condDict=None, older=None, newer=None, timeStamp='CreationDate', orderAttribute=None, limit=None, offset=None)
export_ping()
static export_refreshConfiguration(fromMaster)

Force refreshing the configuration data

Parameters:fromMaster (bool) – flag to refresh from the master configuration service
export_setProductionStatus(prodName, status)
export_startProduction(prodName)
classmethod getCSOption(optionName, defaultValue=False)

Get an option from the CS section of the services

Returns:Value for serviceSection/optionName in the CS being defaultValue the default
getRemoteAddress()

Get the address of the remote peer.

Returns:Address of remote peer.
getRemoteCredentials()

Get the credentials of the remote peer.

Returns:Credentials dictionary of remote peer.
initialize()

Initialize this instance of the handler (to be overwritten)

setDatabase(oDatabase)
srv_disconnect(trid=None)
classmethod srv_disconnectClient(trid)
srv_getActionTuple()
classmethod srv_getCSOption(optionName, defaultValue=False)

Get an option from the CS section of the services

Returns:Value for serviceSection/optionName in the CS being defaultValue the default
srv_getClientSetup()
srv_getClientVO()
srv_getClientVersion()
srv_getFormattedRemoteCredentials()
classmethod srv_getMonitor()
srv_getRemoteAddress()

Get the address of the remote peer.

Returns:Address of remote peer.
srv_getRemoteCredentials()

Get the credentials of the remote peer.

Returns:Credentials dictionary of remote peer.
classmethod srv_getServiceName()
srv_getTransportID()
classmethod srv_getURL()
classmethod srv_msgCreate(msgName)
srv_msgReply(msgObj)
classmethod srv_msgSend(trid, msgObj)
transfer_bulkFromClient(bulkId, token, bulkSize, fileHelper)
transfer_bulkToClient(bulkId, token, fileHelper)
transfer_fromClient(fileId, token, fileSize, fileHelper)
transfer_listBulk(bulkId, token, fileHelper)
transfer_toClient(fileId, token, fileHelper)
types_addProduction = [<type 'basestring'>, <type 'basestring'>]
types_addProductionStep = [<type 'dict'>]
types_addTransformationsToProduction = [[<type 'basestring'>, <type 'int'>], [<type 'basestring'>, <type 'int'>, <type 'list'>], [<type 'basestring'>, <type 'int'>, <type 'list'>]]
types_deleteProduction = [[<type 'basestring'>, <type 'int'>]]
types_echo = [<type 'basestring'>]
types_getProduction = [[<type 'basestring'>, <type 'int'>]]
types_getProductionParameters = [[<type 'basestring'>, <type 'int'>], [<type 'basestring'>, <type 'list'>, <type 'tuple'>]]
types_getProductionStep = [<type 'int'>]
types_getProductionTransformations = []
types_getProductions = []
types_ping = []
types_refreshConfiguration = [<type 'bool'>]
types_setProductionStatus = [[<type 'basestring'>, <type 'int'>], <type 'basestring'>]
types_startProduction = [[<type 'basestring'>, <type 'int'>]]
class DIRAC.ProductionSystem.Service.ProductionManagerHandler.ProductionManagerHandlerBase(handlerInitDict, trid)

Bases: DIRAC.Core.DISET.RequestHandler.RequestHandler

exception ConnectionError(msg)

Bases: exceptions.Exception

__init__(msg)

x.__init__(…) initializes x; see help(type(x)) for signature

args
message
__init__(handlerInitDict, trid)

Constructor

Parameters:
  • handlerInitDict (dictionary) – Information vars for the service
  • trid (object) – Transport to use
auth_ping = ['all']
auth_refreshConfiguration = ['CSAdministrator']
export_addProduction(prodName, prodDescription)
export_addProductionStep(prodStep)
export_addTransformationsToProduction(prodName, transIDs, parentTransIDs)
export_deleteProduction(prodName)
static export_echo(data)

This method is used for testing performance of the service

Parameters:data (str) – data to be sent back to the caller
Returns:S_OK, Value is the input data
export_getProduction(prodName)
export_getProductionParameters(prodName, parameters)
export_getProductionStep(stepID)
export_getProductionTransformations(prodName, condDict=None, older=None, newer=None, timeStamp='CreationTime', orderAttribute=None, limit=None, offset=None)
export_getProductions(condDict=None, older=None, newer=None, timeStamp='CreationDate', orderAttribute=None, limit=None, offset=None)
export_ping()
static export_refreshConfiguration(fromMaster)

Force refreshing the configuration data

Parameters:fromMaster (bool) – flag to refresh from the master configuration service
export_setProductionStatus(prodName, status)
export_startProduction(prodName)
classmethod getCSOption(optionName, defaultValue=False)

Get an option from the CS section of the services

Returns:Value for serviceSection/optionName in the CS being defaultValue the default
getRemoteAddress()

Get the address of the remote peer.

Returns:Address of remote peer.
getRemoteCredentials()

Get the credentials of the remote peer.

Returns:Credentials dictionary of remote peer.
initialize()

Initialize this instance of the handler (to be overwritten)

setDatabase(oDatabase)
srv_disconnect(trid=None)
classmethod srv_disconnectClient(trid)
srv_getActionTuple()
classmethod srv_getCSOption(optionName, defaultValue=False)

Get an option from the CS section of the services

Returns:Value for serviceSection/optionName in the CS being defaultValue the default
srv_getClientSetup()
srv_getClientVO()
srv_getClientVersion()
srv_getFormattedRemoteCredentials()
classmethod srv_getMonitor()
srv_getRemoteAddress()

Get the address of the remote peer.

Returns:Address of remote peer.
srv_getRemoteCredentials()

Get the credentials of the remote peer.

Returns:Credentials dictionary of remote peer.
classmethod srv_getServiceName()
srv_getTransportID()
classmethod srv_getURL()
classmethod srv_msgCreate(msgName)
srv_msgReply(msgObj)
classmethod srv_msgSend(trid, msgObj)
transfer_bulkFromClient(bulkId, token, bulkSize, fileHelper)
transfer_bulkToClient(bulkId, token, fileHelper)
transfer_fromClient(fileId, token, fileSize, fileHelper)
transfer_listBulk(bulkId, token, fileHelper)
transfer_toClient(fileId, token, fileHelper)
types_addProduction = [<type 'basestring'>, <type 'basestring'>]
types_addProductionStep = [<type 'dict'>]
types_addTransformationsToProduction = [[<type 'basestring'>, <type 'int'>], [<type 'basestring'>, <type 'int'>, <type 'list'>], [<type 'basestring'>, <type 'int'>, <type 'list'>]]
types_deleteProduction = [[<type 'basestring'>, <type 'int'>]]
types_echo = [<type 'basestring'>]
types_getProduction = [[<type 'basestring'>, <type 'int'>]]
types_getProductionParameters = [[<type 'basestring'>, <type 'int'>], [<type 'basestring'>, <type 'list'>, <type 'tuple'>]]
types_getProductionStep = [<type 'int'>]
types_getProductionTransformations = []
types_getProductions = []
types_ping = []
types_refreshConfiguration = [<type 'bool'>]
types_setProductionStatus = [[<type 'basestring'>, <type 'int'>], <type 'basestring'>]
types_startProduction = [[<type 'basestring'>, <type 'int'>]]
DIRAC.ProductionSystem.Service.ProductionManagerHandler.initializeProductionManagerHandler(serviceInfo)