org.shoal.ha.cache.impl.store
Class SimpleStoreableDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.util.SimpleMetadata>

java.lang.Object
  extended by org.shoal.ha.cache.impl.store.DataStoreEntryUpdater<K,V>
      extended by org.shoal.ha.cache.impl.store.SimpleStoreableDataStoreEntryUpdater<K,V>

public class SimpleStoreableDataStoreEntryUpdater<K,V extends org.glassfish.ha.store.util.SimpleMetadata>
extends DataStoreEntryUpdater<K,V>

Author:
Mahesh Kannan

Field Summary
 
Fields inherited from class org.shoal.ha.cache.impl.store.DataStoreEntryUpdater
_logger, ctx
 
Constructor Summary
SimpleStoreableDataStoreEntryUpdater()
           
 
Method Summary
 LoadResponseCommand<K,V> createLoadResponseCommand(DataStoreEntry<K,V> entry, K k, long minVersion)
           
 SaveCommand<K,V> createSaveCommand(DataStoreEntry<K,V> entry, K k, V v)
           
 void executeSave(DataStoreEntry<K,V> entry, SaveCommand<K,V> cmd)
           
 void executeTouch(DataStoreEntry<K,V> entry, TouchCommand<K,V> touchCmd)
           
 V extractVFrom(LoadResponseCommand<K,V> cmd)
           
 byte[] getState(V v)
           
 V getV(DataStoreEntry<K,V> entry)
           
 
Methods inherited from class org.shoal.ha.cache.impl.store.DataStoreEntryUpdater
captureState, deserializeV, initialize, printEntryInfo, updateMetaInfoInDataStoreEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStoreableDataStoreEntryUpdater

public SimpleStoreableDataStoreEntryUpdater()
Method Detail

createSaveCommand

public SaveCommand<K,V> createSaveCommand(DataStoreEntry<K,V> entry,
                                          K k,
                                          V v)
Specified by:
createSaveCommand in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.util.SimpleMetadata>

extractVFrom

public V extractVFrom(LoadResponseCommand<K,V> cmd)
                                                                  throws DataStoreException
Specified by:
extractVFrom in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.util.SimpleMetadata>
Throws:
DataStoreException

createLoadResponseCommand

public LoadResponseCommand<K,V> createLoadResponseCommand(DataStoreEntry<K,V> entry,
                                                          K k,
                                                          long minVersion)
Specified by:
createLoadResponseCommand in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.util.SimpleMetadata>

executeSave

public void executeSave(DataStoreEntry<K,V> entry,
                        SaveCommand<K,V> cmd)
Specified by:
executeSave in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.util.SimpleMetadata>

executeTouch

public void executeTouch(DataStoreEntry<K,V> entry,
                         TouchCommand<K,V> touchCmd)
                  throws DataStoreException
Specified by:
executeTouch in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.util.SimpleMetadata>
Throws:
DataStoreException

getV

public V getV(DataStoreEntry<K,V> entry)
                                                          throws DataStoreException
Specified by:
getV in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.util.SimpleMetadata>
Throws:
DataStoreException

getState

public byte[] getState(V v)
                throws DataStoreException
Specified by:
getState in class DataStoreEntryUpdater<K,V extends org.glassfish.ha.store.util.SimpleMetadata>
Throws:
DataStoreException


Copyright © 2012. All Rights Reserved.