public class RemoveNodeCommand extends AbstractVersionedDataCommand
Cache.removeNode(org.jboss.cache.Fqn)
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
static int |
METHOD_ID |
protected Fqn |
parentFqn |
protected NodeSPI |
targetNode |
protected static boolean |
trace |
static int |
VERSIONED_METHOD_ID |
dataVersion, globalTransaction, notifier
dataContainer, fqn
Constructor and Description |
---|
RemoveNodeCommand() |
RemoveNodeCommand(GlobalTransaction globalTransaction,
Fqn fqn) |
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.
|
Object[] |
getParameters()
Basic versions of these methods
|
int |
hashCode() |
boolean |
isSkipSendingNodeEvents() |
protected boolean |
isVersionedId(int id) |
Object |
perform(InvocationContext ctx)
Removes the node referenced by the specified Fqn.
|
protected void |
recursivelyMarkAsRemoved(NodeSPI node,
InvocationContext ctx)
Recursively marks a node as removed.
|
void |
setParameters(int commandId,
Object[] args)
Basic versions of these methods
|
void |
setSkipSendingNodeEvents(boolean skipSendingNodeEvents) |
String |
toString() |
getDataVersion, getGlobalTransaction, initialize, isVersioned, peekVersioned, setDataVersion, setGlobalTransaction
getFqn, initialize
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFqn
public static final int METHOD_ID
public static final int VERSIONED_METHOD_ID
protected static final org.apache.commons.logging.Log log
protected static final boolean trace
protected Fqn parentFqn
protected NodeSPI targetNode
public RemoveNodeCommand(GlobalTransaction globalTransaction, Fqn fqn)
public RemoveNodeCommand()
public Object perform(InvocationContext ctx)
ctx
- invocation contextprotected void recursivelyMarkAsRemoved(NodeSPI node, InvocationContext ctx)
node
- Node to markctx
- Invocation contextpublic Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic boolean isSkipSendingNodeEvents()
public int getCommandId()
ReplicableCommand
public Object[] getParameters()
AbstractDataCommand
getParameters
in interface ReplicableCommand
getParameters
in class AbstractVersionedDataCommand
public void setParameters(int commandId, Object[] args)
AbstractDataCommand
setParameters
in interface ReplicableCommand
setParameters
in class AbstractVersionedDataCommand
commandId
- 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 AbstractVersionedDataCommand
public int hashCode()
hashCode
in class AbstractVersionedDataCommand
protected boolean isVersionedId(int id)
isVersionedId
in class AbstractVersionedDataCommand
public void setSkipSendingNodeEvents(boolean skipSendingNodeEvents)
public String toString()
toString
in class AbstractDataCommand
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.