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 a
CachePersistenceHelper.Visitor to collect details
statistics from the snapshot we are analysing.-
Constructor Summary
ConstructorsConstructorDescriptionStatsVisitor(com.oracle.coherence.persistence.PersistenceStatistics stats) Construct a new Stats visitor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetCacheName(long lOldCacheId) Return the cache name based upon the old cache id.voidSet 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.booleanApply the visitor to the specified cache entry lock.booleanvisitTrigger(long lOldCacheId, Binary binTrigger) Apply the visitor to the specified trigger.
-
Constructor Details
-
StatsVisitor
public StatsVisitor(com.oracle.coherence.persistence.PersistenceStatistics stats) Construct a new Stats visitor.- Parameters:
stats- the statistics to update when visiting
-
-
Method Details
-
visitCacheEntry
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
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
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
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
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
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
-
setCaches
Set theLongArrayof caches for this visitor.- Parameters:
laCaches- the LongArray of caches
-