|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.commands.read.AbstractDataCommand
org.jboss.cache.commands.read.GetKeyValueCommand
public class GetKeyValueCommand
Implements functionality defined by Cache.get(String, Object)
| Field Summary | |
|---|---|
static int |
METHOD_ID
|
| Fields inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
|---|
dataContainer, fqn |
| Constructor Summary | |
|---|---|
GetKeyValueCommand()
|
|
GetKeyValueCommand(Fqn fqn,
Object key,
boolean sendNodeEvent)
|
|
| Method Summary | |
|---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor. |
boolean |
equals(Object o)
|
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming. |
Object |
getKey()
|
Object[] |
getParameters()
Basic versions of these methods |
int |
hashCode()
|
void |
initialize(DataContainer dataContainer,
Notifier notifier)
|
boolean |
isSendNodeEvent()
|
Object |
perform(InvocationContext ctx)
Retrieves the value stored under a specified key in a node referenced by the specified Fqn. |
void |
setKey(Object key)
|
void |
setParameters(int commandId,
Object[] args)
Basic versions of these methods |
String |
toString()
|
| Methods inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
|---|
getFqn, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int METHOD_ID
| Constructor Detail |
|---|
public GetKeyValueCommand(Fqn fqn,
Object key,
boolean sendNodeEvent)
public GetKeyValueCommand()
| Method Detail |
|---|
public void initialize(DataContainer dataContainer,
Notifier notifier)
public Object perform(InvocationContext ctx)
ctx - invocation context
public Object acceptVisitor(InvocationContext ctx,
Visitor visitor)
throws Throwable
VisitableCommand
ctx - invocation contextvisitor - visitor to accept
Throwable - in the event of problemspublic Object getKey()
public boolean isSendNodeEvent()
public void setKey(Object key)
public int getCommandId()
ReplicableCommand
public Object[] getParameters()
AbstractDataCommand
getParameters in interface ReplicableCommandgetParameters in class AbstractDataCommand
public void setParameters(int commandId,
Object[] args)
AbstractDataCommand
setParameters in interface ReplicableCommandsetParameters in class AbstractDataCommandcommandId - command id to set. This is usually unused but *could* be used in the event of a command having multiple IDs, such as PutKeyValueCommand.args - object array of argspublic boolean equals(Object o)
equals in class AbstractDataCommandpublic int hashCode()
hashCode in class AbstractDataCommandpublic String toString()
toString in class AbstractDataCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||