|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.servlets.cache.CoverInfoCache
public class CoverInfoCache
Class CoverInfoCache
| Field Summary | |
|---|---|
protected static HashMap |
_coversPerHost
A mapping of hostnames to (Array)Lists of CoverInfo objects. |
| Constructor Summary | |
|---|---|
CoverInfoCache()
|
|
| Method Summary | |
|---|---|
protected static ArrayList |
_fillCache(String host)
Fills the cache for the indicated host with the info from the coverdb. |
static ArrayList |
ensureCoversLoaded(String host)
Ensures the list of covers for a certain host is loaded. |
static boolean |
exists(String host,
String coverName)
|
static CoverInfo |
get(String host,
String coverName)
Gets a CoverInfo object from this cache. |
static List |
getAll(String host)
Gets a list of all CoverInfo objects for a certain host. |
static void |
put(String host,
CoverInfo coverInfo)
Puts a (new) cover into the CoverInfoCache and the underlying coverdb. |
static void |
refresh(String host)
Refreshes (throws away) the cached info for a certain host. |
static void |
remove(String host,
CoverInfo coverInfo)
Removes a cover from the CoverInfoCache and the coverdb. |
static int |
searchCover(List covers,
String name)
Searches a cover in the supplied list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static HashMap _coversPerHost
| Constructor Detail |
|---|
public CoverInfoCache()
| Method Detail |
|---|
public static void refresh(String host)
host - the name of the server to refresh the cache forpublic static ArrayList ensureCoversLoaded(String host)
host - the name of the server to ensure the loaded list for
public static boolean exists(String host,
String coverName)
public static CoverInfo get(String host,
String coverName)
public static List getAll(String host)
public static void put(String host,
CoverInfo coverInfo)
public static void remove(String host,
CoverInfo coverInfo)
protected static ArrayList _fillCache(String host)
public static int searchCover(List covers,
String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||