Package com.biglybt.core.disk
Class DiskManagerFactory
java.lang.Object
com.biglybt.core.disk.DiskManagerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearResumeData
(DownloadManager download_manager, DiskManagerFileInfo file) static DiskManager
create
(TOTorrent torrent, DownloadManager manager) static void
deleteDataFiles
(DownloadManager dm, TOTorrent torrent, String torrent_save_dir, String torrent_save_file, boolean force_no_recycle) static DiskAccessController
static DiskManagerFileInfoSet
getFileInfoSkeleton
(DownloadManager download_manager, DiskManagerListener listener) static void
initialise
(Core core) static boolean
static boolean
static void
recheckFile
(DownloadManager download_manager, DiskManagerFileInfo file) static void
setResumeDataCompletelyValid
(DownloadManagerState download_manager_state) Method to preset resume data to indicate completely valid file.static void
setResumeDataTotallyIncomplete
(DownloadManagerState download_manager_state) static void
Sets resume data complete apart from a few random pieces.
-
Constructor Details
-
DiskManagerFactory
public DiskManagerFactory()
-
-
Method Details
-
initialise
-
getDiskAccessController
-
create
-
setResumeDataCompletelyValid
Method to preset resume data to indicate completely valid file. Doesn't save the torrent- Parameters:
torrent
-
-
setResumeDataTotallyIncomplete
-
setTorrentResumeDataNearlyComplete
Sets resume data complete apart from a few random pieces. On torrent start these will be checked This is used in the "open for seeding" mode to ensure that there's at least a chance that the data they claim represents the data for the torrent is valid- Parameters:
torrent
-torrent_save_dir
-torrent_save_file
-
-
isTorrentResumeDataComplete
-
isTorrentResumeDataValid
-
deleteDataFiles
public static void deleteDataFiles(DownloadManager dm, TOTorrent torrent, String torrent_save_dir, String torrent_save_file, boolean force_no_recycle) -
getFileInfoSkeleton
public static DiskManagerFileInfoSet getFileInfoSkeleton(DownloadManager download_manager, DiskManagerListener listener) -
clearResumeData
-
recheckFile
-