MonitoringHandler

Commits monitoring information using gServiceInterface singleton

class DIRAC.FrameworkSystem.Service.MonitoringHandler.MonitoringHandler(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']
export_commitMarks(sourceId, activitiesDict, componentExtraInfo={})

Adds marks for activities

export_deleteActivities(deletionList)

Deletes a list of activities

export_deleteActivity(sourceId, activityId)

Deletes an activity

export_deleteView(viewId)

Deletes a view

export_deleteViews(viewList)

Deletes a view

static export_echo(data)

This method used for testing the performance of a service

export_getActivities()

Returns a list of defined activities

export_getActivitiesContents(selDict, sortList, start, limit)

Retrieve the contents of the activity db

export_getComponentsStatus(condDict)
export_getViews(onlyStatic=True)

Returns a list of stored views

export_ping()
export_plotView(viewRequest)

Generates plots for a view

export_queryField(field, definedFields)

Returns available values for a field., given a set of fields and values,

export_registerActivities(sourceDict, activitiesDict, componentExtraInfo={})

Registers new activities

export_saveView(viewName, viewDescriptionStub)

Saves a view

export_tryView(fromSecs, toSecs, viewDescriptionStub)

Generates plots based on a DEncoded view description

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_commitMarks = [<type 'int'>, <type 'dict'>]
types_deleteActivities = [<type 'list'>]
types_deleteActivity = [<type 'int'>, <type 'int'>]
types_deleteView = [<type 'int'>]
types_deleteViews = [<type 'list'>]
types_echo = [<type 'basestring'>]
types_getActivities = []
types_getActivitiesContents = [<type 'dict'>, (<type 'list'>, <type 'tuple'>), (<type 'int'>, <type 'long'>), (<type 'int'>, <type 'long'>)]
types_getComponentsStatus = [<type 'dict'>]
types_getViews = []
types_ping = []
types_plotView = [<type 'dict'>]
types_queryField = [<type 'basestring'>, <type 'dict'>]
types_registerActivities = [<type 'dict'>, <type 'dict'>]
types_saveView = [<type 'basestring'>, <type 'basestring'>]
types_tryView = [<type 'int'>, <type 'int'>, <type 'basestring'>]
DIRAC.FrameworkSystem.Service.MonitoringHandler.initializeMonitoringHandler(serviceInfo)