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.Visitor
to 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 String
getCacheName(long lOldCacheId)
Return the cache name based upon the old cache id.void
setCaches(LongArray laCaches)
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
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.
-
-
-
Method Detail
-
visitCacheEntry
public boolean visitCacheEntry(long lOldCacheId, Binary binKey, Binary binValue)
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
public boolean visitListener(long lOldCacheId, Binary binKey, long lListenerId, boolean fLite)
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
public boolean visitLock(long lOldCacheId, Binary binKey, long lHolderId, long lHolderThreadId)
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
public boolean visitIndex(long lOldCacheId, Binary binExtractor, Binary binComparator)
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
public boolean visitTrigger(long lOldCacheId, Binary binTrigger)
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
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
-
-