Class EmptyPrefetchingStatistics
java.lang.Object
org.apache.hadoop.fs.impl.prefetch.EmptyPrefetchingStatistics
- All Implemented Interfaces:
PrefetchingStatistics,IOStatisticsSource
Empty implementation of the prefetching statistics interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidA block has been saved to the file cache.voidA block has been evicted from the file cache.voidA block has been removed from the file cache.voidexecutorAcquired(Duration timeInQueue) An executor has been acquired, either for prefetching or caching.static EmptyPrefetchingStatisticsvoidmemoryAllocated(int size) A new buffer has been added to the buffer pool.voidmemoryFreed(int size) Previously allocated memory has been freed.voidA prefetch operation has completed.A prefetch operation has started.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.fs.statistics.IOStatisticsSource
getIOStatistics
-
Method Details
-
getInstance
-
prefetchOperationStarted
Description copied from interface:PrefetchingStatisticsA prefetch operation has started.- Specified by:
prefetchOperationStartedin interfacePrefetchingStatistics- Returns:
- duration tracker
-
blockAddedToFileCache
public void blockAddedToFileCache()Description copied from interface:PrefetchingStatisticsA block has been saved to the file cache.- Specified by:
blockAddedToFileCachein interfacePrefetchingStatistics
-
blockRemovedFromFileCache
public void blockRemovedFromFileCache()Description copied from interface:PrefetchingStatisticsA block has been removed from the file cache.- Specified by:
blockRemovedFromFileCachein interfacePrefetchingStatistics
-
blockEvictedFromFileCache
public void blockEvictedFromFileCache()Description copied from interface:PrefetchingStatisticsA block has been evicted from the file cache.- Specified by:
blockEvictedFromFileCachein interfacePrefetchingStatistics
-
prefetchOperationCompleted
public void prefetchOperationCompleted()Description copied from interface:PrefetchingStatisticsA prefetch operation has completed.- Specified by:
prefetchOperationCompletedin interfacePrefetchingStatistics
-
executorAcquired
Description copied from interface:PrefetchingStatisticsAn executor has been acquired, either for prefetching or caching.- Specified by:
executorAcquiredin interfacePrefetchingStatistics- Parameters:
timeInQueue- time taken to acquire an executor.
-
memoryAllocated
public void memoryAllocated(int size) Description copied from interface:PrefetchingStatisticsA new buffer has been added to the buffer pool.- Specified by:
memoryAllocatedin interfacePrefetchingStatistics- Parameters:
size- size of the new buffer
-
memoryFreed
public void memoryFreed(int size) Description copied from interface:PrefetchingStatisticsPreviously allocated memory has been freed.- Specified by:
memoryFreedin interfacePrefetchingStatistics- Parameters:
size- size of memory freed.
-