WMSAdministratorHandler

This is a DIRAC WMS administrator interface.

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(**kwargs)

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

classmethod export_clearPilots(**kwargs)
classmethod export_countPilots(**kwargs)

Set the pilot agent status

classmethod export_deletePilots(**kwargs)
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(**kwargs)

Set the pilot agent status

classmethod export_getCurrentPilotCounters(**kwargs)

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(**kwargs)

Get the info about a given pilot job reference

classmethod export_getPilotLoggingInfo(**kwargs)

Get the pilot logging info for the Grid job reference

classmethod export_getPilotMonitorSelectors(**kwargs)

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

classmethod export_getPilotMonitorWeb(**kwargs)

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

classmethod export_getPilotOutput(**kwargs)

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

static export_getPilotStatistics(*args, **kwargs)

Get pilot statistics distribution per attribute value with a given selection

classmethod export_getPilotSummary(**kwargs)

Get summary of the status of the LCG Pilot Jobs

classmethod export_getPilotSummaryWeb(**kwargs)

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

classmethod export_getPilots(**kwargs)

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(**kwargs)

Kill the specified pilots

export_ping()
classmethod export_selectPilots(**kwargs)

Select pilots given the selection conditions

classmethod export_setAccountingFlag(**kwargs)

Set the pilot AccountingSent flag

classmethod export_setJobForPilot(**kwargs)

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

classmethod export_setPilotBenchmark(**kwargs)

Set the pilot agent benchmark

export_setPilotStatus(**kwargs)

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(**kwargs)

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'>, <type 'basestring'>)]
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