ServiceInterfaceBase

Service interface is the service which provide config for client and synchronize Master/Slave servers

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

Bases: object

Service interface is the service which provide config for client and synchronize Master/Slave servers

__init__(sURL)
forceGlobalUpdate()

Force updating configuration of all the registered services

Returns:

S_OK (needed for DISET return call)

forceSlavesUpdate()

Force updating configuration on all the slave configuration servers

Returns:

Nothing

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

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

Parameters:

sSlaveURL – url of slave server

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

Update the master 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