def __init__(self, sURL):
     self.sURL = sURL
     gLogger.info("Initializing Configuration Service", "URL is %s" % sURL)
     self.__modificationsIgnoreMask = ["/DIRAC/Configuration/Servers", "/DIRAC/Configuration/Version"]
     gConfigurationData.setAsService()
     if not gConfigurationData.isMaster():
         gLogger.info("Starting configuration service as slave")
         gRefresher.autoRefreshAndPublish(self.sURL)
     else:
         gLogger.info("Starting configuration service as master")
         gRefresher.disable()
         self.__loadConfigurationData()
         self.dAliveSlaveServers = {}
         self._launchCheckSlaves()
 def __init__( self, sURL ):
   threading.Thread.__init__( self )
   self.sURL = sURL
   gLogger.info( "Initializing Configuration Service", "URL is %s" % sURL )
   self.__modificationsIgnoreMask = [ '/DIRAC/Configuration/Servers', '/DIRAC/Configuration/Version' ]
   gConfigurationData.setAsService()
   if not gConfigurationData.isMaster():
     gLogger.info( "Starting configuration service as slave" )
     gRefresher.autoRefreshAndPublish( self.sURL )
   else:
     gLogger.info( "Starting configuration service as master" )
     gRefresher.disable()
     self.__loadConfigurationData()
     self.dAliveSlaveServers = {}
     self.__launchCheckSlaves()
Beispiel #3
0
  def __init__(self, sURL):
    threading.Thread.__init__(self)
    self.sURL = sURL
    gLogger.info("Initializing Configuration Service", "URL is %s" % sURL)
    self.__modificationsIgnoreMask = ['/DIRAC/Configuration/Servers', '/DIRAC/Configuration/Version']
    gConfigurationData.setAsService()
    if not gConfigurationData.isMaster():
      gLogger.info("Starting configuration service as slave")
      gRefresher.autoRefreshAndPublish(self.sURL)
    else:
      gLogger.info("Starting configuration service as master")
      gRefresher.disable()
      self.__loadConfigurationData()
      self.dAliveSlaveServers = {}
      self.__launchCheckSlaves()

    self.__updateResultDict = {"Successful": {}, "Failed": {}}