org.terracotta.modules.ehcache.store.nonstop
Class NonStopStoreWrapper

java.lang.Object
  extended by org.terracotta.modules.ehcache.store.nonstop.NonStopStoreWrapper
All Implemented Interfaces:
Store, TerracottaStore

public class NonStopStoreWrapper
extends Object
implements TerracottaStore


Field Summary
 
Fields inherited from interface net.sf.ehcache.store.Store
CLUSTER_COHERENT, NODE_COHERENT
 
Constructor Summary
NonStopStoreWrapper(Callable<TerracottaStore> clusteredStoreCreator, ToolkitInstanceFactory toolkitInstanceFactory, Ehcache cache, TerracottaStoreInitializationService initializationService)
           
 
Method Summary
 void addStoreListener(StoreListener arg0)
          
 boolean bufferFull()
          
 boolean containsKey(Object arg0)
          
 boolean containsKeyInMemory(Object arg0)
          
 boolean containsKeyOffHeap(Object arg0)
          
 boolean containsKeyOnDisk(Object arg0)
          
 WriteBehind createWriteBehind()
           
 void dispose()
          
 Results executeQuery(StoreQuery arg0)
          
 void expireElements()
          
 void flush()
          
 Element get(Object arg0)
          
 Map getAll(Collection arg0)
          
 Map getAllQuiet(Collection arg0)
          
 Policy getInMemoryEvictionPolicy()
          
 int getInMemorySize()
          
 long getInMemorySizeInBytes()
          
 Object getInternalContext()
          
 List getKeys()
          
 Set getLocalKeys()
          
 Object getMBean()
          
 int getOffHeapSize()
          
 long getOffHeapSizeInBytes()
          
 int getOnDiskSize()
          
 long getOnDiskSizeInBytes()
          
 Element getQuiet(Object arg0)
          
 Attribute getSearchAttribute(String arg0)
          
 int getSize()
          
 Status getStatus()
          
 int getTerracottaClusteredSize()
          
 CacheConfiguration.TransactionalMode getTransactionalMode()
          
 boolean hasAbortedSizeOf()
          
 boolean isCacheCoherent()
          
 boolean isClusterCoherent()
          
 boolean isNodeCoherent()
          
static void main(String[] args)
           
 boolean put(Element arg0)
          
 void putAll(Collection arg0)
          
 Element putIfAbsent(Element arg0)
          
 boolean putWithWriter(Element arg0, CacheWriterManager arg1)
          
 void recalculateSize(Object arg0)
          
 Element remove(Object arg0)
          
 void removeAll()
          
 void removeAll(Collection arg0)
          
 Element removeElement(Element arg0, ElementValueComparator arg1)
          
 void removeStoreListener(StoreListener arg0)
          
 Element removeWithWriter(Object arg0, CacheWriterManager arg1)
          
 Element replace(Element arg0)
          
 boolean replace(Element arg0, Element arg1, ElementValueComparator arg2)
          
 void setAttributeExtractors(Map arg0)
          
 void setInMemoryEvictionPolicy(Policy arg0)
          
 void setNodeCoherent(boolean arg0)
          
 Element unsafeGet(Object arg0)
          
 void waitUntilClusterCoherent()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonStopStoreWrapper

public NonStopStoreWrapper(Callable<TerracottaStore> clusteredStoreCreator,
                           ToolkitInstanceFactory toolkitInstanceFactory,
                           Ehcache cache,
                           TerracottaStoreInitializationService initializationService)
Method Detail

getInternalContext

public Object getInternalContext()

Specified by:
getInternalContext in interface Store

createWriteBehind

public WriteBehind createWriteBehind()
Specified by:
createWriteBehind in interface TerracottaStore

bufferFull

public boolean bufferFull()

Specified by:
bufferFull in interface Store

getMBean

public Object getMBean()

Specified by:
getMBean in interface Store

removeStoreListener

public void removeStoreListener(StoreListener arg0)

Specified by:
removeStoreListener in interface Store

dispose

public void dispose()

Specified by:
dispose in interface Store

waitUntilClusterCoherent

public void waitUntilClusterCoherent()
                              throws UnsupportedOperationException,
                                     TerracottaNotRunningException,
                                     InterruptedException

Specified by:
waitUntilClusterCoherent in interface Store
Throws:
UnsupportedOperationException
TerracottaNotRunningException
InterruptedException

main

public static void main(String[] args)

unsafeGet

public Element unsafeGet(Object arg0)

Specified by:
unsafeGet in interface TerracottaStore

getLocalKeys

public Set getLocalKeys()

Specified by:
getLocalKeys in interface TerracottaStore

getTransactionalMode

public CacheConfiguration.TransactionalMode getTransactionalMode()

Specified by:
getTransactionalMode in interface TerracottaStore

remove

public Element remove(Object arg0)

Specified by:
remove in interface Store

get

public Element get(Object arg0)

Specified by:
get in interface Store

put

public boolean put(Element arg0)
            throws CacheException

Specified by:
put in interface Store
Throws:
CacheException

putAll

public void putAll(Collection arg0)
            throws CacheException

Specified by:
putAll in interface Store
Throws:
CacheException

putIfAbsent

public Element putIfAbsent(Element arg0)
                    throws NullPointerException

Specified by:
putIfAbsent in interface Store
Throws:
NullPointerException

flush

public void flush()
           throws IOException

Specified by:
flush in interface Store
Throws:
IOException

containsKey

public boolean containsKey(Object arg0)

Specified by:
containsKey in interface Store

replace

public boolean replace(Element arg0,
                       Element arg1,
                       ElementValueComparator arg2)
                throws NullPointerException,
                       IllegalArgumentException

Specified by:
replace in interface Store
Throws:
NullPointerException
IllegalArgumentException

replace

public Element replace(Element arg0)
                throws NullPointerException

Specified by:
replace in interface Store
Throws:
NullPointerException

getSize

public int getSize()

Specified by:
getSize in interface Store

removeAll

public void removeAll()
               throws CacheException

Specified by:
removeAll in interface Store
Throws:
CacheException

removeAll

public void removeAll(Collection arg0)

Specified by:
removeAll in interface Store

removeElement

public Element removeElement(Element arg0,
                             ElementValueComparator arg1)
                      throws NullPointerException

Specified by:
removeElement in interface Store
Throws:
NullPointerException

getKeys

public List getKeys()

Specified by:
getKeys in interface Store

containsKeyInMemory

public boolean containsKeyInMemory(Object arg0)

Specified by:
containsKeyInMemory in interface Store

containsKeyOffHeap

public boolean containsKeyOffHeap(Object arg0)

Specified by:
containsKeyOffHeap in interface Store

getInMemorySizeInBytes

public long getInMemorySizeInBytes()

Specified by:
getInMemorySizeInBytes in interface Store

getInMemorySize

public int getInMemorySize()

Specified by:
getInMemorySize in interface Store

getOffHeapSizeInBytes

public long getOffHeapSizeInBytes()

Specified by:
getOffHeapSizeInBytes in interface Store

getOffHeapSize

public int getOffHeapSize()

Specified by:
getOffHeapSize in interface Store

getAllQuiet

public Map getAllQuiet(Collection arg0)

Specified by:
getAllQuiet in interface Store

getAll

public Map getAll(Collection arg0)

Specified by:
getAll in interface Store

setNodeCoherent

public void setNodeCoherent(boolean arg0)
                     throws UnsupportedOperationException,
                            TerracottaNotRunningException

Specified by:
setNodeCoherent in interface Store
Throws:
UnsupportedOperationException
TerracottaNotRunningException

setAttributeExtractors

public void setAttributeExtractors(Map arg0)

Specified by:
setAttributeExtractors in interface Store

hasAbortedSizeOf

public boolean hasAbortedSizeOf()

Specified by:
hasAbortedSizeOf in interface Store

getOnDiskSize

public int getOnDiskSize()

Specified by:
getOnDiskSize in interface Store

setInMemoryEvictionPolicy

public void setInMemoryEvictionPolicy(Policy arg0)

Specified by:
setInMemoryEvictionPolicy in interface Store

putWithWriter

public boolean putWithWriter(Element arg0,
                             CacheWriterManager arg1)
                      throws CacheException

Specified by:
putWithWriter in interface Store
Throws:
CacheException

recalculateSize

public void recalculateSize(Object arg0)

Specified by:
recalculateSize in interface Store

isCacheCoherent

public boolean isCacheCoherent()

Specified by:
isCacheCoherent in interface Store

getOnDiskSizeInBytes

public long getOnDiskSizeInBytes()

Specified by:
getOnDiskSizeInBytes in interface Store

getTerracottaClusteredSize

public int getTerracottaClusteredSize()

Specified by:
getTerracottaClusteredSize in interface Store

expireElements

public void expireElements()

Specified by:
expireElements in interface Store

isNodeCoherent

public boolean isNodeCoherent()
                       throws TerracottaNotRunningException

Specified by:
isNodeCoherent in interface Store
Throws:
TerracottaNotRunningException

addStoreListener

public void addStoreListener(StoreListener arg0)

Specified by:
addStoreListener in interface Store

isClusterCoherent

public boolean isClusterCoherent()
                          throws TerracottaNotRunningException

Specified by:
isClusterCoherent in interface Store
Throws:
TerracottaNotRunningException

getInMemoryEvictionPolicy

public Policy getInMemoryEvictionPolicy()

Specified by:
getInMemoryEvictionPolicy in interface Store

removeWithWriter

public Element removeWithWriter(Object arg0,
                                CacheWriterManager arg1)
                         throws CacheException

Specified by:
removeWithWriter in interface Store
Throws:
CacheException

getSearchAttribute

public Attribute getSearchAttribute(String arg0)

Specified by:
getSearchAttribute in interface Store

containsKeyOnDisk

public boolean containsKeyOnDisk(Object arg0)

Specified by:
containsKeyOnDisk in interface Store

executeQuery

public Results executeQuery(StoreQuery arg0)
                     throws SearchException

Specified by:
executeQuery in interface Store
Throws:
SearchException

getQuiet

public Element getQuiet(Object arg0)

Specified by:
getQuiet in interface Store

getStatus

public Status getStatus()

Specified by:
getStatus in interface Store


Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.