org.jboss.cache.commands
Class PessimisticCommandsFactoryImpl

java.lang.Object
  extended by org.jboss.cache.commands.CommandsFactoryImpl
      extended by org.jboss.cache.commands.OptimisticCommandsFactoryImpl
          extended by org.jboss.cache.commands.PessimisticCommandsFactoryImpl
All Implemented Interfaces:
CommandsFactory

Deprecated. will be removed with possimistic locking

@Deprecated
public class PessimisticCommandsFactoryImpl
extends OptimisticCommandsFactoryImpl

This specific implementation of CommandsFactory specifically creates pessimistic commands where appropriate, with the ability to roll back.

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

Field Summary
 
Fields inherited from class org.jboss.cache.commands.CommandsFactoryImpl
buddyFqnTransformer, buddyManager, cacheSpi, configuration, dataContainer, invoker, notifier, rpcManager, transactionTable, txManager
 
Constructor Summary
PessimisticCommandsFactoryImpl()
          Deprecated.  
 
Method Summary
 ClearDataCommand buildClearDataCommand(GlobalTransaction gtx, Fqn fqn)
          Deprecated.  
 GetChildrenNamesCommand buildGetChildrenNamesCommand(Fqn fqn)
          Deprecated.  
 InvalidateCommand buildInvalidateCommand(Fqn fqn)
          Deprecated.  
 MoveCommand buildMoveCommand(Fqn from, Fqn to)
          Deprecated.  
 PutDataMapCommand buildPutDataMapCommand(GlobalTransaction gtx, Fqn fqn, Map data)
          Deprecated.  
 PutForExternalReadCommand buildPutForExternalReadCommand(GlobalTransaction gtx, Fqn fqn, Object key, Object value)
          Deprecated.  
 PutKeyValueCommand buildPutKeyValueCommand(GlobalTransaction gtx, Fqn fqn, Object key, Object value)
          Deprecated.  
 RemoveKeyCommand buildRemoveKeyCommand(GlobalTransaction tx, Fqn fqn, Object key)
          Deprecated.  
 RemoveNodeCommand buildRemoveNodeCommand(GlobalTransaction gtx, Fqn fqn)
          Deprecated.  
 ReplicableCommand fromStream(int id, Object[] parameters)
          Deprecated. Builds a cache command based on the ID passed in and an object array of parameters
 
Methods inherited from class org.jboss.cache.commands.OptimisticCommandsFactoryImpl
buildCreateNodeCommand, buildEvictFqnCommand, buildGravitateDataCommand
 
Methods inherited from class org.jboss.cache.commands.CommandsFactoryImpl
buildAnnounceBuddyPoolNameCommand, buildAssignToBuddyGroupCommand, buildClusteredGetCommand, buildCommitCommand, buildDataGravitationCleanupCommand, buildExistsNodeCommand, buildGetDataMapCommand, buildGetKeysCommand, buildGetKeyValueCommand, buildGetNodeCommand, buildOptimisticPrepareCommand, buildPrepareCommand, buildPrepareCommand, buildRemoveFromBuddyGroupCommand, buildReplicateCommand, buildReplicateCommand, buildRollbackCommand, buildStateTransferControlCommand, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PessimisticCommandsFactoryImpl

public PessimisticCommandsFactoryImpl()
Deprecated. 
Method Detail

buildGetChildrenNamesCommand

public GetChildrenNamesCommand buildGetChildrenNamesCommand(Fqn fqn)
Deprecated. 
Specified by:
buildGetChildrenNamesCommand in interface CommandsFactory
Overrides:
buildGetChildrenNamesCommand in class CommandsFactoryImpl

buildPutDataMapCommand

public PutDataMapCommand buildPutDataMapCommand(GlobalTransaction gtx,
                                                Fqn fqn,
                                                Map data)
Deprecated. 
Specified by:
buildPutDataMapCommand in interface CommandsFactory
Overrides:
buildPutDataMapCommand in class CommandsFactoryImpl

buildPutKeyValueCommand

public PutKeyValueCommand buildPutKeyValueCommand(GlobalTransaction gtx,
                                                  Fqn fqn,
                                                  Object key,
                                                  Object value)
Deprecated. 
Specified by:
buildPutKeyValueCommand in interface CommandsFactory
Overrides:
buildPutKeyValueCommand in class CommandsFactoryImpl

buildPutForExternalReadCommand

public PutForExternalReadCommand buildPutForExternalReadCommand(GlobalTransaction gtx,
                                                                Fqn fqn,
                                                                Object key,
                                                                Object value)
Deprecated. 
Specified by:
buildPutForExternalReadCommand in interface CommandsFactory
Overrides:
buildPutForExternalReadCommand in class CommandsFactoryImpl

buildRemoveNodeCommand

public RemoveNodeCommand buildRemoveNodeCommand(GlobalTransaction gtx,
                                                Fqn fqn)
Deprecated. 
Specified by:
buildRemoveNodeCommand in interface CommandsFactory
Overrides:
buildRemoveNodeCommand in class CommandsFactoryImpl

buildClearDataCommand

public ClearDataCommand buildClearDataCommand(GlobalTransaction gtx,
                                              Fqn fqn)
Deprecated. 
Specified by:
buildClearDataCommand in interface CommandsFactory
Overrides:
buildClearDataCommand in class CommandsFactoryImpl

buildRemoveKeyCommand

public RemoveKeyCommand buildRemoveKeyCommand(GlobalTransaction tx,
                                              Fqn fqn,
                                              Object key)
Deprecated. 
Specified by:
buildRemoveKeyCommand in interface CommandsFactory
Overrides:
buildRemoveKeyCommand in class CommandsFactoryImpl

buildMoveCommand

public MoveCommand buildMoveCommand(Fqn from,
                                    Fqn to)
Deprecated. 
Specified by:
buildMoveCommand in interface CommandsFactory
Overrides:
buildMoveCommand in class CommandsFactoryImpl

buildInvalidateCommand

public InvalidateCommand buildInvalidateCommand(Fqn fqn)
Deprecated. 
Specified by:
buildInvalidateCommand in interface CommandsFactory
Overrides:
buildInvalidateCommand in class OptimisticCommandsFactoryImpl

fromStream

public ReplicableCommand fromStream(int id,
                                    Object[] parameters)
Deprecated. 
Description copied from interface: CommandsFactory
Builds a cache command based on the ID passed in and an object array of parameters

Specified by:
fromStream in interface CommandsFactory
Overrides:
fromStream in class OptimisticCommandsFactoryImpl
Parameters:
id - id of the command to build
parameters - parameters attached to the command
Returns:
a newly constructed cache command


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