Class PersistentSplitStorageEngine<K,V>
- java.lang.Object
-
- org.terracotta.offheapstore.storage.SplitStorageEngine<K,V>
-
- org.terracotta.offheapstore.disk.storage.PersistentSplitStorageEngine<K,V>
-
- All Implemented Interfaces:
Persistent,PersistentStorageEngine<K,V>,StorageEngine<K,V>
public class PersistentSplitStorageEngine<K,V> extends SplitStorageEngine<K,V> implements PersistentStorageEngine<K,V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.terracotta.offheapstore.storage.StorageEngine
StorageEngine.Owner
-
-
Field Summary
-
Fields inherited from class org.terracotta.offheapstore.storage.SplitStorageEngine
keyStorageEngine, valueStorageEngine
-
-
Constructor Summary
Constructors Constructor Description PersistentSplitStorageEngine(PersistentHalfStorageEngine<K> keyStorageEngine, PersistentHalfStorageEngine<V> valueStorageEngine)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbootstrap(java.io.ObjectInput input)voidclose()static <K,V>
Factory<PersistentSplitStorageEngine<K,V>>createPersistentFactory(Factory<? extends PersistentHalfStorageEngine<K>> keyFactory, Factory<? extends PersistentHalfStorageEngine<V>> valueFactory)voidflush()voidpersist(java.io.ObjectOutput output)-
Methods inherited from class org.terracotta.offheapstore.storage.SplitStorageEngine
attachedMapping, bind, clear, createFactory, destroy, encoding, equalsKey, equalsValue, freeMapping, getAllocatedMemory, getDataSize, getOccupiedMemory, getVitalMemory, invalidateCache, keyEncoding, readKey, readValue, shrink, toString, valueEncoding, writeMapping
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.terracotta.offheapstore.storage.StorageEngine
attachedMapping, bind, clear, destroy, equalsKey, equalsValue, freeMapping, getAllocatedMemory, getDataSize, getOccupiedMemory, getVitalMemory, invalidateCache, readKey, readValue, shrink, writeMapping
-
-
-
-
Constructor Detail
-
PersistentSplitStorageEngine
public PersistentSplitStorageEngine(PersistentHalfStorageEngine<K> keyStorageEngine, PersistentHalfStorageEngine<V> valueStorageEngine)
-
-
Method Detail
-
createPersistentFactory
public static <K,V> Factory<PersistentSplitStorageEngine<K,V>> createPersistentFactory(Factory<? extends PersistentHalfStorageEngine<K>> keyFactory, Factory<? extends PersistentHalfStorageEngine<V>> valueFactory)
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacePersistent- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacePersistent- Throws:
java.io.IOException
-
persist
public void persist(java.io.ObjectOutput output) throws java.io.IOException- Specified by:
persistin interfacePersistent- Throws:
java.io.IOException
-
bootstrap
public void bootstrap(java.io.ObjectInput input) throws java.io.IOException- Specified by:
bootstrapin interfacePersistent- Throws:
java.io.IOException
-
-