Class MasterManager
java.lang.Object
ecmwf.ecpds.master.MasterManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataAccessInterface
getAI()
Gets the ai.Gets the cat urls.static DataBaseInterface
getDB()
Gets the db.static Collection
<DestinationCache> Gets the monitoring caches.static DataAccessInterface
getDI()
Gets the di.protected static ECUser
Gets the EC user.static ManagementInterface
getMI()
Gets the mi.protected static DestinationCache
getMonitoringCache
(String destinationName) Gets the monitoring cache.static String
getRoot()
Gets the root.protected static void
insertInCache
(Alias alias) Insert in cache.protected static void
insertInCache
(Association association) Insert in cache.protected static void
insertInCache
(DestinationCache destinationCache) Insert in cache.protected static void
insertInCache
(Object object) Insert in cache.static boolean
isReady()
Checks if is ready.protected static void
removeFromCache
(Alias alias) Removes the from cache.protected static void
removeFromCache
(Association association) Removes the from cache.protected static void
removeFromCache
(Destination destination) Removes the from cache.protected static void
removeFromCache
(Host host) Removes the from cache.protected static void
removeFromCache
(Object object) Removes the from cache.protected static void
Reset caches.protected static void
updateCache
(Alias alias) Update cache.protected static void
updateCache
(Association association) Update cache.protected static void
updateCache
(Destination destination) Update cache.protected static void
updateCache
(Host host) Update cache.protected static void
updateCache
(DestinationSchedulerCache destinationSchedulerCache) Update cache.protected static void
updateCache
(Object object) Update cache.
-
Constructor Details
-
MasterManager
public MasterManager()
-
-
Method Details
-
isReady
public static boolean isReady()Checks if is ready.- Returns:
- true, if is ready
-
getDB
Gets the db.- Returns:
- the db
- Throws:
DataBaseException
- the data base exception
-
getMI
Gets the mi.- Returns:
- the mi
- Throws:
MasterException
- the master exception
-
getAI
Gets the ai.- Returns:
- the ai
- Throws:
MasterException
- the master exception
-
getDI
Gets the di.- Returns:
- the di
- Throws:
MasterException
- the master exception
-
getDestinationCaches
Gets the monitoring caches.- Returns:
- the monitoring caches
-
getMonitoringCache
Gets the monitoring cache.- Parameters:
destinationName
- the destination name- Returns:
- the monitoring cache
- Throws:
MasterException
- the master exception
-
getECUser
-
updateCache
Update cache.- Parameters:
destinationSchedulerCache
- the destination scheduler cache
-
updateCache
-
updateCache
-
updateCache
Update cache.- Parameters:
destination
- the destination
-
updateCache
Update cache.- Parameters:
association
- the association
-
updateCache
-
removeFromCache
Removes the from cache.- Parameters:
alias
- the alias
-
removeFromCache
Removes the from cache.- Parameters:
host
- the host
-
removeFromCache
Removes the from cache.- Parameters:
destination
- the destination
-
removeFromCache
Removes the from cache.- Parameters:
association
- the association
-
removeFromCache
Removes the from cache.- Parameters:
object
- the object
-
insertInCache
-
insertInCache
Insert in cache.- Parameters:
association
- the association
-
insertInCache
Insert in cache.- Parameters:
destinationCache
- the destination cache
-
insertInCache
-
getCatUrls
-
resetCaches
protected static void resetCaches()Reset caches. -
getRoot
-