org.jboss.cache.interceptors
Class MVCCLockingInterceptor
java.lang.Object
org.jboss.cache.commands.AbstractVisitor
org.jboss.cache.interceptors.base.CommandInterceptor
org.jboss.cache.interceptors.base.PrePostProcessingCommandInterceptor
org.jboss.cache.interceptors.MVCCLockingInterceptor
- All Implemented Interfaces:
- Visitor
public class MVCCLockingInterceptor
- extends PrePostProcessingCommandInterceptor
Interceptor to implement MVCC functionality.
- Since:
- 3.0
- Author:
- Manik Surtani (manik AT jboss DOT org)
- See Also:
- MVCC designs
Method Summary |
protected void |
doAfterCall(InvocationContext ctx,
VisitableCommand command)
Callback that is invoked after every handleXXX() method defined above. |
protected boolean |
doBeforeCall(InvocationContext ctx,
VisitableCommand command)
|
Object |
handleClearDataCommand(InvocationContext ctx,
ClearDataCommand command)
|
Object |
handleCommitCommand(InvocationContext ctx,
CommitCommand command)
|
Object |
handleEvictFqnCommand(InvocationContext ctx,
EvictCommand command)
|
Object |
handleExistsNodeCommand(InvocationContext ctx,
ExistsCommand command)
|
Object |
handleGetChildrenNamesCommand(InvocationContext ctx,
GetChildrenNamesCommand command)
|
Object |
handleGetDataMapCommand(InvocationContext ctx,
GetDataMapCommand command)
|
Object |
handleGetKeysCommand(InvocationContext ctx,
GetKeysCommand command)
|
Object |
handleGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
|
Object |
handleGetNodeCommand(InvocationContext ctx,
GetNodeCommand command)
|
Object |
handleGravitateDataCommand(InvocationContext ctx,
GravitateDataCommand command)
|
Object |
handleInvalidateCommand(InvocationContext ctx,
InvalidateCommand command)
|
Object |
handleMoveCommand(InvocationContext ctx,
MoveCommand command)
|
Object |
handlePrepareCommand(InvocationContext ctx,
PrepareCommand command)
|
Object |
handlePutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
|
Object |
handlePutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
|
Object |
handlePutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
|
Object |
handleRemoveKeyCommand(InvocationContext ctx,
RemoveKeyCommand command)
|
Object |
handleRemoveNodeCommand(InvocationContext ctx,
RemoveNodeCommand command)
|
Object |
handleRollbackCommand(InvocationContext ctx,
RollbackCommand command)
|
void |
setDependencies(LockManager lockManager,
DataContainer dataContainer,
MVCCNodeHelper helper)
|
Methods inherited from class org.jboss.cache.interceptors.base.PrePostProcessingCommandInterceptor |
handleCreateNodeCommand, handleOptimisticPrepareCommand, visitClearDataCommand, visitCommitCommand, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGetChildrenNamesCommand, visitGetDataMapCommand, visitGetKeysCommand, visitGetKeyValueCommand, visitGetNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitMoveCommand, visitOptimisticPrepareCommand, visitPrepareCommand, visitPutDataMapCommand, visitPutForExternalReadCommand, visitPutKeyValueCommand, visitRemoveKeyCommand, visitRemoveNodeCommand, visitRollbackCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MVCCLockingInterceptor
public MVCCLockingInterceptor()
setDependencies
public void setDependencies(LockManager lockManager,
DataContainer dataContainer,
MVCCNodeHelper helper)
doBeforeCall
protected boolean doBeforeCall(InvocationContext ctx,
VisitableCommand command)
- Overrides:
doBeforeCall
in class PrePostProcessingCommandInterceptor
handlePutDataMapCommand
public Object handlePutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
throws Throwable
- Overrides:
handlePutDataMapCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handlePutKeyValueCommand
public Object handlePutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
throws Throwable
- Overrides:
handlePutKeyValueCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handlePutForExternalReadCommand
public Object handlePutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
throws Throwable
- Overrides:
handlePutForExternalReadCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleRemoveNodeCommand
public Object handleRemoveNodeCommand(InvocationContext ctx,
RemoveNodeCommand command)
throws Throwable
- Overrides:
handleRemoveNodeCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleClearDataCommand
public Object handleClearDataCommand(InvocationContext ctx,
ClearDataCommand command)
throws Throwable
- Overrides:
handleClearDataCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleEvictFqnCommand
public Object handleEvictFqnCommand(InvocationContext ctx,
EvictCommand command)
throws Throwable
- Overrides:
handleEvictFqnCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleInvalidateCommand
public Object handleInvalidateCommand(InvocationContext ctx,
InvalidateCommand command)
throws Throwable
- Overrides:
handleInvalidateCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleRemoveKeyCommand
public Object handleRemoveKeyCommand(InvocationContext ctx,
RemoveKeyCommand command)
throws Throwable
- Overrides:
handleRemoveKeyCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleGetDataMapCommand
public Object handleGetDataMapCommand(InvocationContext ctx,
GetDataMapCommand command)
throws Throwable
- Overrides:
handleGetDataMapCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleExistsNodeCommand
public Object handleExistsNodeCommand(InvocationContext ctx,
ExistsCommand command)
throws Throwable
- Overrides:
handleExistsNodeCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleGetKeyValueCommand
public Object handleGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
throws Throwable
- Overrides:
handleGetKeyValueCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleGetNodeCommand
public Object handleGetNodeCommand(InvocationContext ctx,
GetNodeCommand command)
throws Throwable
- Overrides:
handleGetNodeCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleGetKeysCommand
public Object handleGetKeysCommand(InvocationContext ctx,
GetKeysCommand command)
throws Throwable
- Overrides:
handleGetKeysCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleGetChildrenNamesCommand
public Object handleGetChildrenNamesCommand(InvocationContext ctx,
GetChildrenNamesCommand command)
throws Throwable
- Overrides:
handleGetChildrenNamesCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleMoveCommand
public Object handleMoveCommand(InvocationContext ctx,
MoveCommand command)
throws Throwable
- Overrides:
handleMoveCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleGravitateDataCommand
public Object handleGravitateDataCommand(InvocationContext ctx,
GravitateDataCommand command)
throws Throwable
- Overrides:
handleGravitateDataCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleRollbackCommand
public Object handleRollbackCommand(InvocationContext ctx,
RollbackCommand command)
throws Throwable
- Overrides:
handleRollbackCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handleCommitCommand
public Object handleCommitCommand(InvocationContext ctx,
CommitCommand command)
throws Throwable
- Overrides:
handleCommitCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
handlePrepareCommand
public Object handlePrepareCommand(InvocationContext ctx,
PrepareCommand command)
throws Throwable
- Overrides:
handlePrepareCommand
in class PrePostProcessingCommandInterceptor
- Throws:
Throwable
doAfterCall
protected void doAfterCall(InvocationContext ctx,
VisitableCommand command)
- Description copied from class:
PrePostProcessingCommandInterceptor
- Callback that is invoked after every handleXXX() method defined above.
- Specified by:
doAfterCall
in class PrePostProcessingCommandInterceptor
- Parameters:
ctx
- invocation contextcommand
- command which was invoked
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.