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

__init__(*args, **kwargs)

c’tor

am_Enabled()
am_checkStopAgentFile()
am_createStopAgentFile()
am_disableMonitoring()
am_getBasePath()
am_getControlDirectory()
am_getCyclesDone()
am_getMaxCycles()
am_getModuleParam(optionName)
am_getOption(optionName, defaultValue=None)

Gets an option from the agent’s configuration section. The section will be a subsection of the /Systems section in the CS.

am_getPollingTime()
am_getShifterProxyLocation()
am_getStopAgentFile()
am_getWatchdogTime()
am_getWorkDirectory()
am_go()
am_initialize(*initArgs)

Common initialization for all the agents.

This is executed every time an agent (re)starts. This is called by the AgentReactor, should not be overridden.

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.