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

Method Detail

visitPutDataMapCommand

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

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

visitPutKeyValueCommand

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

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

visitPutForExternalReadCommand

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

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

visitRemoveNodeCommand

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

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

visitClearDataCommand

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

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

visitEvictFqnCommand

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

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

visitInvalidateCommand

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

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

visitRemoveKeyCommand

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

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

visitGetDataMapCommand

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

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

visitExistsNodeCommand

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

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

visitGetKeyValueCommand

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

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

visitGetNodeCommand

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

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

visitGetKeysCommand

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

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

visitGetChildrenNamesCommand

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

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

visitMoveCommand

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

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

visitGravitateDataCommand

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

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

visitPrepareCommand

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

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

visitRollbackCommand

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

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

visitCommitCommand

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

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

visitOptimisticPrepareCommand

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

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

visitCreateNodeCommand

@Deprecated
java.lang.Object visitCreateNodeCommand(InvocationContext ctx,
                                                   CreateNodeCommand command)
                                        throws java.lang.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:
java.lang.Throwable - in the event of problems.


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