public class MoveCommand extends AbstractDataCommand implements WriteCommand
Cache.move(org.jboss.cache.Fqn, org.jboss.cache.Fqn)| Modifier and Type | Field and Description |
|---|---|
protected GlobalTransaction |
globalTransaction |
protected static org.apache.commons.logging.Log |
log |
static int |
METHOD_ID |
protected Notifier |
notifier |
protected Fqn |
to |
protected static boolean |
trace |
dataContainer, fqn| Constructor and Description |
|---|
MoveCommand() |
MoveCommand(Fqn from,
Fqn to) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
GlobalTransaction |
getGlobalTransaction() |
Object[] |
getParameters()
Basic versions of these methods
|
Fqn |
getTo() |
int |
hashCode() |
void |
initialize(Notifier notifier,
DataContainer dataContainer) |
Object |
perform(InvocationContext ctx)
Moves a node, from fqn to to, and returns null.
|
void |
setGlobalTransaction(GlobalTransaction globalTransaction)
Sets a GlobalTransaction on this command.
|
void |
setParameters(int commandId,
Object[] args)
Basic versions of these methods
|
String |
toString() |
getFqn, initializeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFqnpublic static final int METHOD_ID
protected static final org.apache.commons.logging.Log log
protected static final boolean trace
protected Notifier notifier
protected Fqn to
protected GlobalTransaction globalTransaction
public void initialize(Notifier notifier, DataContainer dataContainer)
public GlobalTransaction getGlobalTransaction()
getGlobalTransaction in interface WriteCommandpublic void setGlobalTransaction(GlobalTransaction globalTransaction)
WriteCommandsetGlobalTransaction in interface WriteCommandglobalTransaction - global transaction to setpublic Object perform(InvocationContext ctx)
perform in interface ReplicableCommandctx - invocation contextpublic Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandacceptVisitor in interface VisitableCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic Fqn getTo()
public int getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandpublic Object[] getParameters()
AbstractDataCommandgetParameters in interface ReplicableCommandgetParameters in class AbstractDataCommandpublic void setParameters(int commandId,
Object[] args)
AbstractDataCommandsetParameters 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 AbstractDataCommandCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.