org.shoal.adapter.store.commands
Class BroadcastLoadRequestCommand<K,V>

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

public class BroadcastLoadRequestCommand<K,V>
extends Command<K,V>

Author:
Mahesh Kannan

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

Constructor Detail

BroadcastLoadRequestCommand

public BroadcastLoadRequestCommand()

BroadcastLoadRequestCommand

public BroadcastLoadRequestCommand(K key)
Method Detail

createNewInstance

protected BroadcastLoadRequestCommand<K,V> createNewInstance()
Specified by:
createNewInstance in class Command<K,V>

writeCommandPayload

protected void writeCommandPayload(ReplicationOutputStream ros)
                            throws java.io.IOException
Specified by:
writeCommandPayload in class Command<K,V>
Throws:
java.io.IOException

readCommandPayload

public void readCommandPayload(ReplicationInputStream ris)
                        throws java.io.IOException
Specified by:
readCommandPayload in class Command<K,V>
Throws:
java.io.IOException

getRespondingInstanceName

public java.lang.String getRespondingInstanceName()

execute

public void execute(java.lang.String initiator)
Specified by:
execute in class Command<K,V>

getResult

public V getResult(long waitFor,
                   java.util.concurrent.TimeUnit unit)
            throws DataStoreException
Throws:
DataStoreException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.