Package com.biglybt.pifimpl.local.disk
Class DiskManagerRandomReadController
- java.lang.Object
-
- com.biglybt.pifimpl.local.disk.DiskManagerRandomReadController
-
public class DiskManagerRandomReadController extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
DiskManagerRandomReadController.DiskManagerRandomReadRequestImpl
-
Field Summary
Fields Modifier and Type Field Description private boolean
busy
private static java.util.Map<DownloadImpl,DiskManagerRandomReadController>
controller_map
private AsyncDispatcher
dispatcher
private DownloadImpl
download
private long
last_busy_time
private java.util.List<DiskManagerRandomReadController.DiskManagerRandomReadRequestImpl>
requests
private boolean
set_force_start
private TimerEventPeriodic
timer_event
-
Constructor Summary
Constructors Modifier Constructor Description private
DiskManagerRandomReadController(DownloadImpl _download)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private DiskManagerRandomReadRequest
addRequest(DiskManagerFileInfoImpl file, long file_offset, long length, boolean reverse_order, DiskManagerListener listener)
private void
clearHint(PEPeerManager pm, int hint_piece)
static DiskManagerRandomReadRequest
createRequest(DownloadImpl download, DiskManagerFileInfoImpl file, long file_offset, long length, boolean reverse_order, DiskManagerListener listener)
private void
executeRequest()
-
-
-
Field Detail
-
controller_map
private static java.util.Map<DownloadImpl,DiskManagerRandomReadController> controller_map
-
download
private DownloadImpl download
-
requests
private java.util.List<DiskManagerRandomReadController.DiskManagerRandomReadRequestImpl> requests
-
dispatcher
private AsyncDispatcher dispatcher
-
set_force_start
private boolean set_force_start
-
timer_event
private TimerEventPeriodic timer_event
-
busy
private volatile boolean busy
-
last_busy_time
private volatile long last_busy_time
-
-
Constructor Detail
-
DiskManagerRandomReadController
private DiskManagerRandomReadController(DownloadImpl _download)
-
-
Method Detail
-
createRequest
public static DiskManagerRandomReadRequest createRequest(DownloadImpl download, DiskManagerFileInfoImpl file, long file_offset, long length, boolean reverse_order, DiskManagerListener listener) throws DownloadException
- Throws:
DownloadException
-
addRequest
private DiskManagerRandomReadRequest addRequest(DiskManagerFileInfoImpl file, long file_offset, long length, boolean reverse_order, DiskManagerListener listener)
-
executeRequest
private void executeRequest()
-
clearHint
private void clearHint(PEPeerManager pm, int hint_piece)
-
-