public class NonStopStoreWrapper extends Object implements TerracottaStore
CLUSTER_COHERENT, NODE_COHERENT| Constructor and Description |
|---|
NonStopStoreWrapper(Callable<TerracottaStore> clusteredStoreCreator,
ToolkitInstanceFactory toolkitInstanceFactory,
Ehcache cache,
TerracottaStoreInitializationService initializationService) |
public NonStopStoreWrapper(Callable<TerracottaStore> clusteredStoreCreator, ToolkitInstanceFactory toolkitInstanceFactory, Ehcache cache, TerracottaStoreInitializationService initializationService)
public Object getInternalContext()
getInternalContext in interface Storepublic WriteBehind createWriteBehind()
createWriteBehind in interface TerracottaStorepublic boolean bufferFull()
bufferFull in interface Storepublic void removeStoreListener(StoreListener arg0)
removeStoreListener in interface Storepublic void waitUntilClusterCoherent()
throws UnsupportedOperationException,
TerracottaNotRunningException,
InterruptedException
waitUntilClusterCoherent in interface StoreUnsupportedOperationExceptionTerracottaNotRunningExceptionInterruptedExceptionpublic static void main(String[] args)
public Element unsafeGet(Object arg0)
unsafeGet in interface TerracottaStorepublic void quickClear()
quickClear in interface TerracottaStorepublic int quickSize()
quickSize in interface TerracottaStorepublic Set getLocalKeys()
getLocalKeys in interface TerracottaStorepublic CacheConfiguration.TransactionalMode getTransactionalMode()
getTransactionalMode in interface TerracottaStorepublic boolean put(Element arg0) throws CacheException
put in interface StoreCacheExceptionpublic void putAll(Collection arg0) throws CacheException
putAll in interface StoreCacheExceptionpublic Element putIfAbsent(Element arg0) throws NullPointerException
putIfAbsent in interface StoreNullPointerExceptionpublic void flush()
throws IOException
flush in interface StoreIOExceptionpublic boolean containsKey(Object arg0)
containsKey in interface Storepublic boolean replace(Element arg0, Element arg1, ElementValueComparator arg2) throws NullPointerException, IllegalArgumentException
replace in interface StoreNullPointerExceptionIllegalArgumentExceptionpublic Element replace(Element arg0) throws NullPointerException
replace in interface StoreNullPointerExceptionpublic void removeAll()
throws CacheException
removeAll in interface StoreCacheExceptionpublic void removeAll(Collection arg0)
public Element removeElement(Element arg0, ElementValueComparator arg1) throws NullPointerException
removeElement in interface StoreNullPointerExceptionpublic boolean containsKeyInMemory(Object arg0)
containsKeyInMemory in interface Storepublic boolean containsKeyOffHeap(Object arg0)
containsKeyOffHeap in interface Storepublic long getInMemorySizeInBytes()
getInMemorySizeInBytes in interface Storepublic int getInMemorySize()
getInMemorySize in interface Storepublic long getOffHeapSizeInBytes()
getOffHeapSizeInBytes in interface Storepublic int getOffHeapSize()
getOffHeapSize in interface Storepublic Map getAllQuiet(Collection arg0)
getAllQuiet in interface Storepublic Map getAll(Collection arg0)
public void setNodeCoherent(boolean arg0)
throws UnsupportedOperationException,
TerracottaNotRunningException
setNodeCoherent in interface StoreUnsupportedOperationExceptionTerracottaNotRunningExceptionpublic void setAttributeExtractors(Map arg0)
setAttributeExtractors in interface Storepublic boolean hasAbortedSizeOf()
hasAbortedSizeOf in interface Storepublic int getOnDiskSize()
getOnDiskSize in interface Storepublic void setInMemoryEvictionPolicy(Policy arg0)
setInMemoryEvictionPolicy in interface Storepublic boolean putWithWriter(Element arg0, CacheWriterManager arg1) throws CacheException
putWithWriter in interface StoreCacheExceptionpublic void recalculateSize(Object arg0)
recalculateSize in interface Storepublic boolean isCacheCoherent()
isCacheCoherent in interface Storepublic long getOnDiskSizeInBytes()
getOnDiskSizeInBytes in interface Storepublic int getTerracottaClusteredSize()
getTerracottaClusteredSize in interface Storepublic void expireElements()
expireElements in interface Storepublic boolean isNodeCoherent()
throws TerracottaNotRunningException
isNodeCoherent in interface StoreTerracottaNotRunningExceptionpublic void addStoreListener(StoreListener arg0)
addStoreListener in interface Storepublic boolean isClusterCoherent()
throws TerracottaNotRunningException
isClusterCoherent in interface StoreTerracottaNotRunningExceptionpublic Policy getInMemoryEvictionPolicy()
getInMemoryEvictionPolicy in interface Storepublic Element removeWithWriter(Object arg0, CacheWriterManager arg1) throws CacheException
removeWithWriter in interface StoreCacheExceptionpublic Set<Attribute> getSearchAttributes()
getSearchAttributes in interface Storepublic Attribute getSearchAttribute(String arg0)
getSearchAttribute in interface Storepublic boolean containsKeyOnDisk(Object arg0)
containsKeyOnDisk in interface Storepublic Results executeQuery(StoreQuery arg0) throws SearchException
executeQuery in interface StoreSearchExceptionpublic void notifyCacheEventListenersChanged()
notifyCacheEventListenersChanged in interface TerracottaStoreCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.