@Deprecated public class PessRemoveNodeCommand extends RemoveNodeCommand implements ReversibleCommand
RemoveNodeCommand
which can be rolled back, for use with
pessimistic locking where changes are made directly on the data structures and may need to be reversed.Modifier and Type | Field and Description |
---|---|
protected Map |
originalData
Deprecated.
|
log, METHOD_ID, parentFqn, targetNode, trace, VERSIONED_METHOD_ID
dataVersion, globalTransaction, notifier
dataContainer, fqn
Constructor and Description |
---|
PessRemoveNodeCommand()
Deprecated.
|
PessRemoveNodeCommand(GlobalTransaction globalTransaction,
Fqn fqn)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
perform(InvocationContext ctx)
Deprecated.
Removes the node referenced by the specified Fqn.
|
protected void |
recursivelyMarkAsRemoved(NodeSPI node,
InvocationContext ctx)
Deprecated.
Recursively marks a node as removed.
|
void |
rollback()
Deprecated.
Reverses a command that has already been invoked.
|
acceptVisitor, equals, getCommandId, getParameters, hashCode, isSkipSendingNodeEvents, isVersionedId, setParameters, setSkipSendingNodeEvents, toString
getDataVersion, getGlobalTransaction, initialize, isVersioned, peekVersioned, setDataVersion, setGlobalTransaction
getFqn, initialize
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getGlobalTransaction, setGlobalTransaction
getFqn
acceptVisitor
getCommandId, getParameters, setParameters
protected Map originalData
public PessRemoveNodeCommand(GlobalTransaction globalTransaction, Fqn fqn)
public PessRemoveNodeCommand()
public Object perform(InvocationContext ctx)
RemoveNodeCommand
perform
in interface ReplicableCommand
perform
in class RemoveNodeCommand
ctx
- invocation contextprotected void recursivelyMarkAsRemoved(NodeSPI node, InvocationContext ctx)
RemoveNodeCommand
recursivelyMarkAsRemoved
in class RemoveNodeCommand
node
- Node to markctx
- Invocation contextpublic void rollback()
ReversibleCommand
rollback
in interface ReversibleCommand
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.