protected static class AbstractPersistenceTools.StatsVisitor extends Object implements CachePersistenceHelper.Visitor
CachePersistenceHelper.Visitor to collect details statistics from the snapshot we are analysing.| Constructor and Description |
|---|
StatsVisitor(com.oracle.datagrid.persistence.PersistenceStatistics stats)
Construct a new Stats visitor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCacheName(long lOldCacheId)
Return the cache name based upon the old cache id.
|
void |
setCaches(LongArray laCaches)
Set the
LongArray of caches for this visitor. |
boolean |
visitCacheEntry(long lOldCacheId, Binary binKey, Binary binValue)
Apply the visitor to the specified cache entry (key-value pair).
|
boolean |
visitIndex(long lOldCacheId, Binary binExtractor, Binary binComparator)
Apply the visitor to the specified cache index.
|
boolean |
visitListener(long lOldCacheId, Binary binKey, long lListenerId, boolean fLite)
Apply the visitor to the specified cache entry listener.
|
boolean |
visitLock(long lOldCacheId, Binary binKey, long lHolderId, long lHolderThreadId)
Apply the visitor to the specified cache entry lock.
|
boolean |
visitTrigger(long lOldCacheId, Binary binTrigger)
Apply the visitor to the specified trigger.
|
public StatsVisitor(com.oracle.datagrid.persistence.PersistenceStatistics stats)
stats - the statistics to update when visiting
public boolean visitCacheEntry(long lOldCacheId,
Binary binKey,
Binary binValue)
CachePersistenceHelper.VisitorvisitCacheEntry in interface CachePersistenceHelper.VisitorlOldCacheId - the persisted cache-idbinKey - the cache keybinValue - the cache value
public boolean visitListener(long lOldCacheId,
Binary binKey,
long lListenerId,
boolean fLite)
CachePersistenceHelper.VisitorvisitListener in interface CachePersistenceHelper.VisitorlOldCacheId - the persisted cache-idbinKey - the cache keylListenerId - the service-unique identifier of the listening memberfLite - true iff the listener should receive "lite" events
public boolean visitLock(long lOldCacheId,
Binary binKey,
long lHolderId,
long lHolderThreadId)
CachePersistenceHelper.VisitorvisitLock in interface CachePersistenceHelper.VisitorlOldCacheId - the persisted cache-idbinKey - the cache keylHolderId - the service-unique identifier of the lock holderlHolderThreadId - the thread-id of the lock holder
public boolean visitIndex(long lOldCacheId,
Binary binExtractor,
Binary binComparator)
CachePersistenceHelper.VisitorvisitIndex in interface CachePersistenceHelper.VisitorlOldCacheId - the persisted cache-idbinExtractor - the index extractorbinComparator - the index comparator
public boolean visitTrigger(long lOldCacheId,
Binary binTrigger)
CachePersistenceHelper.VisitorvisitTrigger in interface CachePersistenceHelper.VisitorlOldCacheId - the persisted cache-idbinTrigger - the triggerprotected String getCacheName(long lOldCacheId)
lOldCacheId - the old cache id to lookup