Package thredds.server.catalog
Class ConfigCatalogCache
java.lang.Object
thredds.server.catalog.ConfigCatalogCache
- All Implemented Interfaces:
CatalogReader
Keep a cache of ConfigCatalog objects.
Uses guava com.google.common.cache.
If cache miss, call ConfigCatalogBuilder
- Since:
- 3/21/2015
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFromAbsolutePath(String catalogFullPath) voidvoidbooleanvoidput(String catKey, ConfigCatalog cat) static ConfigCatalogreadCatalog(String catalogFullPath) static ConfigCatalogreadCatalog(String catalogFullPath, String context) voidsetRootCatalogKeys(List<String> rootCatalogKeys)
-
Constructor Details
-
ConfigCatalogCache
public ConfigCatalogCache() -
ConfigCatalogCache
-
-
Method Details
-
init
-
put
- Throws:
IOException
-
invalidateAll
public void invalidateAll() -
getFromAbsolutePath
- Specified by:
getFromAbsolutePathin interfaceCatalogReader- Throws:
IOException
-
get
- Throws:
IOException
-
readCatalog
- Throws:
IOException
-
readCatalog
- Throws:
IOException
-
setRootCatalogKeys
-
getRootCatalogKeys
-
isRoot
-