|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.commands.read.AbstractDataCommand org.jboss.cache.commands.write.EvictCommand
public class EvictCommand
Implements functionality defined by Cache.evict(org.jboss.cache.Fqn)
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
|
static int |
METHOD_ID
|
protected Notifier |
notifier
|
protected static boolean |
trace
|
static int |
VERSIONED_METHOD_ID
|
Fields inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
---|
dataContainer, fqn |
Constructor Summary | |
---|---|
EvictCommand()
|
|
EvictCommand(Fqn fqn)
|
Method Summary | |
---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor. |
protected boolean |
evictNode(Fqn fqn,
InvocationContext ctx,
NodeSPI node)
|
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming. |
List<Fqn> |
getNodesToEvict()
|
Object[] |
getParameters()
Basic versions of these methods |
protected Collection<Fqn> |
getRecursiveEvictionNodes()
|
void |
initialize(Notifier notifier,
DataContainer dataContainer)
|
boolean |
isRecursive()
|
protected NodeSPI |
lookupForEviction(InvocationContext ctx,
Fqn fqn)
|
Object |
perform(InvocationContext ctx)
Evicts a node. |
void |
rollback()
|
void |
setNodesToEvict(List<Fqn> nodesToEvict)
|
void |
setParameters(int commandId,
Object[] args)
Basic versions of these methods |
void |
setRecursive(boolean recursive)
|
String |
toString()
|
Methods inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
---|
equals, getFqn, hashCode, initialize |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int METHOD_ID
public static final int VERSIONED_METHOD_ID
protected Notifier notifier
protected static final org.apache.commons.logging.Log log
protected static final boolean trace
Constructor Detail |
---|
public EvictCommand(Fqn fqn)
public EvictCommand()
Method Detail |
---|
public void initialize(Notifier notifier, DataContainer dataContainer)
public List<Fqn> getNodesToEvict()
public void setNodesToEvict(List<Fqn> nodesToEvict)
public Object perform(InvocationContext ctx)
EvictionInterceptor.visitEvictFqnCommand(org.jboss.cache.InvocationContext , EvictCommand)
which is where the return value is used
ctx
- invocation context
protected Collection<Fqn> getRecursiveEvictionNodes()
protected boolean evictNode(Fqn fqn, InvocationContext ctx, NodeSPI node)
protected NodeSPI lookupForEviction(InvocationContext ctx, Fqn fqn)
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 isRecursive()
public void setRecursive(boolean recursive)
public Object[] getParameters()
AbstractDataCommand
getParameters
in interface ReplicableCommand
getParameters
in class AbstractDataCommand
public void setParameters(int commandId, Object[] args)
AbstractDataCommand
setParameters
in interface ReplicableCommand
setParameters
in class AbstractDataCommand
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 argspublic String toString()
toString
in class AbstractDataCommand
public void rollback()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |