public class DataGravitationCleanupCommand extends Object implements ReplicableCommand
DataGravitatorInterceptor
.
This is not a VisitableCommand
and hence
not passed up the CommandInterceptor
chain.
Modifier and Type | Field and Description |
---|---|
static int |
METHOD_ID |
Constructor and Description |
---|
DataGravitationCleanupCommand() |
DataGravitationCleanupCommand(Fqn primary,
Fqn backup) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Fqn |
getBackup() |
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
Fqn |
getFqn() |
GlobalTransaction |
getGlobalTransaction() |
Object[] |
getParameters()
Used by marshallers to stream this command across a network
|
int |
hashCode() |
void |
initialize(BuddyManager buddyManager,
InterceptorChain invoker,
TransactionTable transactionTable,
CommandsFactory commandsFactory,
DataContainer dataContainer,
BuddyFqnTransformer buddyFqnTransformer) |
Object |
perform(InvocationContext ctx)
Performs a cleanup on nodes that would have been previously gravitated away from the current cache instance.
|
void |
setGlobalTransaction(GlobalTransaction gtx) |
void |
setParameters(int commandId,
Object[] args)
Used by the
CommandsFactory to create a command from raw data read off a stream. |
String |
toString() |
public static final int METHOD_ID
public void initialize(BuddyManager buddyManager, InterceptorChain invoker, TransactionTable transactionTable, CommandsFactory commandsFactory, DataContainer dataContainer, BuddyFqnTransformer buddyFqnTransformer)
public Object perform(InvocationContext ctx) throws Throwable
perform
in interface ReplicableCommand
ctx
- invocation contextThrowable
- in the event of problems.public int getCommandId()
ReplicableCommand
getCommandId
in interface ReplicableCommand
public Fqn getBackup()
public GlobalTransaction getGlobalTransaction()
public void setGlobalTransaction(GlobalTransaction gtx)
public Fqn getFqn()
public Object[] getParameters()
ReplicableCommand
getParameters
in interface ReplicableCommand
public void setParameters(int commandId, Object[] args)
ReplicableCommand
CommandsFactory
to create a command from raw data read off a stream.setParameters
in interface ReplicableCommand
commandId
- command id to set. This is usually unused but *could* be used in the event of a command having multiple IDs, such as PutKeyValueCommand
.args
- object array of argsCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.