org.gcube.application.framework.search.library.cache
Class CollectionsFieldsCache

java.lang.Object
  extended by org.gcube.application.framework.search.library.cache.CollectionsFieldsCache

public class CollectionsFieldsCache
extends Object


Nested Class Summary
protected static class CollectionsFieldsCache.CleanCacheThread
           
 
Field Summary
protected static CollectionsFieldsCache collectionsFieldsCache
           
protected  HashMap<String,HashMap<CollectionInfo,ArrayList<CollectionInfo>>> scopesInfosCache
           
protected static Thread thread
           
 
Constructor Summary
protected CollectionsFieldsCache()
           
 
Method Summary
protected  void finalize()
           
 HashMap<CollectionInfo,ArrayList<CollectionInfo>> getCollectionsInfoForScope(String scope, boolean refresh)
           
static CollectionsFieldsCache getInstance()
           
 HashMap<CollectionInfo,ArrayList<CollectionInfo>> refreshCollectionInfoForScope(String scope, boolean refresh)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thread

protected static Thread thread

collectionsFieldsCache

protected static CollectionsFieldsCache collectionsFieldsCache

scopesInfosCache

protected HashMap<String,HashMap<CollectionInfo,ArrayList<CollectionInfo>>> scopesInfosCache
Constructor Detail

CollectionsFieldsCache

protected CollectionsFieldsCache()
Method Detail

getInstance

public static CollectionsFieldsCache getInstance()

getCollectionsInfoForScope

public HashMap<CollectionInfo,ArrayList<CollectionInfo>> getCollectionsInfoForScope(String scope,
                                                                                    boolean refresh)

refreshCollectionInfoForScope

public HashMap<CollectionInfo,ArrayList<CollectionInfo>> refreshCollectionInfoForScope(String scope,
                                                                                       boolean refresh)

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2013. All Rights Reserved.