Class AbstractPersistenceTools.StatsVisitor

    • Constructor Detail

      • StatsVisitor

        public StatsVisitor​(com.oracle.datagrid.persistence.PersistenceStatistics stats)
        Construct a new Stats visitor.
        Parameters:
        stats - the statistics to update when visiting
    • 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 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
      • 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