public class CacheLoaderInterceptor extends JmxStatsCommandInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected CacheLoaderManager |
clm |
protected CacheLoader |
loader |
protected CacheNotifier |
notifier |
configuration| Constructor and Description |
|---|
CacheLoaderInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCacheLoaderLoads() |
long |
getCacheLoaderMisses() |
protected Log |
getLog() |
protected void |
injectDependencies(CacheLoaderManager clm,
EntryFactory entryFactory,
CacheNotifier notifier) |
protected boolean |
isPrimaryOwner(Object key) |
void |
resetStatistics()
Resets statistics gathered.
|
protected void |
sendNotification(Object key,
Object value,
boolean pre,
InvocationContext ctx) |
protected void |
startInterceptor() |
Object |
visitGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command) |
Object |
visitInvalidateCommand(InvocationContext ctx,
InvalidateCommand command) |
Object |
visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command) |
Object |
visitRemoveCommand(InvocationContext ctx,
RemoveCommand command) |
Object |
visitReplaceCommand(InvocationContext ctx,
ReplaceCommand command) |
checkStatisticsUsed, getStatisticsEnabled, setStatisticsEnabledgetNext, handleDefault, hasNext, invokeNextInterceptor, setNextvisitApplyDeltaCommand, visitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutMapCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommandprotected CacheLoaderManager clm
protected CacheNotifier notifier
protected CacheLoader loader
protected Log getLog()
getLog in class CommandInterceptorprotected void injectDependencies(CacheLoaderManager clm, EntryFactory entryFactory, CacheNotifier notifier)
protected void startInterceptor()
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorThrowablepublic Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
visitGetKeyValueCommand in interface VisitorvisitGetKeyValueCommand in class AbstractVisitorThrowablepublic Object visitInvalidateCommand(InvocationContext ctx, InvalidateCommand command) throws Throwable
visitInvalidateCommand in interface VisitorvisitInvalidateCommand in class AbstractVisitorThrowablepublic Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand in interface VisitorvisitRemoveCommand in class AbstractVisitorThrowablepublic Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand in interface VisitorvisitReplaceCommand in class AbstractVisitorThrowableprotected boolean isPrimaryOwner(Object key)
protected void sendNotification(Object key, Object value, boolean pre, InvocationContext ctx)
public long getCacheLoaderLoads()
public long getCacheLoaderMisses()
public void resetStatistics()
JmxStatsCommandInterceptorresetStatistics in interface JmxStatisticsExposerresetStatistics in class JmxStatsCommandInterceptorCopyright © 2012 JBoss by Red Hat. All Rights Reserved.