com.bigdata.service
Class MetadataIndexCache

java.lang.Object
  extended by com.bigdata.service.AbstractIndexCache<IMetadataIndex>
      extended by com.bigdata.service.MetadataIndexCache
Type Parameters:
T -

public class MetadataIndexCache
extends AbstractIndexCache<IMetadataIndex>

Concrete implementation for IMetadataIndex views.

Version:
$Id: MetadataIndexCache.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
protected static String ERR_NO_METADATA_SERVICE
          Text for an exception thrown when the metadata service has not been discovered.
 
Fields inherited from class com.bigdata.service.AbstractIndexCache
INFO, log
 
Constructor Summary
MetadataIndexCache(AbstractScaleOutFederation fed, int capacity, long timeout)
           
 
Method Summary
protected  MetadataIndex.MetadataIndexMetadata getMetadataIndexMetadata(String name, long timestamp)
          Return the metadata for the metadata index itself.
protected  IMetadataIndex newView(String name, long timestamp)
          Method is invoked on a cache miss and returns a view of the described index.
 
Methods inherited from class com.bigdata.service.AbstractIndexCache
dropIndexFromCache, getIndex, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERR_NO_METADATA_SERVICE

protected static final transient String ERR_NO_METADATA_SERVICE
Text for an exception thrown when the metadata service has not been discovered.

See Also:
Constant Field Values
Constructor Detail

MetadataIndexCache

public MetadataIndexCache(AbstractScaleOutFederation fed,
                          int capacity,
                          long timeout)
Method Detail

newView

protected IMetadataIndex newView(String name,
                                 long timestamp)
Description copied from class: AbstractIndexCache
Method is invoked on a cache miss and returns a view of the described index.

Specified by:
newView in class AbstractIndexCache<IMetadataIndex>
Returns:
The index view -or- null if the described index does not exist.

getMetadataIndexMetadata

protected MetadataIndex.MetadataIndexMetadata getMetadataIndexMetadata(String name,
                                                                       long timestamp)
Return the metadata for the metadata index itself.

Note: This method always reads through!

Parameters:
name - The name of the scale-out index.
timestamp -
Returns:
The metadata for the metadata index or null iff no scale-out index is registered by that name at that timestamp.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.