FileDocCategorySizeDatePackage
TorrentRemove.javaAPI DocAzureus 3.0.3.41941Thu Aug 02 17:32:30 BST 2007org.gudy.azureus2.ui.console.commands

TorrentRemove

public class TorrentRemove extends TorrentCommand
console command to remove a torrent. extracted from the Torrent command written by tobias

Fields Summary
Constructors Summary
public TorrentRemove()

		super(new String[] {"remove", "r"}, "Removing");
	
Methods Summary
public java.lang.StringgetCommandDescriptions()

		return("remove (<torrentoptions>)\tr\tRemove torrent(s).");
	
protected booleanperformCommand(org.gudy.azureus2.ui.console.ConsoleInput ci, org.gudy.azureus2.core3.download.DownloadManager dm, java.util.List args)

		try {
			ci.getGlobalManager().removeDownloadManager(dm);
		} catch (GlobalManagerDownloadRemovalVetoException e) {
			ci.out.println("> Veto when removing torrent (" + e.getMessage() + ")");
			return false;
		} catch (Exception e) {
			e.printStackTrace(ci.out);
			return false;
		}
		return true;