org.gudy.azureus2.core3.disk.impl.access.impl
Class DMReaderImpl
java.lang.Object
org.gudy.azureus2.core3.disk.impl.access.impl.DMReaderImpl
- All Implemented Interfaces:
- DMReader
public class DMReaderImpl
- extends java.lang.Object
- implements DMReader
- Author:
- parg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
this_mon
protected final AEMonitor this_mon
DMReaderImpl
public DMReaderImpl(DiskManagerHelper _disk_manager)
start
public void start()
- Specified by:
start
in interface DMReader
stop
public void stop()
- Specified by:
stop
in interface DMReader
createReadRequest
public DiskManagerReadRequest createReadRequest(int pieceNumber,
int offset,
int length)
- Specified by:
createReadRequest
in interface DMReader
hasOutstandingReadRequestForPiece
public boolean hasOutstandingReadRequestForPiece(int piece_number)
- Specified by:
hasOutstandingReadRequestForPiece
in interface DMReader
getStats
public long[] getStats()
- Description copied from interface:
DMReader
- 2 entries, first = read-ops, second = read-bytes
- Specified by:
getStats
in interface DMReader
- Returns:
readBlock
public DirectByteBuffer readBlock(int pieceNumber,
int offset,
int length)
- Specified by:
readBlock
in interface DMReader
readBlock
public void readBlock(DiskManagerReadRequest request,
DiskManagerReadRequestListener _listener)
- Specified by:
readBlock
in interface DMReader