Class CacheFileManagerStatsImpl
- java.lang.Object
-
- com.biglybt.core.diskmanager.cache.impl.CacheFileManagerStatsImpl
-
- All Implemented Interfaces:
CacheFileManagerStats
public class CacheFileManagerStatsImpl extends java.lang.Object implements CacheFileManagerStats
-
-
Field Summary
Fields Modifier and Type Field Description protected Average
cache_read_average
protected Average
cache_write_average
protected Average
file_read_average
protected Average
file_write_average
protected long
last_cache_read
protected long
last_cache_write
protected long
last_file_read
protected long
last_file_write
protected CacheFileManagerImpl
manager
protected AEMonitor
this_mon
-
Constructor Summary
Constructors Modifier Constructor Description protected
CacheFileManagerStatsImpl(CacheFileManagerImpl _manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAverageBytesReadFromCache()
long
getAverageBytesReadFromFile()
long
getAverageBytesWrittenToCache()
long
getAverageBytesWrittenToFile()
boolean[]
getBytesInCache(TOTorrent torrent, long[] absoluteOffsets, long[] lengths)
long
getBytesReadFromCache()
long
getBytesReadFromFile()
long
getBytesWrittenToCache()
long
getBytesWrittenToFile()
long
getCacheReadCount()
long
getCacheWriteCount()
long
getFileReadCount()
long
getFileWriteCount()
long
getSize()
long
getUsedSize()
protected void
update()
-
-
-
Field Detail
-
manager
protected final CacheFileManagerImpl manager
-
cache_read_average
protected final Average cache_read_average
-
cache_write_average
protected final Average cache_write_average
-
file_read_average
protected final Average file_read_average
-
file_write_average
protected final Average file_write_average
-
last_cache_read
protected long last_cache_read
-
last_cache_write
protected long last_cache_write
-
last_file_read
protected long last_file_read
-
last_file_write
protected long last_file_write
-
this_mon
protected final AEMonitor this_mon
-
-
Constructor Detail
-
CacheFileManagerStatsImpl
protected CacheFileManagerStatsImpl(CacheFileManagerImpl _manager)
-
-
Method Detail
-
update
protected void update()
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceCacheFileManagerStats
-
getUsedSize
public long getUsedSize()
- Specified by:
getUsedSize
in interfaceCacheFileManagerStats
-
getBytesWrittenToCache
public long getBytesWrittenToCache()
- Specified by:
getBytesWrittenToCache
in interfaceCacheFileManagerStats
-
getBytesWrittenToFile
public long getBytesWrittenToFile()
- Specified by:
getBytesWrittenToFile
in interfaceCacheFileManagerStats
-
getBytesReadFromCache
public long getBytesReadFromCache()
- Specified by:
getBytesReadFromCache
in interfaceCacheFileManagerStats
-
getBytesReadFromFile
public long getBytesReadFromFile()
- Specified by:
getBytesReadFromFile
in interfaceCacheFileManagerStats
-
getAverageBytesWrittenToCache
public long getAverageBytesWrittenToCache()
- Specified by:
getAverageBytesWrittenToCache
in interfaceCacheFileManagerStats
-
getAverageBytesWrittenToFile
public long getAverageBytesWrittenToFile()
- Specified by:
getAverageBytesWrittenToFile
in interfaceCacheFileManagerStats
-
getAverageBytesReadFromCache
public long getAverageBytesReadFromCache()
- Specified by:
getAverageBytesReadFromCache
in interfaceCacheFileManagerStats
-
getAverageBytesReadFromFile
public long getAverageBytesReadFromFile()
- Specified by:
getAverageBytesReadFromFile
in interfaceCacheFileManagerStats
-
getCacheReadCount
public long getCacheReadCount()
- Specified by:
getCacheReadCount
in interfaceCacheFileManagerStats
-
getCacheWriteCount
public long getCacheWriteCount()
- Specified by:
getCacheWriteCount
in interfaceCacheFileManagerStats
-
getFileReadCount
public long getFileReadCount()
- Specified by:
getFileReadCount
in interfaceCacheFileManagerStats
-
getFileWriteCount
public long getFileWriteCount()
- Specified by:
getFileWriteCount
in interfaceCacheFileManagerStats
-
getBytesInCache
public boolean[] getBytesInCache(TOTorrent torrent, long[] absoluteOffsets, long[] lengths)
- Specified by:
getBytesInCache
in interfaceCacheFileManagerStats
-
-