Class VClassGroupCache

  • All Implemented Interfaces:
    SearchIndexer.Listener

    public class VClassGroupCache
    extends Object
    implements SearchIndexer.Listener
    This is a cache of classgroups with classes. Each class should have a count of individuals. These counts are cached so they don't have to be recomputed. The cache is updated asynchronously by the thread RebuildGroupCacheThread. A synchronous rebuild can be performed with VClassGroupCache.doSynchronousRebuild() This class should handle the condition where the search engine is not available. It will not throw an exception but it will return a empty list of classes or class groups. VClassGroupCache.doSynchronousRebuild() and the RebuildGroupCacheThread will try to connect to the search engine a couple of times and then give up. As of VIVO release 1.4, the counts come from the search index. If the search index is not built or if there were problems building the index, the class counts from VClassGroupCache will be incorrect.