|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Plugin
The Plugin interface is the base for all web site parsing for torrents. Classes implement the methods here
plus the run() method from the java.lang.Runnable extension and are called from
the com.torrentMech.crawler.TorrentCrawler class as a new thread. The TorrentCrawler class
starts the plugin and routinely calls the getStatus() method to check on the status of the plugin.
Upon completion of its work, the Plugin implementation's getIterator() method is called by
TorrentCrawler and its torrent files are iterated and stored in the DBMS.
| Method Summary | |
|---|---|
java.util.Iterator |
getIterator()
Returns a java.util.Iterator that can be used to iterate through the bencoded torrents
that this Plugin implementation retrieves from the web. |
java.lang.String |
getStatus()
Returns a java.lang.String status message giving useful information about the current
state/progress of the Plugin's torrent retrieval status. |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Method Detail |
|---|
java.util.Iterator getIterator()
java.util.Iterator that can be used to iterate through the bencoded torrents
that this Plugin implementation retrieves from the web.
java.util.Iterator containing bencoded torrents.java.lang.String getStatus()
java.lang.String status message giving useful information about the current
state/progress of the Plugin's torrent retrieval status.
java.lang.String status message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||