Class DiskManagerUtil
java.lang.Object
com.biglybt.core.disk.impl.DiskManagerUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final AEMonitorprivate static final LogIDsprotected static intprivate static booleanprivate static List<CoreOperationTask> protected static final Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckBlockConsistencyForHint(DiskManager dm, String originator, int pieceNumber, int offset, int length) static booleancheckBlockConsistencyForRead(DiskManager dm, String originator, boolean peer_request, int pieceNumber, int offset, int length) static StringconvertCacheStorageTypeToString(int cache_type) static intstatic intconvertDMStorageTypeToCache(int dm_type) static StringconvertDMStorageTypeToString(int dm_type) static voiddoFileExistenceChecksAfterSkipChange(DiskManagerFileInfoSet fileSet, boolean[] toCheck, boolean isSkipped, DownloadManager dm) static DiskManagerPiece[]static DiskManagerFileInfoSetgetFileInfoSkeleton(DownloadManager download_manager, DiskManagerListener listener) static booleanstatic booleanprotected static voidloadFileDownloaded(DownloadManager download_manager, DiskManagerFileInfoHelper[] files) (package private) static voidloadFilePriorities(DownloadManager download_manager, DiskManagerFileInfoSet fileSet) static voidrunMoveTask(DownloadManager download_manager, File destination, Runnable target, DiskManagerUtil.MoveTaskAapter adapter) (package private) static StringsetFileLink(DownloadManager download_manager, DiskManagerFileInfo[] info, DiskManagerFileInfo file_info, File from_file, File to_link, boolean dont_delete_existing, FileUtil.ProgressListener pl) protected static FilesetSkippedInternalSupport(DownloadManager dm, DiskManagerFileInfo dm_file, CacheFile cache_file, boolean skipped) protected static voidstoreFilePriorities(DownloadManager download_manager, DiskManagerFileInfo[] files)
-
Field Details
-
LOGID
-
max_read_block_size
protected static int max_read_block_size -
skip_lock
-
cache_read_mon
-
move_tasks
-
move_smallest_first
private static boolean move_smallest_first
-
-
Constructor Details
-
DiskManagerUtil
public DiskManagerUtil()
-
-
Method Details
-
checkBlockConsistencyForHint
public static boolean checkBlockConsistencyForHint(DiskManager dm, String originator, int pieceNumber, int offset, int length) -
checkBlockConsistencyForRead
public static boolean checkBlockConsistencyForRead(DiskManager dm, String originator, boolean peer_request, int pieceNumber, int offset, int length) -
doFileExistenceChecksAfterSkipChange
public static void doFileExistenceChecksAfterSkipChange(DiskManagerFileInfoSet fileSet, boolean[] toCheck, boolean isSkipped, DownloadManager dm) -
setFileLink
static String setFileLink(DownloadManager download_manager, DiskManagerFileInfo[] info, DiskManagerFileInfo file_info, File from_file, File to_link, boolean dont_delete_existing, FileUtil.ProgressListener pl) -
getFileInfoSkeleton
public static DiskManagerFileInfoSet getFileInfoSkeleton(DownloadManager download_manager, DiskManagerListener listener) -
convertDMStorageTypeFromString
-
convertDMStorageTypeToString
-
convertCacheStorageTypeToString
-
convertDMStorageTypeToCache
public static int convertDMStorageTypeToCache(int dm_type) -
storeFilePriorities
protected static void storeFilePriorities(DownloadManager download_manager, DiskManagerFileInfo[] files) -
loadFilePriorities
-
loadFileDownloaded
protected static void loadFileDownloaded(DownloadManager download_manager, DiskManagerFileInfoHelper[] files) -
isNoSpaceException
-
isFileWriteException
-
getDiskManagerPiecesSnapshot
public static DiskManagerPiece[] getDiskManagerPiecesSnapshot(DownloadManager dm, DiskManagerFileInfoSet file_set) -
runMoveTask
public static void runMoveTask(DownloadManager download_manager, File destination, Runnable target, DiskManagerUtil.MoveTaskAapter adapter) throws DownloadManagerException - Throws:
DownloadManagerException
-
setSkippedInternalSupport
protected static File setSkippedInternalSupport(DownloadManager dm, DiskManagerFileInfo dm_file, CacheFile cache_file, boolean skipped)
-