org.jboss.cache.commands.legacy.write
Class PessRemoveNodeCommand

java.lang.Object
  extended by org.jboss.cache.commands.read.AbstractDataCommand
      extended by org.jboss.cache.commands.write.AbstractVersionedDataCommand
          extended by org.jboss.cache.commands.write.RemoveNodeCommand
              extended by org.jboss.cache.commands.legacy.write.PessRemoveNodeCommand
All Implemented Interfaces:
DataCommand, ReversibleCommand, ReplicableCommand, VersionedDataCommand, VisitableCommand, WriteCommand

Deprecated. will be removed along with optimistic and pessimistic locking.

@Deprecated
public class PessRemoveNodeCommand
extends RemoveNodeCommand
implements ReversibleCommand

A version of 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.

Since:
3.0
Author:
Manik Surtani (manik AT jboss DOT org)

Field Summary
protected  Map originalData
          Deprecated.  
 
Fields inherited from class org.jboss.cache.commands.write.RemoveNodeCommand
log, METHOD_ID, parentFqn, targetNode, trace, VERSIONED_METHOD_ID
 
Fields inherited from class org.jboss.cache.commands.write.AbstractVersionedDataCommand
dataVersion, globalTransaction, notifier
 
Fields inherited from class org.jboss.cache.commands.read.AbstractDataCommand
dataContainer, fqn
 
Constructor Summary
PessRemoveNodeCommand()
          Deprecated.  
PessRemoveNodeCommand(GlobalTransaction globalTransaction, Fqn fqn)
          Deprecated.  
 
Method Summary
 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.
 
Methods inherited from class org.jboss.cache.commands.write.RemoveNodeCommand
acceptVisitor, equals, getCommandId, getParameters, hashCode, isSkipSendingNodeEvents, isVersionedId, setParameters, setSkipSendingNodeEvents, toString
 
Methods inherited from class org.jboss.cache.commands.write.AbstractVersionedDataCommand
getDataVersion, getGlobalTransaction, initialize, isVersioned, peekVersioned, setDataVersion, setGlobalTransaction
 
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
 
Methods inherited from interface org.jboss.cache.commands.WriteCommand
getGlobalTransaction, setGlobalTransaction
 
Methods inherited from interface org.jboss.cache.commands.DataCommand
getFqn
 
Methods inherited from interface org.jboss.cache.commands.VisitableCommand
acceptVisitor
 
Methods inherited from interface org.jboss.cache.commands.ReplicableCommand
getCommandId, getParameters, setParameters
 

Field Detail

originalData

protected Map originalData
Deprecated. 
Constructor Detail

PessRemoveNodeCommand

public PessRemoveNodeCommand(GlobalTransaction globalTransaction,
                             Fqn fqn)
Deprecated. 

PessRemoveNodeCommand

public PessRemoveNodeCommand()
Deprecated. 
Method Detail

perform

public Object perform(InvocationContext ctx)
Deprecated. 
Description copied from class: RemoveNodeCommand
Removes the node referenced by the specified Fqn.

Specified by:
perform in interface ReplicableCommand
Overrides:
perform in class RemoveNodeCommand
Parameters:
ctx - invocation context
Returns:
arbitrary return value generated by performing this command

recursivelyMarkAsRemoved

protected void recursivelyMarkAsRemoved(NodeSPI node,
                                        InvocationContext ctx)
Deprecated. 
Description copied from class: RemoveNodeCommand
Recursively marks a node as removed.

Overrides:
recursivelyMarkAsRemoved in class RemoveNodeCommand
Parameters:
node - Node to mark
ctx - Invocation context

rollback

public void rollback()
Deprecated. 
Description copied from interface: ReversibleCommand
Reverses a command that has already been invoked.

Important: this method will be invoked at the end of interceptors chain. It should never be called directly from a custom interceptor.

Specified by:
rollback in interface ReversibleCommand


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.