GOCDB2CSAgent

This module provides GOCDB2CSAgent code.

The agent is used to synchronize information between GOCDB and DIRAC configuration System (CS)

class DIRAC.ConfigurationSystem.Agent.GOCDB2CSAgent.GOCDB2CSAgent(*args, **kwargs)

Bases: DIRAC.Core.Base.AgentModule.AgentModule

Class to retrieve information about service endpoints from GOCDB and update configuration stored by CS

am_Enabled()
am_checkStopAgentFile()
am_createStopAgentFile()
am_disableMonitoring()
am_getBasePath()
am_getControlDirectory()
am_getCyclesDone()
am_getMaxCycles()
am_getModuleParam(optionName)
am_getOption(optionName, defaultValue=None)
am_getPollingTime()
am_getShifterProxyLocation()
am_getStopAgentFile()
am_getWatchdogTime()
am_getWorkDirectory()
am_go()
am_initialize(*initArgs)
am_monitoringEnabled()
am_removeStopAgentFile()
am_secureCall(functor, args=(), name=False)
am_setModuleParam(optionName, value)
am_setOption(optionName, value)
am_stopExecution()
beginExecution()
endExecution()
execute()

Execute GOCDB queries according to the function map and user request (options in configuration).

finalize()
initialize()

Run at the agent initialization (normally every 500 cycles)

updatePerfSONARConfiguration()

Get current status of perfSONAR endpoints from GOCDB and update CS configuration accordingly.