SiteInspectorAgent

SiteInspectorAgent

This agent inspect Sites, and evaluates policies that apply.

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

Bases: DIRAC.Core.Base.AgentModule.AgentModule

The SiteInspectorAgent agent is an agent that is used to get the all the site names and trigger PEP to evaluate their status.

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

This is the main method of the agent. It gets the sites from the Database, calculates how many threads should be started and spawns them. Each thread will get a site from the queue until it is empty. At the end, the method will join the queue such that the agent will not terminate a cycle until all sites have been processed.

finalize()
getSitesToBeChecked()

getElementsToBeChecked

This method gets all the site names from the SiteStatus table, after that it get the details of each site (status, name, etc..) and adds them to a queue.

initialize()

Standard initialize.