WMSAdministratorHandler

This is a DIRAC WMS administrator interface. It exposes the following methods:

Site mask related methods:
setMask(<site mask>) getMask()
Access to the pilot data:
getWMSStats()
class DIRAC.WorkloadManagementSystem.Service.WMSAdministratorHandler.WMSAdministratorHandler(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']
classmethod export_addPilotTQReference(pilotRef, taskQueueID, ownerDN, ownerGroup, broker='Unknown', gridType='DIRAC', pilotStampDict={})

Add a new pilot job reference

export_allowSite(site, comment='No comment')

Allow the given site in the site mask

export_banSite(site, comment='No comment')

Ban the given site in the site mask

classmethod export_clearMask()

Clear up the entire site mask

export_clearPilots(interval=30, aborted_interval=7)
classmethod export_countPilots(condDict, older=None, newer=None, timeStamp='SubmissionTime')

Set the pilot agent status

export_deletePilots(pilotIDs)
static export_echo(data)

This method used for testing the performance of a service

classmethod export_getAllSiteMaskStatus()

Get all the site parameters in the site mask

classmethod export_getCounters(table, keys, condDict, newer=None, timeStamp='SubmissionTime')

Set the pilot agent status

classmethod export_getCurrentPilotCounters(attrDict={})

Get pilot counters per Status with attrDict selection. Final statuses are given for the last day.

export_getJobPilotOutput(jobID)

Get the pilot job standard output and standard error files for the DIRAC job reference

classmethod export_getPilotInfo(pilotReference)

Get the info about a given pilot job reference

classmethod export_getPilotLoggingInfo(pilotReference)

Get the pilot logging info for the Grid job reference

classmethod export_getPilotMonitorSelectors()

Get all the distinct selector values for the Pilot Monitor web portal page

classmethod export_getPilotMonitorWeb(selectDict, sortList, startItem, maxItems)

Get the summary of the pilot information for a given page in the pilot monitor in a generic format

export_getPilotOutput(pilotReference)

Get the pilot job standard output and standard error files for the Grid job reference

static export_getPilotStatistics(attribute, selectDict)

Get pilot statistics distribution per attribute value with a given selection

classmethod export_getPilotSummary(startdate='', enddate='')

Get summary of the status of the LCG Pilot Jobs

classmethod export_getPilotSummaryWeb(selectDict, sortList, startItem, maxItems)

Get the summary of the pilot information for a given page in the pilot monitor in a generic format

classmethod export_getPilots(jobID)

Get pilot references and their states for : - those pilots submitted for the TQ where job is sitting - (or) the pilots executing/having executed the Job

classmethod export_getSiteMask(siteState='Active')

Get the site mask

classmethod export_getSiteMaskLogging(sites)

Get the site mask logging history

classmethod export_getSiteMaskStatus(sites=None)

Get the site mask of given site(s) with columns ‘site’ and ‘status’ only

classmethod export_getSiteMaskSummary()

Get the mask status for all the configured sites

classmethod export_getSiteSummarySelectors()

Get all the distinct selector values for the site summary web portal page

classmethod export_getSiteSummaryWeb(selectDict, sortList, startItem, maxItems)

Get the summary of the jobs running on sites in a generic format

classmethod export_killPilot(pilotRefList)

Kill the specified pilots

export_ping()
classmethod export_selectPilots(condDict)

Select pilots given the selection conditions

classmethod export_setAccountingFlag(pilotRef, mark='True')

Set the pilot AccountingSent flag

classmethod export_setJobForPilot(jobID, pilotRef, destination=None)

Report the DIRAC job ID which is executed by the given pilot job

classmethod export_setPilotBenchmark(pilotRef, mark)

Set the pilot agent benchmark

export_setPilotStatus(pilotRef, status, destination=None, reason=None, gridSite=None, queue=None)

Set the pilot agent status

export_setSiteMask(siteList)

Set the site mask for matching. The mask is given in a form of Classad string.

classmethod export_storePilotOutput(pilotReference, output, error)

Store the pilot output and error

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_addPilotTQReference = [<type 'list'>, (<type 'int'>, <type 'long'>), <type 'basestring'>, <type 'basestring'>]
types_allowSite = [<type 'basestring'>]
types_banSite = [<type 'basestring'>]
types_clearMask = []
types_clearPilots = [(<type 'int'>, <type 'long'>), (<type 'int'>, <type 'long'>)]
types_countPilots = [<type 'dict'>]
types_deletePilots = [(<type 'list'>, <type 'int'>, <type 'long'>)]
types_echo = [<type 'basestring'>]
types_getAllSiteMaskStatus = []
types_getCounters = [<type 'basestring'>, <type 'list'>, <type 'dict'>]
types_getCurrentPilotCounters = [<type 'dict'>]
types_getJobPilotOutput = [(<type 'basestring'>, <type 'int'>, <type 'long'>)]
types_getPilotInfo = [(<type 'list'>, <type 'basestring'>)]
types_getPilotLoggingInfo = [<type 'basestring'>]
types_getPilotMonitorSelectors = []
types_getPilotMonitorWeb = [<type 'dict'>, <type 'list'>, (<type 'int'>, <type 'long'>), [<type 'int'>, <type 'long'>]]
types_getPilotOutput = [<type 'basestring'>]
types_getPilotStatistics = [<type 'basestring'>, <type 'dict'>]
types_getPilotSummary = []
types_getPilotSummaryWeb = [<type 'dict'>, <type 'list'>, (<type 'int'>, <type 'long'>), [<type 'int'>, <type 'long'>]]
types_getPilots = [(<type 'basestring'>, <type 'int'>, <type 'long'>)]
types_getSiteMask = []
types_getSiteMaskLogging = [(<type 'basestring'>, <type 'list'>)]
types_getSiteMaskStatus = []
types_getSiteMaskSummary = []
types_getSiteSummarySelectors = []
types_getSiteSummaryWeb = [<type 'dict'>, <type 'list'>, (<type 'int'>, <type 'long'>), (<type 'int'>, <type 'long'>)]
types_killPilot = [(<type 'basestring'>, <type 'list'>)]
types_ping = []
types_selectPilots = [<type 'dict'>]
types_setAccountingFlag = [<type 'basestring'>]
types_setJobForPilot = [(<type 'basestring'>, <type 'int'>, <type 'long'>), <type 'basestring'>]
types_setPilotBenchmark = [<type 'basestring'>, <type 'float'>]
types_setPilotStatus = [<type 'basestring'>, <type 'basestring'>]
types_setSiteMask = [<type 'list'>]
types_storePilotOutput = [<type 'basestring'>, <type 'basestring'>, <type 'basestring'>]
DIRAC.WorkloadManagementSystem.Service.WMSAdministratorHandler.initializeWMSAdministratorHandler(serviceInfo)

WMS AdministratorService initialization