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
ConstructorDescriptionStatsVisitor
(com.oracle.coherence.persistence.PersistenceStatistics stats) Construct a new Stats visitor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getCacheName
(long lOldCacheId) Return the cache name based upon the old cache id.void
Set theLongArray
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
Apply the visitor to the specified cache entry lock.boolean
visitTrigger
(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.Visitor
Apply the visitor to the specified cache entry (key-value pair).- Specified by:
visitCacheEntry
in 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.Visitor
Apply the visitor to the specified cache entry listener.- Specified by:
visitListener
in 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.Visitor
Apply the visitor to the specified cache entry lock.- Specified by:
visitLock
in 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.Visitor
Apply the visitor to the specified cache index.- Specified by:
visitIndex
in 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.Visitor
Apply the visitor to the specified trigger.- Specified by:
visitTrigger
in 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 theLongArray
of caches for this visitor.- Parameters:
laCaches
- the LongArray of caches
-