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.booleanvoidvoidStops the disk manager and informs the download manager that things have gone wrong.voidsetFailedAndRecheck(DiskManagerFileInfo file, String reason) voidsetPieceDone(DiskManagerPieceImpl piece, boolean done) voidvoidMethods 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, rateLimitChanged, readBlock, removeListener, saveResumeData, saveState, setMoveState, setPieceCheckingEnabled, start, stop
-
Method Details
-
getDisplayName
String getDisplayName() -
getDiskAccessController
DiskAccessController getDiskAccessController() -
getPieceList
- Specified by:
getPieceListin interfaceDiskManager
-
getPieceHash
- Throws:
TOTorrentException
-
setFailed
Stops the disk manager and informs the download manager that things have gone wrong.- Parameters:
reason-
-
setFailedAndRecheck
-
setPieceDone
-
isUploadOnly
boolean isUploadOnly() -
getTorrent
TOTorrent getTorrent()- Specified by:
getTorrentin 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()
-