Methods Summary |
---|
public long | getAverageBytesReadFromCache()
return( cache_read_average.getAverage() );
|
public long | getAverageBytesReadFromFile()
return( file_read_average.getAverage() );
|
public long | getAverageBytesWrittenToCache()
return( cache_write_average.getAverage());
|
public long | getAverageBytesWrittenToFile()
return( file_write_average.getAverage() );
|
public boolean[] | getBytesInCache(org.gudy.azureus2.core3.torrent.TOTorrent torrent, long[] absoluteOffsets, long[] lengths)
return manager.getBytesInCache( torrent, absoluteOffsets, lengths);
|
public long | getBytesReadFromCache()
return( manager.getBytesReadFromCache());
|
public long | getBytesReadFromFile()
return( manager.getBytesReadFromFile());
|
public long | getBytesWrittenToCache()
return( manager.getBytesWrittenToCache());
|
public long | getBytesWrittenToFile()
return( manager.getBytesWrittenToFile());
|
public long | getCacheReadCount()
return( manager.getCacheReadCount());
|
public long | getCacheWriteCount()
return( manager.getCacheWriteCount());
|
public long | getFileReadCount()
return( manager.getFileReadCount());
|
public long | getFileWriteCount()
return( manager.getFileWriteCount());
|
public long | getSize()
return( manager.getCacheSize());
|
public long | getUsedSize()
return( manager.getCacheUsed());
|
protected void | update()
try{
this_mon.enter();
// cache read
long cache_read = manager.getBytesReadFromCache();
long cache_read_diff = cache_read - last_cache_read;
last_cache_read = cache_read;
cache_read_average.addValue( cache_read_diff );
// cache write
long cache_write = manager.getBytesWrittenToCache();
long cache_write_diff = cache_write - last_cache_write;
last_cache_write = cache_write;
cache_write_average.addValue( cache_write_diff );
// file read
long file_read = manager.getBytesReadFromFile();
long file_read_diff = file_read - last_file_read;
last_file_read = file_read;
file_read_average.addValue( file_read_diff );
// file write
long file_write = manager.getBytesWrittenToFile();
long file_write_diff = file_write - last_file_write;
last_file_write = file_write;
file_write_average.addValue( file_write_diff );
}finally{
this_mon.exit();
}
|