org.shoal.adapter.store.commands
Class StoreableTouchCommand<K,V extends org.glassfish.ha.store.api.Storeable>

java.lang.Object
  extended by org.shoal.ha.cache.impl.command.Command<K,V>
      extended by org.shoal.adapter.store.commands.StoreableTouchCommand<K,V>

public class StoreableTouchCommand<K,V extends org.glassfish.ha.store.api.Storeable>
extends Command<K,V>

Author:
Mahesh Kannan

Field Summary
 
Fields inherited from class org.shoal.ha.cache.impl.command.Command
dsc
 
Constructor Summary
StoreableTouchCommand()
           
StoreableTouchCommand(K k, long version, long accessTime, long maxIdleTime)
           
 
Method Summary
protected  StoreableTouchCommand<K,V> createNewInstance()
           
 void execute(java.lang.String initiator)
           
 java.lang.String getKeyMappingInfo()
           
 void readCommandPayload(ReplicationInputStream ris)
           
protected  void writeCommandPayload(ReplicationOutputStream ros)
           
 
Methods inherited from class org.shoal.ha.cache.impl.command.Command
getCommandManager, getDataStoreContext, getName, getOpcode, getTargetName, initialize, prepareToExecute, prepareTransmit, selectReplicaInstance, setTargetName, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreableTouchCommand

public StoreableTouchCommand()

StoreableTouchCommand

public StoreableTouchCommand(K k,
                             long version,
                             long accessTime,
                             long maxIdleTime)
Method Detail

createNewInstance

protected StoreableTouchCommand<K,V> createNewInstance()
Specified by:
createNewInstance in class Command<K,V extends org.glassfish.ha.store.api.Storeable>

writeCommandPayload

protected void writeCommandPayload(ReplicationOutputStream ros)
                            throws java.io.IOException
Specified by:
writeCommandPayload in class Command<K,V extends org.glassfish.ha.store.api.Storeable>
Throws:
java.io.IOException

readCommandPayload

public void readCommandPayload(ReplicationInputStream ris)
                        throws java.io.IOException
Specified by:
readCommandPayload in class Command<K,V extends org.glassfish.ha.store.api.Storeable>
Throws:
java.io.IOException

execute

public void execute(java.lang.String initiator)
             throws DataStoreException
Specified by:
execute in class Command<K,V extends org.glassfish.ha.store.api.Storeable>
Throws:
DataStoreException

getKeyMappingInfo

public java.lang.String getKeyMappingInfo()
Overrides:
getKeyMappingInfo in class Command<K,V extends org.glassfish.ha.store.api.Storeable>


Copyright © 2010. All Rights Reserved.