|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.commands.AbstractVisitor
org.jboss.cache.interceptors.base.CommandInterceptor
org.jboss.cache.interceptors.BaseRpcInterceptor
org.jboss.cache.interceptors.ReplicationInterceptor
public class ReplicationInterceptor
Takes care of replicating modifications to other nodes in a cluster. Also listens for prepare(), commit() and rollback() messages which are received 'side-ways' (see docs/design/Refactoring.txt).
| Field Summary |
|---|
| Fields inherited from class org.jboss.cache.interceptors.BaseRpcInterceptor |
|---|
defaultSynchronous, rpcManager, txTable |
| Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
|---|
configuration, log, trace |
| Constructor Summary | |
|---|---|
ReplicationInterceptor()
|
|
| Methods inherited from class org.jboss.cache.interceptors.BaseRpcInterceptor |
|---|
checkResponses, injectComponents, isLocalModeForced, isSynchronous, isTransactionalAndLocal, replicateCall, replicateCall, replicateCall, replicateCall, skipReplicationOfTransactionMethod |
| Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
|---|
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext |
| Methods inherited from class org.jboss.cache.commands.AbstractVisitor |
|---|
visitCollection, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGetChildrenNamesCommand, visitGetDataMapCommand, visitGetKeysCommand, visitGetKeyValueCommand, visitGetNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitOptimisticPrepareCommand |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicationInterceptor()
| Method Detail |
|---|
public Object visitCommitCommand(InvocationContext ctx,
CommitCommand command)
throws Throwable
Visitor
visitCommitCommand in interface VisitorvisitCommitCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitPrepareCommand(InvocationContext ctx,
PrepareCommand command)
throws Throwable
Visitor
visitPrepareCommand in interface VisitorvisitPrepareCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitRollbackCommand(InvocationContext ctx,
RollbackCommand command)
throws Throwable
Visitor
visitRollbackCommand in interface VisitorvisitRollbackCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitPutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
throws Throwable
Visitor
visitPutForExternalReadCommand in interface VisitorvisitPutForExternalReadCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
throws Throwable
Visitor
visitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitPutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
throws Throwable
Visitor
visitPutDataMapCommand in interface VisitorvisitPutDataMapCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitMoveCommand(InvocationContext ctx,
MoveCommand command)
throws Throwable
Visitor
visitMoveCommand in interface VisitorvisitMoveCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitRemoveNodeCommand(InvocationContext ctx,
RemoveNodeCommand command)
throws Throwable
Visitor
visitRemoveNodeCommand in interface VisitorvisitRemoveNodeCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitRemoveKeyCommand(InvocationContext ctx,
RemoveKeyCommand command)
throws Throwable
Visitor
visitRemoveKeyCommand in interface VisitorvisitRemoveKeyCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitClearDataCommand(InvocationContext ctx,
ClearDataCommand command)
throws Throwable
Visitor
visitClearDataCommand in interface VisitorvisitClearDataCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected void runPreparePhase(PrepareCommand prepareMethod,
GlobalTransaction gtx,
InvocationContext ctx)
throws Throwable
Exception
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||