org.infinispan.statetransfer
Class StateTransferInterceptor
java.lang.Object
org.infinispan.commands.AbstractVisitor
org.infinispan.interceptors.base.CommandInterceptor
org.infinispan.statetransfer.StateTransferInterceptor
- All Implemented Interfaces:
- Visitor
public class StateTransferInterceptor
- extends CommandInterceptor
// TODO: Document this
- Since:
- 5.2
- Author:
- anistor@redhat.com
Method Summary |
protected Log |
getLog()
|
protected Object |
handleDefault(InvocationContext ctx,
VisitableCommand command)
The default behaviour of the visitXXX methods, which is to ignore the call and pass the call up to the next
interceptor in the chain. |
void |
init(StateTransferLock stateTransferLock,
Configuration configuration,
CommandsFactory commandFactory,
StateTransferManager stateTransferManager)
|
Object |
visitApplyDeltaCommand(InvocationContext ctx,
ApplyDeltaCommand command)
|
Object |
visitClearCommand(InvocationContext ctx,
ClearCommand command)
|
Object |
visitCommitCommand(TxInvocationContext ctx,
CommitCommand command)
|
Object |
visitEvictCommand(InvocationContext ctx,
EvictCommand command)
|
Object |
visitInvalidateCommand(InvocationContext ctx,
InvalidateCommand command)
|
Object |
visitInvalidateL1Command(InvocationContext ctx,
InvalidateL1Command command)
|
Object |
visitLockControlCommand(TxInvocationContext ctx,
LockControlCommand command)
|
Object |
visitPrepareCommand(TxInvocationContext ctx,
PrepareCommand command)
|
Object |
visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
|
Object |
visitPutMapCommand(InvocationContext ctx,
PutMapCommand command)
|
Object |
visitRemoveCommand(InvocationContext ctx,
RemoveCommand command)
|
Object |
visitReplaceCommand(InvocationContext ctx,
ReplaceCommand command)
|
Object |
visitRollbackCommand(TxInvocationContext ctx,
RollbackCommand command)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateTransferInterceptor
public StateTransferInterceptor()
getLog
protected Log getLog()
- Overrides:
getLog
in class CommandInterceptor
init
public void init(StateTransferLock stateTransferLock,
Configuration configuration,
CommandsFactory commandFactory,
StateTransferManager stateTransferManager)
visitPrepareCommand
public Object visitPrepareCommand(TxInvocationContext ctx,
PrepareCommand command)
throws Throwable
- Specified by:
visitPrepareCommand
in interface Visitor
- Overrides:
visitPrepareCommand
in class AbstractVisitor
- Throws:
Throwable
visitCommitCommand
public Object visitCommitCommand(TxInvocationContext ctx,
CommitCommand command)
throws Throwable
- Specified by:
visitCommitCommand
in interface Visitor
- Overrides:
visitCommitCommand
in class AbstractVisitor
- Throws:
Throwable
visitRollbackCommand
public Object visitRollbackCommand(TxInvocationContext ctx,
RollbackCommand command)
throws Throwable
- Specified by:
visitRollbackCommand
in interface Visitor
- Overrides:
visitRollbackCommand
in class AbstractVisitor
- Throws:
Throwable
visitLockControlCommand
public Object visitLockControlCommand(TxInvocationContext ctx,
LockControlCommand command)
throws Throwable
- Specified by:
visitLockControlCommand
in interface Visitor
- Overrides:
visitLockControlCommand
in class AbstractVisitor
- Throws:
Throwable
visitPutKeyValueCommand
public Object visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
throws Throwable
- Specified by:
visitPutKeyValueCommand
in interface Visitor
- Overrides:
visitPutKeyValueCommand
in class AbstractVisitor
- Throws:
Throwable
visitPutMapCommand
public Object visitPutMapCommand(InvocationContext ctx,
PutMapCommand command)
throws Throwable
- Specified by:
visitPutMapCommand
in interface Visitor
- Overrides:
visitPutMapCommand
in class AbstractVisitor
- Throws:
Throwable
visitApplyDeltaCommand
public Object visitApplyDeltaCommand(InvocationContext ctx,
ApplyDeltaCommand command)
throws Throwable
- Specified by:
visitApplyDeltaCommand
in interface Visitor
- Overrides:
visitApplyDeltaCommand
in class AbstractVisitor
- Throws:
Throwable
visitRemoveCommand
public Object visitRemoveCommand(InvocationContext ctx,
RemoveCommand command)
throws Throwable
- Specified by:
visitRemoveCommand
in interface Visitor
- Overrides:
visitRemoveCommand
in class AbstractVisitor
- Throws:
Throwable
visitReplaceCommand
public Object visitReplaceCommand(InvocationContext ctx,
ReplaceCommand command)
throws Throwable
- Specified by:
visitReplaceCommand
in interface Visitor
- Overrides:
visitReplaceCommand
in class AbstractVisitor
- Throws:
Throwable
visitClearCommand
public Object visitClearCommand(InvocationContext ctx,
ClearCommand command)
throws Throwable
- Specified by:
visitClearCommand
in interface Visitor
- Overrides:
visitClearCommand
in class AbstractVisitor
- Throws:
Throwable
visitInvalidateCommand
public Object visitInvalidateCommand(InvocationContext ctx,
InvalidateCommand command)
throws Throwable
- Specified by:
visitInvalidateCommand
in interface Visitor
- Overrides:
visitInvalidateCommand
in class AbstractVisitor
- Throws:
Throwable
visitInvalidateL1Command
public Object visitInvalidateL1Command(InvocationContext ctx,
InvalidateL1Command command)
throws Throwable
- Specified by:
visitInvalidateL1Command
in interface Visitor
- Overrides:
visitInvalidateL1Command
in class AbstractVisitor
- Throws:
Throwable
visitEvictCommand
public Object visitEvictCommand(InvocationContext ctx,
EvictCommand command)
throws Throwable
- Specified by:
visitEvictCommand
in interface Visitor
- Overrides:
visitEvictCommand
in class AbstractVisitor
- Throws:
Throwable
handleDefault
protected Object handleDefault(InvocationContext ctx,
VisitableCommand command)
throws Throwable
- Description copied from class:
CommandInterceptor
- The default behaviour of the visitXXX methods, which is to ignore the call and pass the call up to the next
interceptor in the chain.
- Overrides:
handleDefault
in class CommandInterceptor
- Parameters:
ctx
- invocation contextcommand
- command to invoke
- Returns:
- return value
- Throws:
Throwable
- in the event of problems
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.