Package com.biglybt.core.disk.impl
Interface DiskManagerHelper
- All Superinterfaces:
DiskManager
- All Known Implementing Classes:
DiskManagerImpl
,LWSDiskManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.biglybt.core.disk.DiskManager
DiskManager.DownloadEndedProgress
-
Field Summary
Fields inherited from interface com.biglybt.core.disk.DiskManager
ALLOCATING, BLOCK_SIZE, BLOCK_SIZE_KB, CHECKING, ET_FILE_MISSING, ET_INSUFFICIENT_SPACE, ET_NONE, ET_OTHER, ET_READ_ERROR, ET_STOP_DURING_INIT, ET_WRITE_ERROR, FAULTY, INITIALIZING, READY, SNAPSHOT
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getPieceHash
(int piece_number) getPieceList
(int piece_number) getStorageType
(int fileIndex) Returns the storage type for file atfileIndex
.String[]
Returns the storage type for all files.void
void
Stops the disk manager and informs the download manager that things have gone wrong.void
setFailedAndRecheck
(DiskManagerFileInfo file, String reason) void
setPieceDone
(DiskManagerPieceImpl piece, boolean done) void
void
Methods inherited from interface com.biglybt.core.disk.DiskManager
addListener, checkBlockConsistencyForHint, checkBlockConsistencyForRead, checkBlockConsistencyForWrite, createCheckRequest, createReadRequest, createWriteRequest, downloadEnded, downloadRemoved, enqueueCheckRequest, enqueueCompleteRecheckRequest, enqueueReadRequest, enqueueWriteRequest, filesExist, generateEvidence, getAllocationTask, getAvailability, getCacheMode, getCompleteRecheckStatus, getDownload, getErrorMessage, getErrorType, getFiles, getFileSet, getLatency, getMoveProgress, getMoveSubTask, getNbPieces, getPercentAllocated, getPercentDone, getPercentDoneExcludingDND, getPiece, getPieceLength, getPieceLength, getPieceMap, getPieces, getPriorityChangeMarker, getReadStats, getRecheckCancelled, getRemaining, getRemainingExcludingDND, getSaveLocation, getSizeExcludingDND, getState, getTotalLength, getWriteStats, hasListener, hasOutstandingCheckRequestForPiece, hasOutstandingReadRequestForPiece, hasOutstandingWriteRequestForPiece, isDone, isInteresting, isStopped, moveDataFiles, readBlock, removeListener, saveResumeData, saveState, setMoveState, setPieceCheckingEnabled, start, stop
-
Method Details
-
getDisplayName
String getDisplayName() -
getDiskAccessController
DiskAccessController getDiskAccessController() -
getPieceList
- Specified by:
getPieceList
in interfaceDiskManager
-
getPieceHash
- Throws:
TOTorrentException
-
setFailed
Stops the disk manager and informs the download manager that things have gone wrong.- Parameters:
reason
-
-
setFailedAndRecheck
-
setPieceDone
-
getTorrent
TOTorrent getTorrent()- Specified by:
getTorrent
in interfaceDiskManager
-
getStorageTypes
String[] getStorageTypes()Returns the storage type for all files. According toDiskManagerUtil.convertDMStorageTypeFromString(String)
, values are:
"R"DiskManagerFileInfo.ST_REORDER
"L"DiskManagerFileInfo.ST_LINEAR
"C"DiskManagerFileInfo.ST_COMPACT
"X"DiskManagerFileInfo.ST_REORDER_COMPACT
-
getStorageType
Returns the storage type for file atfileIndex
. According toDiskManagerUtil.convertDMStorageTypeFromString(String)
, values are:
"R"DiskManagerFileInfo.ST_REORDER
"L"DiskManagerFileInfo.ST_LINEAR
"C"DiskManagerFileInfo.ST_COMPACT
"X"DiskManagerFileInfo.ST_REORDER_COMPACT
-
skippedFileSetChanged
-
priorityChanged
-
storageTypeChanged
-
getInternalName
String getInternalName() -
getDownloadState
DownloadManagerState getDownloadState() -
getRecheckScheduler
DiskManagerRecheckScheduler getRecheckScheduler()
-