public class RssStreamProvider extends Object implements StreamsProvider
StreamsProvider that provides content from rss feeds in boilerpipe format| Modifier and Type | Field and Description | 
|---|---|
protected RssFeedScheduler | 
scheduler  | 
| Constructor and Description | 
|---|
RssStreamProvider()  | 
RssStreamProvider(boolean perpetual)  | 
RssStreamProvider(RssStreamConfiguration config)  | 
RssStreamProvider(RssStreamConfiguration config,
                 boolean perpetual)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
cleanUp()  | 
String | 
getId()  | 
protected RssFeedScheduler | 
getScheduler(BlockingQueue<StreamsDatum> queue)  | 
boolean | 
isRunning()  | 
static void | 
main(String[] args)
To use from command line:
 
 Supply configuration similar to src/test/resources/rss.conf
 
 Launch using:
 
 mvn exec:java -Dexec.mainClass=org.apache.streams.rss.provider.RssStreamProvider -Dexec.args="rss.conf articles.json" 
 | 
void | 
prepare(Object configurationObject)  | 
StreamsResultSet | 
readCurrent()  | 
StreamsResultSet | 
readNew(BigInteger sequence)  | 
StreamsResultSet | 
readRange(org.joda.time.DateTime start,
         org.joda.time.DateTime end)  | 
void | 
startStream()  | 
protected RssFeedScheduler scheduler
public RssStreamProvider()
public RssStreamProvider(boolean perpetual)
public RssStreamProvider(RssStreamConfiguration config)
public RssStreamProvider(RssStreamConfiguration config, boolean perpetual)
public String getId()
getId in interface StreamsOperationpublic void startStream()
startStream in interface StreamsProviderpublic StreamsResultSet readCurrent()
readCurrent in interface StreamsProviderpublic StreamsResultSet readNew(BigInteger sequence)
readNew in interface StreamsProviderpublic StreamsResultSet readRange(org.joda.time.DateTime start, org.joda.time.DateTime end)
readRange in interface StreamsProviderpublic boolean isRunning()
isRunning in interface StreamsProviderpublic void prepare(Object configurationObject)
prepare in interface StreamsOperationprotected RssFeedScheduler getScheduler(BlockingQueue<StreamsDatum> queue)
public void cleanUp()
cleanUp in interface StreamsOperationpublic static void main(String[] args) throws Exception
args - argsException - ExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.