ServiceInterfaceBase

Service interface is the service which provide config for client and synchronize Controller/Worker servers

class DIRAC.ConfigurationSystem.private.ServiceInterfaceBase.ServiceInterfaceBase(sURL)

Bases: object

Service interface is the service which provide config for client and synchronize Controller/Worker servers

__init__(sURL)
forceGlobalUpdate()

Force updating configuration of all the registered services

Returns:

S_OK (needed for DISET return call)

forceWorkersUpdate()

Force updating configuration on all the Worker configuration servers

Returns:

Nothing

getCommitHistory()
getCompressedConfigurationData()
getVersion()
getVersionContents(date)
isMaster()
publishSlaveServer(sWorkerURL)

Called by the Worker server via service, it register a new Worker server

Parameters:

sWorkerURL – url of Worker server

updateConfiguration(sBuffer, committer='', updateVersionOption=False)

Update the controller configuration with the newly received changes

Parameters:
  • sBuffer (str) – newly received configuration data

  • committer (str) – the user name of the committer

  • updateVersionOption (bool) – flag to update the current configuration version

Returns:

S_OK/S_ERROR of the write-to-disk of the new configuration