org.terracotta.offheapstore.disk.storage
Class PersistentSplitStorageEngine<K,V>

java.lang.Object
  extended by org.terracotta.offheapstore.storage.SplitStorageEngine<K,V>
      extended by 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>

Author:
Chris Dennis

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
PersistentSplitStorageEngine(PersistentHalfStorageEngine<K> keyStorageEngine, PersistentHalfStorageEngine<V> valueStorageEngine)
           
 
Method Summary
 void bootstrap(ObjectInput input)
           
 void close()
           
static
<K,V> Factory<PersistentSplitStorageEngine<K,V>>
createPersistentFactory(Factory<? extends PersistentHalfStorageEngine<K>> keyFactory, Factory<? extends PersistentHalfStorageEngine<V>> valueFactory)
           
 void flush()
           
 void persist(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 IOException
Specified by:
flush in interface Persistent
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Persistent
Throws:
IOException

persist

public void persist(ObjectOutput output)
             throws IOException
Specified by:
persist in interface Persistent
Throws:
IOException

bootstrap

public void bootstrap(ObjectInput input)
               throws IOException
Specified by:
bootstrap in interface Persistent
Throws:
IOException


Copyright © 2016. All Rights Reserved.