PilotsLoggingHandler

PilotsLoggingHandler is the implementation of the PilotsLogging service

The following methods are available in the Service interface

addPilotsLogging() getPilotsLogging deletePilotsLogging()

class DIRAC.WorkloadManagementSystem.Service.PilotsLoggingHandler.PilotsLoggingHandler(handlerInitDict, trid)

Bases: DIRAC.Core.DISET.RequestHandler.RequestHandler

Server side functions for Pilots Logging service

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']
consumerSet = None
classmethod consumingCallback(headers, message)

Callback function for the MQ Consumer, called for every new message and inserting it into database.

Parameters:
  • headers – Headers of MQ message (not used)
  • message – Message represented as a dictionary
export_addPilotsLogging(pilotUUID, timestamp, source, phase, status, messageContent)

Add new Pilots Logging entry

Parameters:
  • pilotUUID – Pilot reference
  • status – Pilot status
  • minorStatus – Additional status information
  • timeStamp – Date and time of status event
  • source – Source of statu information
export_deletePilotsLogging(pilotUUID)

Delete all Logging entries for Pilot

Parameters:pilotUUID – Pilot reference
static export_echo(data)

This method used for testing the performance of a service

export_getPilotsLogging(pilotUUID)

Get all Logging entries for Pilot

Parameters:pilotUUID – Pilot reference
export_ping()
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)

classmethod initializeHandler(serviceInfoDict)

Initialization of Pilots Logging service

pilotsLoggingDB = None
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_addPilotsLogging = [<type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>, <type 'basestring'>]
types_deletePilotsLogging = [(<type 'basestring'>, <type 'list'>)]
types_echo = [<type 'basestring'>]
types_getPilotsLogging = [<type 'basestring'>]
types_ping = []