|
||||||||||
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.buddyreplication.Fqn2BuddyFqnVisitor
public class Fqn2BuddyFqnVisitor
For each command the fqns are changed such that they are under the current buddy group's backup subtree (e.g., /_buddy_backup_/my_host:7890/) rather than the root (/).
Constructor Summary | |
---|---|
Fqn2BuddyFqnVisitor(java.lang.String buddyGroupName)
|
|
Fqn2BuddyFqnVisitor(java.lang.String buddyGroupName,
CommandsFactory cf)
|
Method Summary | |
---|---|
Fqn |
getBackupFqn(Fqn originalFqn)
Assumes the backup Fqn if the current instance is the data owner. |
void |
setBuddyFqnTransformer(BuddyFqnTransformer buddyFqnTransformer)
|
java.util.List<WriteCommand> |
transformBatch(java.util.List<WriteCommand> toTransform)
|
java.lang.Object |
visitClearDataCommand(InvocationContext ctx,
ClearDataCommand command)
Visits a RemoveDataCommand. |
java.lang.Object |
visitCommitCommand(InvocationContext ctx,
CommitCommand commitCommand)
Visits a CommitCommand. |
java.lang.Object |
visitCreateNodeCommand(InvocationContext ctx,
CreateNodeCommand command)
Visits a CreateNodeCommand. |
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. |
Methods inherited from class org.jboss.cache.commands.AbstractVisitor |
---|
handleDefault, visitCollection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Fqn2BuddyFqnVisitor(java.lang.String buddyGroupName)
public Fqn2BuddyFqnVisitor(java.lang.String buddyGroupName, CommandsFactory cf)
Method Detail |
---|
public java.lang.Object visitCommitCommand(InvocationContext ctx, CommitCommand commitCommand) throws java.lang.Throwable
Visitor
visitCommitCommand
in interface Visitor
visitCommitCommand
in class AbstractVisitor
ctx
- invocation contextcommitCommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws java.lang.Throwable
Visitor
visitPutDataMapCommand
in interface Visitor
visitPutDataMapCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws java.lang.Throwable
Visitor
visitPutKeyValueCommand
in interface Visitor
visitPutKeyValueCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws java.lang.Throwable
Visitor
visitPutForExternalReadCommand
in interface Visitor
visitPutForExternalReadCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command) throws java.lang.Throwable
Visitor
visitRemoveNodeCommand
in interface Visitor
visitRemoveNodeCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitClearDataCommand(InvocationContext ctx, ClearDataCommand command) throws java.lang.Throwable
Visitor
visitClearDataCommand
in interface Visitor
visitClearDataCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitEvictFqnCommand(InvocationContext ctx, EvictCommand command) throws java.lang.Throwable
Visitor
visitEvictFqnCommand
in interface Visitor
visitEvictFqnCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitInvalidateCommand(InvocationContext ctx, InvalidateCommand command) throws java.lang.Throwable
Visitor
visitInvalidateCommand
in interface Visitor
visitInvalidateCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitRemoveKeyCommand(InvocationContext ctx, RemoveKeyCommand command) throws java.lang.Throwable
Visitor
visitRemoveKeyCommand
in interface Visitor
visitRemoveKeyCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitGetDataMapCommand(InvocationContext ctx, GetDataMapCommand command) throws java.lang.Throwable
Visitor
visitGetDataMapCommand
in interface Visitor
visitGetDataMapCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitExistsNodeCommand(InvocationContext ctx, ExistsCommand command) throws java.lang.Throwable
Visitor
visitExistsNodeCommand
in interface Visitor
visitExistsNodeCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws java.lang.Throwable
Visitor
visitGetKeyValueCommand
in interface Visitor
visitGetKeyValueCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitGetNodeCommand(InvocationContext ctx, GetNodeCommand command) throws java.lang.Throwable
Visitor
visitGetNodeCommand
in interface Visitor
visitGetNodeCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitGetKeysCommand(InvocationContext ctx, GetKeysCommand command) throws java.lang.Throwable
Visitor
visitGetKeysCommand
in interface Visitor
visitGetKeysCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitGetChildrenNamesCommand(InvocationContext ctx, GetChildrenNamesCommand command) throws java.lang.Throwable
Visitor
visitGetChildrenNamesCommand
in interface Visitor
visitGetChildrenNamesCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitMoveCommand(InvocationContext ctx, MoveCommand command) throws java.lang.Throwable
Visitor
visitMoveCommand
in interface Visitor
visitMoveCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitGravitateDataCommand(InvocationContext ctx, GravitateDataCommand command) throws java.lang.Throwable
Visitor
visitGravitateDataCommand
in interface Visitor
visitGravitateDataCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPrepareCommand(InvocationContext ctx, PrepareCommand command) throws java.lang.Throwable
Visitor
visitPrepareCommand
in interface Visitor
visitPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitRollbackCommand(InvocationContext ctx, RollbackCommand command) throws java.lang.Throwable
Visitor
visitRollbackCommand
in interface Visitor
visitRollbackCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitOptimisticPrepareCommand(InvocationContext ctx, OptimisticPrepareCommand command) throws java.lang.Throwable
Visitor
visitOptimisticPrepareCommand
in interface Visitor
visitOptimisticPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitCreateNodeCommand(InvocationContext ctx, CreateNodeCommand command) throws java.lang.Throwable
Visitor
visitCreateNodeCommand
in interface Visitor
visitCreateNodeCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.util.List<WriteCommand> transformBatch(java.util.List<WriteCommand> toTransform) throws java.lang.Throwable
java.lang.Throwable
public Fqn getBackupFqn(Fqn originalFqn)
public void setBuddyFqnTransformer(BuddyFqnTransformer buddyFqnTransformer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |