示例#1
0
    def forceRefresh(self, fromMaster=False):
        """ Force refresh

        :param bool fromMaster: refresh from master

        :return: S_OK()/S_ERROR()
    """
        return gRefresher.forceRefresh(fromMaster=fromMaster)
示例#2
0
 def syncRemoteConfiguration( self, strict = False ):
   """
   Force a Resync with Configuration Server
   Under normal conditions this is triggered by an access to any configuration data
   """
   if self.componentName == "Configuration/Server" :
     if gConfigurationData.isMaster():
       gLogger.info( "Starting Master Configuration Server" )
       gRefresher.disable()
       return S_OK()
   retDict = gRefresher.forceRefresh()
   if not retDict['OK']:
     gLogger.error( "Can't update from any server", retDict[ 'Message' ] )
     if strict:
       return retDict
   return S_OK()
示例#3
0
 def syncRemoteConfiguration(self, strict=False):
     """
 Force a Resync with Configuration Server
 Under normal conditions this is triggered by an access to any configuration data
 """
     if self.componentName == "Configuration/Server":
         if gConfigurationData.isMaster():
             gLogger.info("Starting Master Configuration Server")
             gRefresher.disable()
             return S_OK()
     retDict = gRefresher.forceRefresh()
     if not retDict['OK']:
         gLogger.error("Can't update from any server", retDict['Message'])
         if strict:
             return retDict
     return S_OK()
示例#4
0
#!/usr/bin/env python
""" refresh CS
"""

from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from DIRAC.Core.Base import Script
Script.parseCommandLine()

from DIRAC.ConfigurationSystem.private.Refresher import gRefresher
res = gRefresher.forceRefresh()
if not res['OK']:
    print(res['Message'])
 def forceRefresh( self ):
   return gRefresher.forceRefresh()
示例#6
0
 def forceRefresh( self, fromMaster = False ):
   return gRefresher.forceRefresh( fromMaster = fromMaster )
示例#7
0
 def forceRefresh( self, fromMaster = False ):
   return gRefresher.forceRefresh( fromMaster = fromMaster )
示例#8
0
 def forceRefresh( self ):
   return gRefresher.forceRefresh()
示例#9
0
#!/usr/bin/env python
""" refresh CS
"""

from DIRAC.Core.Base import Script
Script.parseCommandLine()

from DIRAC.ConfigurationSystem.private.Refresher import gRefresher
res = gRefresher.forceRefresh()
if not res['OK']:
  print res['Message']