|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.commands.AbstractVisitor
org.jboss.cache.interceptors.base.CommandInterceptor
org.jboss.cache.interceptors.base.JmxStatsCommandInterceptor
org.jboss.cache.interceptors.CacheLoaderInterceptor
org.jboss.cache.interceptors.ActivationInterceptor
public class ActivationInterceptor
Loads nodes that don't exist at the time of the call into memory from the CacheLoader. If the nodes were evicted earlier then we remove them from the cache loader after their attributes have been initialized and their children have been loaded in memory.
Field Summary | |
---|---|
protected static java.lang.Object |
NULL
|
protected java.util.concurrent.ConcurrentHashMap |
transactions
List |
protected javax.transaction.TransactionManager |
txMgr
|
Fields inherited from class org.jboss.cache.interceptors.CacheLoaderInterceptor |
---|
dataContainer, helper, isActivation, loader, notifier, txTable, useCacheStore |
Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
configuration, log, trace |
Constructor Summary | |
---|---|
ActivationInterceptor()
|
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
dumpStatistics()
Returns a map of statistics. |
long |
getActivations()
|
void |
injectTransactionManager(javax.transaction.TransactionManager txMgr)
|
protected void |
recordNodeLoaded(InvocationContext ctx,
Fqn fqn)
|
void |
resetStatistics()
Resets statistics gathered. |
java.lang.Object |
visitClearDataCommand(InvocationContext ctx,
ClearDataCommand command)
Visits a RemoveDataCommand. |
java.lang.Object |
visitGetChildrenNamesCommand(InvocationContext ctx,
GetChildrenNamesCommand command)
Visits a GetChildrenNamesCommand. |
java.lang.Object |
visitGetKeysCommand(InvocationContext ctx,
GetKeysCommand command)
Visits a GetKeysCommand. |
java.lang.Object |
visitGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
Visits a GetKeyValueCommand. |
java.lang.Object |
visitGetNodeCommand(InvocationContext ctx,
GetNodeCommand command)
Visits a GetNodeCommand. |
java.lang.Object |
visitMoveCommand(InvocationContext ctx,
MoveCommand command)
Visits a MoveCommand. |
java.lang.Object |
visitPutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
Visits a PutDataMapCommand. |
java.lang.Object |
visitPutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
Visits a PutForExternalReadCommand. |
java.lang.Object |
visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
Visits a PutKeyValueCommand. |
java.lang.Object |
visitRemoveKeyCommand(InvocationContext ctx,
RemoveKeyCommand command)
Visits a RemoveKeyCommand. |
java.lang.Object |
visitRemoveNodeCommand(InvocationContext ctx,
RemoveNodeCommand command)
Visits a RemoveNodeCommand. |
Methods inherited from class org.jboss.cache.interceptors.CacheLoaderInterceptor |
---|
getCacheLoaderLoads, getCacheLoaderMisses, injectDependencies, startInterceptor, visitGetDataMapCommand, visitRollbackCommand |
Methods inherited from class org.jboss.cache.interceptors.base.JmxStatsCommandInterceptor |
---|
getStatisticsEnabled, checkStatisticsUsed, setStatisticsEnabled |
Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext |
Methods inherited from class org.jboss.cache.commands.AbstractVisitor |
---|
visitCollection, visitCommitCommand, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitOptimisticPrepareCommand, visitPrepareCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.transaction.TransactionManager txMgr
protected java.util.concurrent.ConcurrentHashMap transactions
protected static final java.lang.Object NULL
Constructor Detail |
---|
public ActivationInterceptor()
Method Detail |
---|
public void injectTransactionManager(javax.transaction.TransactionManager txMgr)
public java.lang.Object visitClearDataCommand(InvocationContext ctx, ClearDataCommand command) throws java.lang.Throwable
Visitor
visitClearDataCommand
in interface Visitor
visitClearDataCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command) throws java.lang.Throwable
Visitor
visitRemoveNodeCommand
in interface Visitor
visitRemoveNodeCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitGetChildrenNamesCommand(InvocationContext ctx, GetChildrenNamesCommand command) throws java.lang.Throwable
Visitor
visitGetChildrenNamesCommand
in interface Visitor
visitGetChildrenNamesCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitGetKeysCommand(InvocationContext ctx, GetKeysCommand command) throws java.lang.Throwable
Visitor
visitGetKeysCommand
in interface Visitor
visitGetKeysCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitGetNodeCommand(InvocationContext ctx, GetNodeCommand command) throws java.lang.Throwable
Visitor
visitGetNodeCommand
in interface Visitor
visitGetNodeCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws java.lang.Throwable
Visitor
visitGetKeyValueCommand
in interface Visitor
visitGetKeyValueCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws java.lang.Throwable
Visitor
visitPutForExternalReadCommand
in interface Visitor
visitPutForExternalReadCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws java.lang.Throwable
Visitor
visitPutKeyValueCommand
in interface Visitor
visitPutKeyValueCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws java.lang.Throwable
Visitor
visitPutDataMapCommand
in interface Visitor
visitPutDataMapCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitRemoveKeyCommand(InvocationContext ctx, RemoveKeyCommand command) throws java.lang.Throwable
Visitor
visitRemoveKeyCommand
in interface Visitor
visitRemoveKeyCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitMoveCommand(InvocationContext ctx, MoveCommand command) throws java.lang.Throwable
Visitor
visitMoveCommand
in interface Visitor
visitMoveCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public long getActivations()
public void resetStatistics()
JmxStatsCommandInterceptor
resetStatistics
in interface JmxStatisticsExposer
resetStatistics
in class CacheLoaderInterceptor
public java.util.Map<java.lang.String,java.lang.Object> dumpStatistics()
JmxStatsCommandInterceptor
dumpStatistics
in interface JmxStatisticsExposer
dumpStatistics
in class CacheLoaderInterceptor
protected void recordNodeLoaded(InvocationContext ctx, Fqn fqn)
recordNodeLoaded
in class CacheLoaderInterceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |