PublisherHandler

PublisherHandler

This service has been built to provide the RSS web views with all the information they need. NO OTHER COMPONENT THAN Web controllers should make use of it.

class DIRAC.ResourceStatusSystem.Service.PublisherHandler.PublisherHandler(*args, **kwargs)

Bases: DIRAC.Core.DISET.RequestHandler.RequestHandler

RPCServer used to deliver data to the web portal.

exception ConnectionError(msg)

Bases: exceptions.Exception

__init__(msg)

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

args
message
__init__(*args, **kwargs)

Constructor

auth_ping = ['all']
static export_echo(data)

This method used for testing the performance of a service

export_getCachedDowntimes(element, elementType, name, severity)
export_getDowntimes(element, elementType, name)
export_getElementHistory(element, name, elementType, statusType)

Returns element history from ResourceStatusDB

export_getElementPolicies(element, name, statusType)

Returns policies for a given element

export_getElementStatuses(element, name, elementType, statusType, status, tokenOwner)

Returns element statuses from the ResourceStatusDB

export_getFreeDiskSpace(site, token)

Exporting to web the

export_getNodeStatuses()
export_getSites()

Returns list of all sites considered by RSS

Returns:S_OK( [ sites ] ) | S_ERROR
export_getSitesResources(siteNames)

Returns dictionary with SEs and CEs for the given site(s). If siteNames is None, all sites are taken into account.

Returns:S_OK( { site1 : { ces : [ ces ], ‘ses’ : [ ses ] },… } ) | S_ERROR
export_getTree(elementType, elementName)

Given an element type and name, finds its parent site and returns all descendants of that site.

export_ping()
export_setStatus(element, name, statusType, status, elementType, username, lastCheckTime)
export_setToken(element, name, statusType, token, elementType, username, lastCheckTime)
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.
getSite(elementType, elementName)

Given an element name, return its site

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_echo = [<type 'basestring'>]
types_getCachedDowntimes = [(<type 'basestring'>, <type 'NoneType'>, <type 'list'>), (<type 'basestring'>, <type 'NoneType'>, <type 'list'>), (<type 'basestring'>, <type 'NoneType'>, <type 'list'>), (<type 'basestring'>, <type 'NoneType'>, <type 'list'>)]
types_getDowntimes = [<type 'basestring'>, <type 'basestring'>, <type 'basestring'>]
types_getElementHistory = [<type 'basestring'>, (<type 'basestring'>, <type 'list'>, <type 'NoneType'>), (<type 'basestring'>, <type 'list'>, <type 'NoneType'>), (<type 'basestring'>, <type 'list'>, <type 'NoneType'>)]
types_getElementPolicies = [<type 'basestring'>, (<type 'basestring'>, <type 'list'>, <type 'NoneType'>), (<type 'basestring'>, <type 'list'>, <type 'NoneType'>)]
types_getElementStatuses = [<type 'basestring'>, (<type 'basestring'>, <type 'list'>, <type 'NoneType'>), (<type 'basestring'>, <type 'list'>, <type 'NoneType'>), (<type 'basestring'>, <type 'list'>, <type 'NoneType'>), (<type 'basestring'>, <type 'list'>, <type 'NoneType'>), (<type 'basestring'>, <type 'list'>, <type 'NoneType'>)]
types_getFreeDiskSpace = [(<type 'basestring'>, <type 'NoneType'>, <type 'list'>), (<type 'basestring'>, <type 'NoneType'>, <type 'list'>)]
types_getNodeStatuses = []
types_getSites = []
types_getSitesResources = [(<type 'basestring'>, <type 'list'>, <type 'NoneType'>)]
types_getTree = [<type 'basestring'>, <type 'basestring'>]
types_ping = []
types_setStatus = [<type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>]
types_setToken = [<type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>]
DIRAC.ResourceStatusSystem.Service.PublisherHandler.initializePublisherHandler(_serviceInfo)

Handler initialization in the usual horrible way.