public class PassivationInterceptor extends JmxStatsCommandInterceptor
Modifier and Type | Field and Description |
---|---|
protected CacheLoader |
loader |
configuration, log, trace
Constructor and Description |
---|
PassivationInterceptor() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
dumpStatistics()
Returns a map of statistics.
|
long |
getPassivations() |
protected void |
passivate(InvocationContext ctx,
Fqn fqn) |
void |
resetStatistics()
Resets statistics gathered.
|
void |
setDependencies(Notifier notifier,
CacheLoaderManager loaderManager) |
Object |
visitEvictFqnCommand(InvocationContext ctx,
EvictCommand command)
Notifies the cache instance listeners that the evicted node is about to
be passivated and stores the evicted node and its attributes back to the
store using the CacheLoader.
|
checkStatisticsUsed, getStatisticsEnabled, setStatisticsEnabled
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
visitClearDataCommand, visitCollection, visitCommitCommand, visitCreateNodeCommand, visitExistsNodeCommand, visitGetChildrenNamesCommand, visitGetDataMapCommand, visitGetKeysCommand, visitGetKeyValueCommand, visitGetNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitMoveCommand, visitOptimisticPrepareCommand, visitPrepareCommand, visitPutDataMapCommand, visitPutForExternalReadCommand, visitPutKeyValueCommand, visitRemoveKeyCommand, visitRemoveNodeCommand, visitRollbackCommand
protected CacheLoader loader
public void setDependencies(Notifier notifier, CacheLoaderManager loaderManager)
public Object visitEvictFqnCommand(InvocationContext ctx, EvictCommand command) throws Throwable
visitEvictFqnCommand
in interface Visitor
visitEvictFqnCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.protected void passivate(InvocationContext ctx, Fqn fqn) throws Throwable
Throwable
public void resetStatistics()
JmxStatsCommandInterceptor
resetStatistics
in interface JmxStatisticsExposer
resetStatistics
in class JmxStatsCommandInterceptor
public Map<String,Object> dumpStatistics()
JmxStatsCommandInterceptor
dumpStatistics
in interface JmxStatisticsExposer
dumpStatistics
in class JmxStatsCommandInterceptor
public long getPassivations()
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.