org.bejug.javacareers.feeder
Class AggregatorFeederTask

java.lang.Object
  extended byorg.bejug.javacareers.feeder.FeederTask
      extended byorg.bejug.javacareers.feeder.AggregatorFeederTask

public class AggregatorFeederTask
extends FeederTask

Reads RSS files and stores the data in a datasource.

Version:
$Revision: 1.6 $ - $Date: 2005/12/20 15:36:45 $
Author:
Bavo Bruylandt (Last modified by $Author: shally $)

Field Summary
static org.apache.commons.logging.Log LOG
          The class logger.
 
Fields inherited from class org.bejug.javacareers.feeder.FeederTask
channel, filepath
 
Constructor Summary
AggregatorFeederTask()
           
 
Method Summary
 void addListsToDataBase(java.util.ArrayList lists)
          Adds the Joblists to the database.
 java.util.Comparator getByFeedURL()
           
 void init()
          Called by IoC container after constructor.
 void mergeAndUpdateLists(java.util.List newList, java.util.List oldList)
          merges and updates the lists.
 java.util.ArrayList processFeeds()
          Process the feeds and returns JobLists.
 void run()
          Starts the task in seperate thread.
 void setByFeedURL(java.util.Comparator byFeedURL)
           
 
Methods inherited from class org.bejug.javacareers.feeder.FeederTask
constructFeeder, getAdminService, getFeederDaemonConfig, getJavaCareersConfig, getJobService, getRssFeedService, getSearchCriteriaFactory, getSearchCriteriaService, isRunning, setAdminService, setFeederDaemonConfig, setJavaCareersConfig, setJobService, setRssFeedService, setRunning, setSearchCriteriaFactory, setSearchCriteriaService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
The class logger.

Constructor Detail

AggregatorFeederTask

public AggregatorFeederTask()
Method Detail

init

public void init()
Called by IoC container after constructor.

See Also:
/applicationContext-Feeder.xml

run

public void run()
Starts the task in seperate thread.


processFeeds

public java.util.ArrayList processFeeds()
Process the feeds and returns JobLists.

Returns:
List of JobLists, one for each feed

addListsToDataBase

public void addListsToDataBase(java.util.ArrayList lists)
Adds the Joblists to the database.

Parameters:
lists - List of JobLists

mergeAndUpdateLists

public void mergeAndUpdateLists(java.util.List newList,
                                java.util.List oldList)
merges and updates the lists.

Parameters:
newList - resulting list from the merge.
oldList - old list to update.

getByFeedURL

public java.util.Comparator getByFeedURL()
Returns:
the comparator needed.

setByFeedURL

public void setByFeedURL(java.util.Comparator byFeedURL)
Parameters:
byFeedURL - the comparator.


Copyright © 2005-2006 BeJUG. All Rights Reserved.