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.
Since:
12.2.1
Author:
tam/hr 2014.11.21
  • 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

      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 interface CachePersistenceHelper.Visitor
      Parameters:
      lOldCacheId - the persisted cache-id
      binKey - the cache key
      binValue - 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 interface CachePersistenceHelper.Visitor
      Parameters:
      lOldCacheId - the persisted cache-id
      binKey - the cache key
      lListenerId - the service-unique identifier of the listening member
      fLite - 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 interface CachePersistenceHelper.Visitor
      Parameters:
      lOldCacheId - the persisted cache-id
      binKey - the cache key
      lHolderId - the service-unique identifier of the lock holder
      lHolderThreadId - 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 interface CachePersistenceHelper.Visitor
      Parameters:
      lOldCacheId - the persisted cache-id
      binExtractor - the index extractor
      binComparator - 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 interface CachePersistenceHelper.Visitor
      Parameters:
      lOldCacheId - the persisted cache-id
      binTrigger - 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
    • setCaches

      public void setCaches(LongArray laCaches)
      Set the LongArray of caches for this visitor.
      Parameters:
      laCaches - the LongArray of caches