TorreON
TorreON is an OSGi service for downloading files using the Bittorrent protocol. TorreOn needs the multimedia API (es.upm.dit.multimedia.contents).
You can combine TorreOn with other OS4OS projects; check out Ofindu to search RSS feeds, build ResultBeans (TorreOn input parameter) and use Torreon to download .torrent files.
TorreOn is based on the bittorrent client implementation by the Snark project.
TorreOn has been developed at the Departamento de Ingeniería Telemáica (DIT) of the Universidad Politénica de Madrid (UPM), Spain.
License
TorreON is an Open Source project licensed under de GPL license. So, its source code is freely available to anybody. You can download at OS4OS.
Crash Course
Adding a new download to TorreOn:
1. Get a reference to the download manager service
2. Create a ResultBean instance (a JavaBean with a name, a download URL and some optional parameters), e.g. by searching an RSS feed with Ofindu
3. Add it to the download manager.
ServiceReference[] downloadRefs = context.getServiceReferences(
DownloadManager.class.getName(), "(download_type=bittorrent)");
DownloadManager bittorrentDownloadManager =
(DownloadManager) context.getService(downloadRefs[0]);
ResultBean searchResult = previouslyGeneratedResultBean;
Download download = bittorrentDownloadManager.addDownload(searchResult,
System.getProperty("user.home") + System.getProperty("file.separator")
+ "TorreON" + System.getProperty("file.separator"));
Then you can start or stop the downloading process:
bittorrentDownloadManager.startDownload(download);
...
bittorrentDownloadManager.stopDownload(download);
Torreon can search RSS feeds using a configuration file. This is how you can save and load configuration in TorreON:
bittorrentDownloadManager.loadConfiguration("Feeds.conf");
...
bittorrentDownloadManager.saveConfiguration("Feeds.conf");
Documentation
To learn more on TorreON browse the Javadoc documentation page, accesible from the left menu of this webpage.
Forge Site
To access the forums, mailing lists or simply to obtain more information go to the Forge site clicking here.
Acknowledgements
TorreOn development has been partially supported by the ITEA Passepartout project