Package org.shoal.adapter.store.commands
Class SizeRequestCommand<K,V>
- java.lang.Object
-
- org.shoal.ha.cache.impl.command.Command
-
- org.shoal.adapter.store.commands.SizeRequestCommand<K,V>
-
- All Implemented Interfaces:
Serializable
public class SizeRequestCommand<K,V> extends Command
- Author:
- Mahesh Kannan
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SizeRequestCommand()SizeRequestCommand(String targetInstanceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanbeforeTransmit()voidexecute(String initiator)intgetResult()protected booleanisArtificialKey()StringtoString()-
Methods inherited from class org.shoal.ha.cache.impl.command.Command
captureState, getCommandManager, getDataStoreContext, getKey, getKeyMappingInfo, getName, getOpcode, getTargetName, initialize, onFailure, onSuccess, prepareTransmit, setKey, setTargetName
-
-
-
-
Constructor Detail
-
SizeRequestCommand
public SizeRequestCommand()
-
SizeRequestCommand
public SizeRequestCommand(String targetInstanceName)
-
-
Method Detail
-
beforeTransmit
protected boolean beforeTransmit()
- Specified by:
beforeTransmitin classCommand
-
execute
public void execute(String initiator) throws DataStoreException
- Specified by:
executein classCommand- Throws:
DataStoreException
-
getResult
public int getResult()
-
isArtificialKey
protected boolean isArtificialKey()
- Overrides:
isArtificialKeyin classCommand
-
-