Package com.biglybt.core.disk
Class DiskManagerFactory
- java.lang.Object
-
- com.biglybt.core.disk.DiskManagerFactory
-
public class DiskManagerFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DiskManagerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearResumeData(DownloadManager download_manager, DiskManagerFileInfo file)
static DiskManager
create(TOTorrent torrent, DownloadManager manager)
static void
deleteDataFiles(TOTorrent torrent, java.lang.String torrent_save_dir, java.lang.String torrent_save_file, boolean force_no_recycle)
static DiskAccessController
getDiskAccessController()
static DiskManagerFileInfoSet
getFileInfoSkeleton(DownloadManager download_manager, DiskManagerListener listener)
static void
initialise(Core core)
static boolean
isTorrentResumeDataComplete(DownloadManagerState dms)
static void
recheckFile(DownloadManager download_manager, DiskManagerFileInfo file)
static void
setFileLinks(DownloadManager download_manager, LinkFileMap links)
static void
setResumeDataCompletelyValid(DownloadManagerState download_manager_state)
Method to preset resume data to indicate completely valid file.static void
setTorrentResumeDataNearlyComplete(DownloadManagerState dms)
Sets resume data complete apart from a few random pieces.
-
-
-
Method Detail
-
initialise
public static void initialise(Core core)
-
getDiskAccessController
public static DiskAccessController getDiskAccessController()
-
create
public static DiskManager create(TOTorrent torrent, DownloadManager manager)
-
setResumeDataCompletelyValid
public static void setResumeDataCompletelyValid(DownloadManagerState download_manager_state)
Method to preset resume data to indicate completely valid file. Doesn't save the torrent- Parameters:
torrent
-
-
setTorrentResumeDataNearlyComplete
public static void setTorrentResumeDataNearlyComplete(DownloadManagerState dms)
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
public static boolean isTorrentResumeDataComplete(DownloadManagerState dms)
-
deleteDataFiles
public static void deleteDataFiles(TOTorrent torrent, java.lang.String torrent_save_dir, java.lang.String torrent_save_file, boolean force_no_recycle)
-
getFileInfoSkeleton
public static DiskManagerFileInfoSet getFileInfoSkeleton(DownloadManager download_manager, DiskManagerListener listener)
-
setFileLinks
public static void setFileLinks(DownloadManager download_manager, LinkFileMap links)
-
clearResumeData
public static void clearResumeData(DownloadManager download_manager, DiskManagerFileInfo file)
-
recheckFile
public static void recheckFile(DownloadManager download_manager, DiskManagerFileInfo file)
-
-