org.jboss.cache.commands
Interface Visitor

All Known Implementing Classes:
AbstractVisitor, ActivationInterceptor, BaseRpcInterceptor, BaseTransactionalContextInterceptor, BatchingInterceptor, BuddyRegionAwareEvictionInterceptor, CacheLoaderInterceptor, CacheMgmtInterceptor, CacheStoreInterceptor, CacheStoreInterceptor.StoreModificationsBuilder, CallInterceptor, CommandInterceptor, DataGravitatorInterceptor, EvictionInterceptor, Fqn2BuddyFqnVisitor, Interceptor, InvalidationInterceptor, InvalidationInterceptor.InvalidationFilterVisitor, InvocationContextInterceptor, JmxStatsCommandInterceptor, LegacyActivationInterceptor, LegacyCacheLoaderInterceptor, LegacyCacheStoreInterceptor, LegacyDataGravitatorInterceptor, LegacyPassivationInterceptor, MarshalledValueInterceptor, MVCCLockingInterceptor, NotificationInterceptor, OptimisticCreateIfNotExistsInterceptor, OptimisticInterceptor, OptimisticLockingInterceptor, OptimisticNodeInterceptor, OptimisticReplicationInterceptor, OptimisticReplicationInterceptor.DataVersionPopulator, OptimisticTxInterceptor, OptimisticValidatorInterceptor, PassivationInterceptor, PessimisticLockInterceptor, PrePostProcessingCommandInterceptor, ReplicationInterceptor, SkipCheckChainedInterceptor, TxInterceptor

public interface Visitor

This interface is the core of JBoss Cache, where each VisitableCommand can be visited by a Visitor implementation. Visitors which are accepted by the VisitableCommand are able to modify the command based on any logic encapsulated by the visitor.

Since:
2.2.0
Author:
Mircea.Markus@jboss.com, Manik Surtani

Method Summary
 Object visitClearDataCommand(InvocationContext ctx, ClearDataCommand command)
          Visits a RemoveDataCommand.
 Object visitCommitCommand(InvocationContext ctx, CommitCommand command)
          Visits a CommitCommand.
 Object visitCreateNodeCommand(InvocationContext ctx, CreateNodeCommand command)
          Deprecated. in 3.0. Will be removed once optimistic and pessimistic locking is removed.
 Object visitEvictFqnCommand(InvocationContext ctx, EvictCommand command)
          Visits a EvictCommand.
 Object visitExistsNodeCommand(InvocationContext ctx, ExistsCommand command)
          Visits a RemoteExistsCommand.
 Object visitGetChildrenNamesCommand(InvocationContext ctx, GetChildrenNamesCommand command)
          Visits a GetChildrenNamesCommand.
 Object visitGetDataMapCommand(InvocationContext ctx, GetDataMapCommand command)
          Visits a GetDataMapCommand.
 Object visitGetKeysCommand(InvocationContext ctx, GetKeysCommand command)
          Visits a GetKeysCommand.
 Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command)
          Visits a GetKeyValueCommand.
 Object visitGetNodeCommand(InvocationContext ctx, GetNodeCommand command)
          Visits a GetNodeCommand.
 Object visitGravitateDataCommand(InvocationContext ctx, GravitateDataCommand command)
          Visits a GravitateDataCommand.
 Object visitInvalidateCommand(InvocationContext ctx, InvalidateCommand command)
          Visits a InvalidateCommand.
 Object visitMoveCommand(InvocationContext ctx, MoveCommand command)
          Visits a MoveCommand.
 Object visitOptimisticPrepareCommand(InvocationContext ctx, OptimisticPrepareCommand command)
          Visits a OptimisticPrepareCommand.
 Object visitPrepareCommand(InvocationContext ctx, PrepareCommand command)
          Visits a PrepareCommand.
 Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command)
          Visits a PutDataMapCommand.
 Object visitPutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command)
          Visits a PutForExternalReadCommand.
 Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command)
          Visits a PutKeyValueCommand.
 Object visitRemoveKeyCommand(InvocationContext ctx, RemoveKeyCommand command)
          Visits a RemoveKeyCommand.
 Object visitRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command)
          Visits a RemoveNodeCommand.
 Object visitRollbackCommand(InvocationContext ctx, RollbackCommand command)
          Visits a RollbackCommand.
 

Method Detail

visitPutDataMapCommand

Object visitPutDataMapCommand(InvocationContext ctx,
                              PutDataMapCommand command)
                              throws Throwable
Visits a PutDataMapCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitPutKeyValueCommand

Object visitPutKeyValueCommand(InvocationContext ctx,
                               PutKeyValueCommand command)
                               throws Throwable
Visits a PutKeyValueCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitPutForExternalReadCommand

Object visitPutForExternalReadCommand(InvocationContext ctx,
                                      PutForExternalReadCommand command)
                                      throws Throwable
Visits a PutForExternalReadCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitRemoveNodeCommand

Object visitRemoveNodeCommand(InvocationContext ctx,
                              RemoveNodeCommand command)
                              throws Throwable
Visits a RemoveNodeCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitClearDataCommand

Object visitClearDataCommand(InvocationContext ctx,
                             ClearDataCommand command)
                             throws Throwable
Visits a RemoveDataCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitEvictFqnCommand

Object visitEvictFqnCommand(InvocationContext ctx,
                            EvictCommand command)
                            throws Throwable
Visits a EvictCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitInvalidateCommand

Object visitInvalidateCommand(InvocationContext ctx,
                              InvalidateCommand command)
                              throws Throwable
Visits a InvalidateCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitRemoveKeyCommand

Object visitRemoveKeyCommand(InvocationContext ctx,
                             RemoveKeyCommand command)
                             throws Throwable
Visits a RemoveKeyCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitGetDataMapCommand

Object visitGetDataMapCommand(InvocationContext ctx,
                              GetDataMapCommand command)
                              throws Throwable
Visits a GetDataMapCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitExistsNodeCommand

Object visitExistsNodeCommand(InvocationContext ctx,
                              ExistsCommand command)
                              throws Throwable
Visits a RemoteExistsCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitGetKeyValueCommand

Object visitGetKeyValueCommand(InvocationContext ctx,
                               GetKeyValueCommand command)
                               throws Throwable
Visits a GetKeyValueCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitGetNodeCommand

Object visitGetNodeCommand(InvocationContext ctx,
                           GetNodeCommand command)
                           throws Throwable
Visits a GetNodeCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitGetKeysCommand

Object visitGetKeysCommand(InvocationContext ctx,
                           GetKeysCommand command)
                           throws Throwable
Visits a GetKeysCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitGetChildrenNamesCommand

Object visitGetChildrenNamesCommand(InvocationContext ctx,
                                    GetChildrenNamesCommand command)
                                    throws Throwable
Visits a GetChildrenNamesCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitMoveCommand

Object visitMoveCommand(InvocationContext ctx,
                        MoveCommand command)
                        throws Throwable
Visits a MoveCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitGravitateDataCommand

Object visitGravitateDataCommand(InvocationContext ctx,
                                 GravitateDataCommand command)
                                 throws Throwable
Visits a GravitateDataCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitPrepareCommand

Object visitPrepareCommand(InvocationContext ctx,
                           PrepareCommand command)
                           throws Throwable
Visits a PrepareCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitRollbackCommand

Object visitRollbackCommand(InvocationContext ctx,
                            RollbackCommand command)
                            throws Throwable
Visits a RollbackCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitCommitCommand

Object visitCommitCommand(InvocationContext ctx,
                          CommitCommand command)
                          throws Throwable
Visits a CommitCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitOptimisticPrepareCommand

Object visitOptimisticPrepareCommand(InvocationContext ctx,
                                     OptimisticPrepareCommand command)
                                     throws Throwable
Visits a OptimisticPrepareCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.

visitCreateNodeCommand

@Deprecated
Object visitCreateNodeCommand(InvocationContext ctx,
                                         CreateNodeCommand command)
                              throws Throwable
Deprecated. in 3.0. Will be removed once optimistic and pessimistic locking is removed.

Visits a CreateNodeCommand.

Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.


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