FileDocCategorySizeDatePackage
TorrentQueue.javaAPI DocAzureus 3.0.3.41932Thu Jul 28 09:34:26 BST 2005org.gudy.azureus2.ui.console.commands

TorrentQueue

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

Fields Summary
Constructors Summary
public TorrentQueue()

		super( new String[] { "queue", "q" }, "Queueing");
	
Methods Summary
public java.lang.StringgetCommandDescriptions()

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

		try {
			if (dm.getState() == DownloadManager.STATE_STOPPED)
				dm.setStateQueued();
			else if (dm.getState() == DownloadManager.STATE_DOWNLOADING || dm.getState() == DownloadManager.STATE_SEEDING)
				dm.stopIt( DownloadManager.STATE_QUEUED, false, false );
			else
				return false;
		} catch (Exception e) {
			e.printStackTrace(ci.out);
			return false;
		}
		return true;