|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.util.jobs.Job
net.sourceforge.java.feednread.backend.jobs.NewsFeedAggregatorJob
Job to aggregate a single Favrite i.e. its set
NewsFeed into a given AggregatedNewsFeed. The
Job reports to a higher coordinating
NewsFeedAggregationManagerJob.
| Field Summary | |
private NewsFeedAggregationManagerJob |
aggregationMgr
The coordinating aggregation manager |
private AggregatedNewsFeed |
newsFeed
The AggregatedNewsFeed instance that the Job
adds its parsed NewsFeedEntries to
|
private Favorite |
newsFeedFavorite
The Favorite to aggregate |
| Fields inherited from class net.sourceforge.java.util.jobs.Job |
|
| Fields inherited from interface net.sourceforge.java.util.jobs.IJob |
HIGH_PRIORITY, LOW_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
NewsFeedAggregatorJob(Favorite newsFeedFavorite,
NewsFeedAggregationManagerJob aggregationMgr,
AggregatedNewsFeed newsFeed)
Creates a new NewsFeedAggregatorJob that adds
the parsed entries of the sepcified newsfeed Favorite
to the specified aggregated newsFeed.
|
|
| Method Summary | |
Favorite |
getFavorite()
Gets the newsfeed Favorite parsed/aggregated by this
NewsFeedAggregatorJob
|
protected NewsFeed |
getNewsFeedFromCache(URL feedUrl)
Gets the the cached NewsFeed or null if
the NewsFeed is not in cache
|
protected NewsFeed |
parseNewsFeed(IProgressMonitor monitor)
Parses the newsfeed into a NewsFeed representation.
|
void |
run(IProgressMonitor monitor)
Activates the parsing respectively aggregation process. |
| Methods inherited from class net.sourceforge.java.util.jobs.Job |
cancel, done, getException, getJobManager, getName, getPriority, getStatus, getThread, isCanceled, join, setException, setJobManager, setName, setPriority, setThread, start, started, statusChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private NewsFeedAggregationManagerJob aggregationMgr
The coordinating aggregation manager
private Favorite newsFeedFavorite
The Favorite to aggregate
private AggregatedNewsFeed newsFeed
The AggregatedNewsFeed instance that the Job
adds its parsed NewsFeedEntries to
| Constructor Detail |
public NewsFeedAggregatorJob(Favorite newsFeedFavorite,
NewsFeedAggregationManagerJob aggregationMgr,
AggregatedNewsFeed newsFeed)
Creates a new NewsFeedAggregatorJob that adds
the parsed entries of the sepcified newsfeed Favorite
to the specified aggregated newsFeed.
In addition it notifies the enclosing and coordinating
NewsFeedAggregationManagerJob when then
parsing of the newsfeed finished.
newsFeedFavorite - the newsfeed Favorite to aggregateaggregationMgr - the coordinating
NewsFeedAggregationManagerJobnewsFeed - the newsfeed to aggregate into| Method Detail |
public void run(IProgressMonitor monitor)
Activates the parsing respectively aggregation process.
monitor - the IProgressMonitor to use for reporting
the progress of this NewsFeedAggregatorJobIRunnableWithProgress.run(org.eclipse.core.runtime.IProgressMonitor)public Favorite getFavorite()
Gets the newsfeed Favorite parsed/aggregated by this
NewsFeedAggregatorJob
Favorite parsed/aggregated by this
NewsFeedAggregatorJob
protected NewsFeed parseNewsFeed(IProgressMonitor monitor)
throws MalformedURLException,
IOException,
FeedException,
FetcherException
Parses the newsfeed into a NewsFeed representation.
monitor - the IProgressMonitor to use for reporting
the progress of this NewsFeedParserJob
NewsFeed representation
MalformedURLException - if the newsfeed url is invalid
IOException - if an io error occured during parsing
FeedException - if the newsfeed could not be parsed correctly
FetcherException - if the newsfeed could not be fetchedprotected NewsFeed getNewsFeedFromCache(URL feedUrl)
Gets the the cached NewsFeed or null if
the NewsFeed is not in cache
feedUrl - the URL of the NewsFeed to get from the
cache
NewsFeed or null if
the NewsFeed is not in cache
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||