Class TorrentFolderWatcher
java.lang.Object
com.biglybt.core.helpers.TorrentFolderWatcher
Watches a folder for new torrents and imports them.
NOTE: Folder-to-watch and other watching params are taken from a global
config option right now, so starting multiple instances of
TorrentFolderWatcher is useless as currently coded.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GlobalManagerprivate final FilenameFilterprivate final LoggerChannelprivate static final LogIDsprivate final ParameterListenerprivate static final String(package private) booleanprotected final AEMonitor(package private) final Thread -
Constructor Summary
ConstructorsConstructorDescriptionTorrentFolderWatcher(GlobalManager global_manager) Start a folder watcher, which will auto-import torrents via the given manager. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidapplyTag(DownloadManager dm, String tag_name) voiddestroy()Stop and terminate this folder importer watcher.private voidhandleMagnet(File file) (package private) voidprivate voidprivate FilerenameToImported(File parent, File file) voidstart()
-
Field Details
-
LOGID
-
PARAMID_FOLDER
- See Also:
-
_global_manager
-
log
-
running
volatile boolean running -
to_delete
-
this_mon
-
filename_filter
-
param_listener
-
watch_thread
-
pending_magnets
-
active_magnets
-
failed_magnets
-
-
Constructor Details
-
TorrentFolderWatcher
Start a folder watcher, which will auto-import torrents via the given manager.- Parameters:
global_manager-
-
-
Method Details
-
start
public void start() -
destroy
public void destroy()Stop and terminate this folder importer watcher. -
renameToImported
-
importAddedFiles
void importAddedFiles() -
applyTag
-
applyAutoTagging
-
handleMagnet
-
log
-