Package com.biglybt.core.helpers
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 GlobalManager
private final FilenameFilter
private final LoggerChannel
private static final LogIDs
private final ParameterListener
private static final String
(package private) boolean
protected 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 void
private void
applyTag
(DownloadManager dm, String tag_name) void
destroy()
Stop and terminate this folder importer watcher.private void
handleMagnet
(File file) (package private) void
private void
private File
renameToImported
(File parent, File file) void
start()
-
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
-