|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.controller.thread.AggregationLoader
public class AggregationLoader
Load multiple RSSChannels from a TreeSet holding the favorites titles. Display the aggregated RSSChannels in one tab.
| Field Summary | |
|---|---|
(package private) Category |
aggregatedCategory
The category that is aggregated |
(package private) Channel |
aggregatedRSSChannel
Aggregated category channel |
(package private) java.util.TreeSet |
favorites
List of favorites to aggregate |
(package private) boolean |
generateUniqueTitles
Set this flag to true, if the newstitles have to be unique |
(package private) java.util.Vector |
innerFeedLoadThreads
Collection of all inner feed load Threads |
(package private) boolean |
isReload
Set this flag to true, if the Multi loader performs a reload |
(package private) ExtendedThread |
outerNewsFeedLoader
Thread to load the aggregated category |
private boolean |
performSearch
If a search is performed, set to TRUE |
(package private) java.util.Vector |
rssChannels
List of RSS channels |
(package private) GUI |
rssOwlGui
The MainController |
(package private) int |
runningThreadCounter
Count the number of inner feed loader Threads |
private SearchDefinition |
searchDefinition
Search Definition |
(package private) int |
style
Style of the operation (load, reload, search) |
(package private) java.lang.String |
title
Title of the aggregated category |
private static int |
WAIT_CYCLE
Wait state in ms for the outer feed loader to check the inner feed loader Threads if they have already finished |
| Constructor Summary | |
|---|---|
AggregationLoader(java.util.TreeSet favorites,
Category aggregatedCategory,
GUI rssOwlGui,
java.lang.String title)
Instantiate a new AggregationLoader |
|
AggregationLoader(java.util.TreeSet favorites,
Category aggregatedCategory,
GUI rssOwlGui,
java.lang.String title,
SearchDefinition searchDefinition)
Instantiate a new AggregationLoader |
|
| Method Summary | |
|---|---|
(package private) void |
createAggregatedRSSChannel()
Aggregate the rsschannels to one channel |
(package private) void |
createErrorChannel(java.lang.String url,
NewsfeedFactoryException e)
Create an warning channel to display an erroneous RSS feed |
(package private) ExtendedThread |
createInnerFeedLoader(java.lang.String url)
Create the inner feed loader that is called from the outer feed loader for each URL to load. |
private void |
createOuterFeedLoader(boolean displayNewsFeed)
Create the favorites multi load thread |
(package private) void |
displayRSSChannels()
Display the rsschannels in one tab |
(package private) boolean |
isLoadingDone()
Checks if the loading of this aggregation is done or not |
void |
loadFavorites(boolean displayNewsFeed)
Load all favorites in a Thread |
void |
setReload(boolean isReload)
Set to TRUE if all feeds of the aggregated category should get uncached before loaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int WAIT_CYCLE
private boolean performSearch
private SearchDefinition searchDefinition
Category aggregatedCategory
Channel aggregatedRSSChannel
java.util.TreeSet favorites
boolean generateUniqueTitles
java.util.Vector innerFeedLoadThreads
boolean isReload
ExtendedThread outerNewsFeedLoader
java.util.Vector rssChannels
GUI rssOwlGui
int runningThreadCounter
int style
java.lang.String title
| Constructor Detail |
|---|
public AggregationLoader(java.util.TreeSet favorites,
Category aggregatedCategory,
GUI rssOwlGui,
java.lang.String title)
favorites - Vector with the URLsaggregatedCategory - The category that is aggregatedrssOwlGui - The RSSOwl Maincontrollertitle - Title of the aggregated Channel
public AggregationLoader(java.util.TreeSet favorites,
Category aggregatedCategory,
GUI rssOwlGui,
java.lang.String title,
SearchDefinition searchDefinition)
favorites - Vector with the URLsaggregatedCategory - The category that is aggregatedrssOwlGui - The RSSOwl Maincontrollertitle - Title of the aggregated ChannelsearchDefinition - Pattern and Scope of the Search.| Method Detail |
|---|
public void loadFavorites(boolean displayNewsFeed)
displayNewsFeed - TRUE if newsfeed should be displayedpublic void setReload(boolean isReload)
isReload - If Reload, set to TRUEprivate void createOuterFeedLoader(boolean displayNewsFeed)
displayNewsFeed - TRUE if newsfeed should be displayedvoid createAggregatedRSSChannel()
void createErrorChannel(java.lang.String url,
NewsfeedFactoryException e)
url - The url of the feede - The factory exception that occuredExtendedThread createInnerFeedLoader(java.lang.String url)
url - The url of the feed to load
void displayRSSChannels()
boolean isLoadingDone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||