public abstract class Command<K,V> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected DataStoreContext<K,V> |
dsc |
protected String |
targetInstanceName |
| Modifier | Constructor and Description |
|---|---|
protected |
Command(byte opcode) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
beforeTransmit() |
protected static byte[] |
captureState(Object obj) |
abstract void |
execute(String initiator) |
protected CommandManager<K,V> |
getCommandManager() |
protected DataStoreContext<K,V> |
getDataStoreContext() |
K |
getKey() |
String |
getKeyMappingInfo() |
String |
getName() |
byte |
getOpcode() |
String |
getTargetName() |
void |
initialize(DataStoreContext<K,V> rs) |
protected boolean |
isArtificialKey() |
void |
onFailure() |
void |
onSuccess() |
void |
prepareTransmit(DataStoreContext<K,V> ctx) |
protected void |
setKey(K k) |
protected void |
setTargetName(String val) |
String |
toString() |
protected transient DataStoreContext<K,V> dsc
protected transient String targetInstanceName
public final void initialize(DataStoreContext<K,V> rs)
protected final void setKey(K k)
public final K getKey()
protected final DataStoreContext<K,V> getDataStoreContext()
protected final CommandManager<K,V> getCommandManager()
public String getTargetName()
public final byte getOpcode()
protected void setTargetName(String val)
public void prepareTransmit(DataStoreContext<K,V> ctx) throws IOException
IOExceptionprotected static byte[] captureState(Object obj) throws DataStoreException
DataStoreExceptionpublic String getKeyMappingInfo()
public final String getName()
public abstract void execute(String initiator) throws DataStoreException
DataStoreExceptionpublic void onSuccess()
public void onFailure()
protected boolean isArtificialKey()
protected abstract boolean beforeTransmit()
throws IOException
IOExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.