Class MasterManager

java.lang.Object
ecmwf.ecpds.master.MasterManager

public final class MasterManager extends Object
The Class MasterManager.
  • Constructor Details

    • MasterManager

      public MasterManager()
  • Method Details

    • isReady

      public static boolean isReady()
      Checks if is ready.
      Returns:
      true, if is ready
    • getDB

      public static DataBaseInterface getDB() throws DataBaseException
      Gets the db.
      Returns:
      the db
      Throws:
      DataBaseException - the data base exception
    • getMI

      public static ManagementInterface getMI() throws MasterException
      Gets the mi.
      Returns:
      the mi
      Throws:
      MasterException - the master exception
    • getAI

      public static DataAccessInterface getAI() throws MasterException
      Gets the ai.
      Returns:
      the ai
      Throws:
      MasterException - the master exception
    • getDI

      public static DataAccessInterface getDI() throws MasterException
      Gets the di.
      Returns:
      the di
      Throws:
      MasterException - the master exception
    • getDestinationCaches

      public static Collection<DestinationCache> getDestinationCaches()
      Gets the monitoring caches.
      Returns:
      the monitoring caches
    • getMonitoringCache

      protected static DestinationCache getMonitoringCache(String destinationName) throws MasterException
      Gets the monitoring cache.
      Parameters:
      destinationName - the destination name
      Returns:
      the monitoring cache
      Throws:
      MasterException - the master exception
    • getECUser

      protected static ECUser getECUser(String ecuserName)
      Gets the EC user.
      Parameters:
      ecuserName - the ecuser name
      Returns:
      the EC user
    • updateCache

      protected static void updateCache(DestinationSchedulerCache destinationSchedulerCache)
      Update cache.
      Parameters:
      destinationSchedulerCache - the destination scheduler cache
    • updateCache

      protected static void updateCache(Alias alias)
      Update cache.
      Parameters:
      alias - the alias
    • updateCache

      protected static void updateCache(Host host)
      Update cache.
      Parameters:
      host - the host
    • updateCache

      protected static void updateCache(Destination destination)
      Update cache.
      Parameters:
      destination - the destination
    • updateCache

      protected static void updateCache(Association association)
      Update cache.
      Parameters:
      association - the association
    • updateCache

      protected static void updateCache(Object object)
      Update cache.
      Parameters:
      object - the object
    • removeFromCache

      protected static void removeFromCache(Alias alias)
      Removes the from cache.
      Parameters:
      alias - the alias
    • removeFromCache

      protected static void removeFromCache(Host host)
      Removes the from cache.
      Parameters:
      host - the host
    • removeFromCache

      protected static void removeFromCache(Destination destination)
      Removes the from cache.
      Parameters:
      destination - the destination
    • removeFromCache

      protected static void removeFromCache(Association association)
      Removes the from cache.
      Parameters:
      association - the association
    • removeFromCache

      protected static void removeFromCache(Object object)
      Removes the from cache.
      Parameters:
      object - the object
    • insertInCache

      protected static void insertInCache(Alias alias)
      Insert in cache.
      Parameters:
      alias - the alias
    • insertInCache

      protected static void insertInCache(Association association)
      Insert in cache.
      Parameters:
      association - the association
    • insertInCache

      protected static void insertInCache(DestinationCache destinationCache)
      Insert in cache.
      Parameters:
      destinationCache - the destination cache
    • insertInCache

      protected static void insertInCache(Object object)
      Insert in cache.
      Parameters:
      object - the object
    • getCatUrls

      protected static List<CatUrl> getCatUrls()
      Gets the cat urls.
      Returns:
      the cat urls
    • resetCaches

      protected static void resetCaches()
      Reset caches.
    • getRoot

      public static String getRoot()
      Gets the root.
      Returns:
      the root