org.datamanager.simpleton
Class NewsGroupDownloadSimpleton

java.lang.Object
  |
  +--org.datamanager.kernel.Simpleton
        |
        +--org.datamanager.simpleton.NewsGroupDownloadSimpleton
All Implemented Interfaces:
EventHandler

public class NewsGroupDownloadSimpleton
extends Simpleton
implements EventHandler

This Simpleton's job is to go to a news group and download a list of articles. Those articles are then sent of in NewsMessageDownloadEvents to be downloaded by another simpleton.


Nested Class Summary
 
Nested classes inherited from class org.datamanager.kernel.Simpleton
Simpleton.Information, Simpleton.Priority
 
Constructor Summary
NewsGroupDownloadSimpleton()
           
 
Method Summary
protected  void download(String address, String group)
           
 void handle(DataManagerEvent event)
          Handle a DataManagerEvent that has been fired.
 void process()
          Performs the work of this Simpleton.
 
Methods inherited from class org.datamanager.kernel.Simpleton
clone, getInformation, getPriority, setInformation, setPriority, start
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsGroupDownloadSimpleton

public NewsGroupDownloadSimpleton()
Method Detail

process

public void process()
Description copied from class: Simpleton
Performs the work of this Simpleton. Simpleton implementation must override this class.

Specified by:
process in class Simpleton

handle

public void handle(DataManagerEvent event)
Description copied from interface: EventHandler
Handle a DataManagerEvent that has been fired.

Specified by:
handle in interface EventHandler
Parameters:
event - The event to handle.

download

protected void download(String address,
                        String group)


See the Helium Website