GOCDB2CSAgent

This module provides GOCDB2CSAgent code.

The agent is used to synchronize information between GOCDB and DIRAC configuration System (CS) Right now it only adds perfosonar endpoints

The following options can be set for the GOCDB2CSAgent.

GOCDB2CSAgent options
GOCDB2CSAgent
{
  #Time between cycles in seconds
  PollingTime = 14400
  # Flag to turn to False if you want this agent to write in the CS
  DryRun = True
  # if False, disable the updating of perfSONAR endpoints from GOCDB
  UpdatePerfSONARS = True
}
class DIRAC.ConfigurationSystem.Agent.GOCDB2CSAgent.GOCDB2CSAgent(*args, **kwargs)

Bases: 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_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_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.