PathFinder

Collection of utilities for finding paths in the CS

DIRAC.ConfigurationSystem.Client.PathFinder.divideFullName(entityName)
DIRAC.ConfigurationSystem.Client.PathFinder.getAgentSection(agentName, agentTuple=False, setup=False)
DIRAC.ConfigurationSystem.Client.PathFinder.getComponentSection(componentName, componentTuple=False, setup=False, componentCategory='Services')

Function returns the path to the component.

Parameters
  • componentName (str) – Component name prefixed by the system in which it is placed. e.g. ‘WorkloadManagement/SandboxStoreHandler’

  • componentTuple (tuple) – Path of the componenent already divided e.g. (‘WorkloadManagement’, ‘SandboxStoreHandler’)

  • setup (str) – Name of the setup.

  • componentCategory (str) – Category of the component, it can be: ‘Agents’, ‘Services’, ‘Executors’ or ‘Databases’.

Return str

Complete path to the component

Raises

RuntimeException – If in the componentName - the system part does not correspond to any known system in DIRAC.

Example

getComponentSection(‘WorkloadManagement/SandboxStoreHandler’, False,False,’Services’)

DIRAC.ConfigurationSystem.Client.PathFinder.getDIRACSetup()
DIRAC.ConfigurationSystem.Client.PathFinder.getDatabaseSection(dbName, dbTuple=False, setup=False)
DIRAC.ConfigurationSystem.Client.PathFinder.getExecutorSection(executorName, executorTuple=False, setup=False)
DIRAC.ConfigurationSystem.Client.PathFinder.getGatewayURLs(serviceName='')
DIRAC.ConfigurationSystem.Client.PathFinder.getServiceFailoverURL(serviceName, serviceTuple=False, setup=False)
DIRAC.ConfigurationSystem.Client.PathFinder.getServiceSection(serviceName, serviceTuple=False, setup=False)
DIRAC.ConfigurationSystem.Client.PathFinder.getServiceURL(serviceName, serviceTuple=False, setup=False)

Generate url.

Parameters
  • serviceName – Name of service, like ‘Framework/Service’.

  • serviceTuple – (optional) also name of service but look like (‘Framework’, ‘Service’).

  • setup (str) – DIRAC setup name, can be defined in dirac.cfg

Returns

complete url. e.g. dips://some-domain:3424/Framework/Service

DIRAC.ConfigurationSystem.Client.PathFinder.getSystemInstance(systemName, setup=False)
DIRAC.ConfigurationSystem.Client.PathFinder.getSystemSection(serviceName, serviceTuple=False, instance=False, setup=False)
DIRAC.ConfigurationSystem.Client.PathFinder.getSystemURLSection(serviceName, serviceTuple=False, setup=False)