|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.commands.read.AbstractDataCommand
org.jboss.cache.commands.read.GravitateDataCommand
public class GravitateDataCommand
Used with buddy replication's DataGravitatorInterceptor.
| Field Summary | |
|---|---|
static int |
METHOD_ID
|
| Fields inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
|---|
dataContainer, fqn |
| Constructor Summary | |
|---|---|
GravitateDataCommand(org.jgroups.Address localAddress)
|
|
GravitateDataCommand(Fqn fqn,
boolean searchSubtrees,
org.jgroups.Address localAddress)
|
|
| Method Summary | |
|---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor. |
boolean |
equals(Object o)
|
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming. |
Object[] |
getParameters()
Basic versions of these methods |
int |
hashCode()
|
void |
initialize(DataContainer dataContainer,
CacheSPI spi,
BuddyFqnTransformer transformer)
|
boolean |
isSearchSubtrees()
|
Object |
perform(InvocationContext ctx)
Searches for data to gravitate given an Fqn and whether buddy backup subtrees are to be searched as well. |
void |
setParameters(int commandId,
Object[] args)
Basic versions of these methods |
String |
toString()
|
| Methods inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
|---|
getFqn, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int METHOD_ID
| Constructor Detail |
|---|
public GravitateDataCommand(Fqn fqn,
boolean searchSubtrees,
org.jgroups.Address localAddress)
public GravitateDataCommand(org.jgroups.Address localAddress)
| Method Detail |
|---|
public void initialize(DataContainer dataContainer,
CacheSPI spi,
BuddyFqnTransformer transformer)
public Object perform(InvocationContext ctx)
ctx - invocation context
GravitateResult containing node data, as well as information on whether this was found in a primary or backup tree.
public Object acceptVisitor(InvocationContext ctx,
Visitor visitor)
throws Throwable
VisitableCommand
ctx - invocation contextvisitor - visitor to accept
Throwable - in the event of problemspublic int getCommandId()
ReplicableCommand
public boolean isSearchSubtrees()
public Object[] getParameters()
AbstractDataCommand
getParameters in interface ReplicableCommandgetParameters in class AbstractDataCommand
public void setParameters(int commandId,
Object[] args)
AbstractDataCommand
setParameters in interface ReplicableCommandsetParameters in class AbstractDataCommandcommandId - 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 argspublic boolean equals(Object o)
equals in class AbstractDataCommandpublic int hashCode()
hashCode in class AbstractDataCommandpublic String toString()
toString in class AbstractDataCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||