Interface DMReader
- All Known Implementing Classes:
DMReaderImpl
public interface DMReader
-
Method Summary
Modifier and TypeMethodDescriptioncreateReadRequest(int pieceNumber, int offset, int length) longlong[]getStats()2 entries, first = read-ops, second = read-bytesbooleanhasOutstandingReadRequestForPiece(int piece_number) readBlock(int pieceNumber, int offset, int length) voidreadBlock(DiskManagerReadRequest request, DiskManagerReadRequestListener listener) voidsetSuspended(boolean suspended) voidstart()voidstop()
-
Method Details
-
start
void start() -
stop
void stop() -
setSuspended
void setSuspended(boolean suspended) -
readBlock
-
createReadRequest
-
readBlock
-
hasOutstandingReadRequestForPiece
boolean hasOutstandingReadRequestForPiece(int piece_number) -
getStats
long[] getStats()2 entries, first = read-ops, second = read-bytes- Returns:
-
getLatency
long getLatency()
-