@Deprecated public class LegacyDataGravitatorInterceptor extends BaseRpcInterceptor
Option
is passed in to force Data
Gravitation for a specific invocation or if autoDataGravitation is
set to true when configuring Buddy Replication.
See the JBoss Cache User Guide for more details on configuration options.
There is a section dedicated to Buddy Replication in the Replication
chapter.
In terms of functionality, if a gravitation call has occured and a cleanup call is needed (based on
how BR is configured), a cleanup call will be broadcast immediately after the gravitation call (no txs)
or if txs are used, an asynchronous call is made to perform the cleanup outside the scope
of the tx that caused the gravitation event.
Modifier and Type | Class and Description |
---|---|
static class |
LegacyDataGravitatorInterceptor.ResponseValidityFilter
Deprecated.
|
defaultSynchronous, rpcManager, txTable
configuration, log, trace
Constructor and Description |
---|
LegacyDataGravitatorInterceptor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
injectComponents(BuddyManager buddyManager,
DataContainer dataContainer,
CommandsFactory commandsFactory,
CacheSPI cacheSPI,
BuddyFqnTransformer transformer)
Deprecated.
|
protected boolean |
nodeDoesNotExist(InvocationContext ctx,
Fqn fqn)
Deprecated.
|
Object |
visitCommitCommand(InvocationContext ctx,
CommitCommand command)
Deprecated.
Visits a CommitCommand.
|
Object |
visitGetChildrenNamesCommand(InvocationContext ctx,
GetChildrenNamesCommand command)
Deprecated.
Visits a GetChildrenNamesCommand.
|
Object |
visitGetDataMapCommand(InvocationContext ctx,
GetDataMapCommand command)
Deprecated.
Visits a GetDataMapCommand.
|
Object |
visitGetKeysCommand(InvocationContext ctx,
GetKeysCommand command)
Deprecated.
Visits a GetKeysCommand.
|
Object |
visitGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
Deprecated.
Visits a GetKeyValueCommand.
|
Object |
visitGetNodeCommand(InvocationContext ctx,
GetNodeCommand command)
Deprecated.
Visits a GetNodeCommand.
|
Object |
visitOptimisticPrepareCommand(InvocationContext ctx,
OptimisticPrepareCommand command)
Deprecated.
Visits a OptimisticPrepareCommand.
|
Object |
visitPrepareCommand(InvocationContext ctx,
PrepareCommand command)
Deprecated.
Make sure you also run a cleanup if we have an 1pc.
|
Object |
visitRollbackCommand(InvocationContext ctx,
RollbackCommand command)
Deprecated.
Visits a RollbackCommand.
|
protected void |
wrapIfNeeded(InvocationContext ctx,
Fqn fqnToWrap)
Deprecated.
|
checkResponses, injectComponents, isLocalModeForced, isSynchronous, isTransactionalAndLocal, replicateCall, replicateCall, replicateCall, replicateCall, skipReplicationOfTransactionMethod
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
visitClearDataCommand, visitCollection, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitMoveCommand, visitPutDataMapCommand, visitPutForExternalReadCommand, visitPutKeyValueCommand, visitRemoveKeyCommand, visitRemoveNodeCommand
public LegacyDataGravitatorInterceptor()
public void injectComponents(BuddyManager buddyManager, DataContainer dataContainer, CommandsFactory commandsFactory, CacheSPI cacheSPI, BuddyFqnTransformer transformer)
public Object visitGetChildrenNamesCommand(InvocationContext ctx, GetChildrenNamesCommand command) throws Throwable
Visitor
visitGetChildrenNamesCommand
in interface Visitor
visitGetChildrenNamesCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.public Object visitGetDataMapCommand(InvocationContext ctx, GetDataMapCommand command) throws Throwable
Visitor
visitGetDataMapCommand
in interface Visitor
visitGetDataMapCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.public Object visitGetKeysCommand(InvocationContext ctx, GetKeysCommand command) throws Throwable
Visitor
visitGetKeysCommand
in interface Visitor
visitGetKeysCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.public Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
Visitor
visitGetKeyValueCommand
in interface Visitor
visitGetKeyValueCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.public Object visitGetNodeCommand(InvocationContext ctx, GetNodeCommand command) throws Throwable
Visitor
visitGetNodeCommand
in interface Visitor
visitGetNodeCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.public Object visitRollbackCommand(InvocationContext ctx, RollbackCommand command) throws Throwable
Visitor
visitRollbackCommand
in interface Visitor
visitRollbackCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.public Object visitPrepareCommand(InvocationContext ctx, PrepareCommand command) throws Throwable
visitPrepareCommand
in interface Visitor
visitPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.public Object visitCommitCommand(InvocationContext ctx, CommitCommand command) throws Throwable
Visitor
visitCommitCommand
in interface Visitor
visitCommitCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.public Object visitOptimisticPrepareCommand(InvocationContext ctx, OptimisticPrepareCommand command) throws Throwable
Visitor
visitOptimisticPrepareCommand
in interface Visitor
visitOptimisticPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.protected boolean nodeDoesNotExist(InvocationContext ctx, Fqn fqn)
ctx
- invocation contextfqn
- fqn to testprotected void wrapIfNeeded(InvocationContext ctx, Fqn fqnToWrap) throws InterruptedException
InterruptedException
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.