CacheFeederAgent

CacheFeederAgent

This agent feeds the Cache tables with the outputs of the cache commands.

class DIRAC.ResourceStatusSystem.Agent.CacheFeederAgent.CacheFeederAgent(*args, **kwargs)

Bases: DIRAC.Core.Base.AgentModule.AgentModule

The CacheFeederAgent feeds the cache tables for the client and the accounting. It runs periodically a set of commands, and stores it’s results on the tables.

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()

Just executes, via loadCommand, the commands in self.commands one after the other

finalize()
initialize()

Define the commands to be executed, and instantiate the clients that will be used.

loadCommand(commandModule, commandDict)

Loads and executes commands.

Parameters:
  • commandModule (basestring) – Name of the command (e.g. ‘Downtime’)
  • commandDict (dict) – dictionary of {‘CommandClass’:{arguments}}