Package com.tangosol.persistence
Class AbstractPersistenceTools.StatsVisitor
- java.lang.Object
-
- com.tangosol.persistence.AbstractPersistenceTools.StatsVisitor
-
- All Implemented Interfaces:
CachePersistenceHelper.Visitor
- Enclosing class:
- AbstractPersistenceTools
protected static class AbstractPersistenceTools.StatsVisitor extends Object implements CachePersistenceHelper.Visitor
An implementation of aCachePersistenceHelper.Visitorto collect details statistics from the snapshot we are analysing.
-
-
Constructor Summary
Constructors Constructor Description StatsVisitor(com.oracle.datagrid.persistence.PersistenceStatistics stats)Construct a new Stats visitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetCacheName(long lOldCacheId)Return the cache name based upon the old cache id.voidsetCaches(LongArray laCaches)Set theLongArrayof caches for this visitor.booleanvisitCacheEntry(long lOldCacheId, Binary binKey, Binary binValue)Apply the visitor to the specified cache entry (key-value pair).booleanvisitIndex(long lOldCacheId, Binary binExtractor, Binary binComparator)Apply the visitor to the specified cache index.booleanvisitListener(long lOldCacheId, Binary binKey, long lListenerId, boolean fLite)Apply the visitor to the specified cache entry listener.booleanvisitLock(long lOldCacheId, Binary binKey, long lHolderId, long lHolderThreadId)Apply the visitor to the specified cache entry lock.booleanvisitTrigger(long lOldCacheId, Binary binTrigger)Apply the visitor to the specified trigger.
-
-
-
Method Detail
-
visitCacheEntry
public boolean visitCacheEntry(long lOldCacheId, Binary binKey, Binary binValue)Description copied from interface:CachePersistenceHelper.VisitorApply the visitor to the specified cache entry (key-value pair).- Specified by:
visitCacheEntryin interfaceCachePersistenceHelper.Visitor- Parameters:
lOldCacheId- the persisted cache-idbinKey- the cache keybinValue- the cache value- Returns:
- false to terminate the iteration
-
visitListener
public boolean visitListener(long lOldCacheId, Binary binKey, long lListenerId, boolean fLite)Description copied from interface:CachePersistenceHelper.VisitorApply the visitor to the specified cache entry listener.- Specified by:
visitListenerin interfaceCachePersistenceHelper.Visitor- Parameters:
lOldCacheId- the persisted cache-idbinKey- the cache keylListenerId- the service-unique identifier of the listening memberfLite- true iff the listener should receive "lite" events- Returns:
- false to terminate the iteration
-
visitLock
public boolean visitLock(long lOldCacheId, Binary binKey, long lHolderId, long lHolderThreadId)Description copied from interface:CachePersistenceHelper.VisitorApply the visitor to the specified cache entry lock.- Specified by:
visitLockin interfaceCachePersistenceHelper.Visitor- Parameters:
lOldCacheId- the persisted cache-idbinKey- the cache keylHolderId- the service-unique identifier of the lock holderlHolderThreadId- the thread-id of the lock holder- Returns:
- false to terminate the iteration
-
visitIndex
public boolean visitIndex(long lOldCacheId, Binary binExtractor, Binary binComparator)Description copied from interface:CachePersistenceHelper.VisitorApply the visitor to the specified cache index.- Specified by:
visitIndexin interfaceCachePersistenceHelper.Visitor- Parameters:
lOldCacheId- the persisted cache-idbinExtractor- the index extractorbinComparator- the index comparator- Returns:
- false to terminate the iteration
-
visitTrigger
public boolean visitTrigger(long lOldCacheId, Binary binTrigger)Description copied from interface:CachePersistenceHelper.VisitorApply the visitor to the specified trigger.- Specified by:
visitTriggerin interfaceCachePersistenceHelper.Visitor- Parameters:
lOldCacheId- the persisted cache-idbinTrigger- the trigger- Returns:
- false to terminate the iteration
-
getCacheName
protected String getCacheName(long lOldCacheId)
Return the cache name based upon the old cache id.- Parameters:
lOldCacheId- the old cache id to lookup- Returns:
- the cache name based upon the old cache id
-
-