DataIntegrityHandler

mod:DataIntegrityHandler
class DIRAC.DataManagementSystem.Service.DataIntegrityHandler.DataIntegrityHandler(handlerInitDict, trid)

Bases: DIRAC.Core.DISET.RequestHandler.RequestHandler

class DataIntegrityHandler

Implementation of the Data Integrity service in the DISET framework.

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']
static export_changeProblematicPrognosis(fileID, newPrognosis)

Change the prognosis for the supplied file

static export_echo(data)

This method used for testing the performance of a service

static export_getDistinctPrognosis()

Get a list of the distinct prognosis from the IntegrityDB

static export_getProblematic()

Get the next problematic to resolve from the IntegrityDB

static export_getProblematicsSummary()

Get a summary from the Problematics table from the IntegrityDB

static export_getPrognosisProblematics(prognosis)

Get problematic files from the problematics table of the IntegrityDB

static export_getTransformationProblematics(transID)

Get the problematics for a given transformation

static export_incrementProblematicRetry(fileID)

Update the retry count for supplied file ID.

static export_insertProblematic(source, fileMetadata)

Insert problematic files into the problematics table of the IntegrityDB

export_ping()
static export_removeProblematic(fileID)

Remove the file with the supplied FileID from the database

static export_setProblematicStatus(fileID, status)

Update the status of the problematics with the provided fileID

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)

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_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_changeProblematicPrognosis = []
types_echo = [<type 'basestring'>]
types_getDistinctPrognosis = []
types_getProblematic = []
types_getProblematicsSummary = []
types_getPrognosisProblematics = [(<type 'str'>, <type 'unicode'>)]
types_getTransformationProblematics = [[<type 'int'>, <type 'long'>]]
types_incrementProblematicRetry = [[<type 'int'>, <type 'long'>]]
types_insertProblematic = [(<type 'str'>, <type 'unicode'>), <type 'dict'>]
types_ping = []
types_removeProblematic = [[<type 'int'>, <type 'long'>, <type 'list'>]]
types_setProblematicStatus = [[<type 'int'>, <type 'long'>], (<type 'str'>, <type 'unicode'>)]
DIRAC.DataManagementSystem.Service.DataIntegrityHandler.initializeDataIntegrityHandler(serviceInfo)

Check that we can connect to the DB and that the tables are properly created or updated