public class MoreoverProvider extends Object implements StreamsProvider
| Modifier and Type | Field and Description |
|---|---|
protected Queue<StreamsDatum> |
providerQueue |
static String |
STREAMS_ID |
| Constructor and Description |
|---|
MoreoverProvider(MoreoverConfiguration moreoverConfiguration)
MoreoverProvider constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
String |
getId() |
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.moreover.MoreoverProvider -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() |
public static final String STREAMS_ID
protected volatile Queue<StreamsDatum> providerQueue
public MoreoverProvider(MoreoverConfiguration moreoverConfiguration)
moreoverConfiguration - MoreoverConfigurationpublic 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 StreamsOperationpublic void cleanUp()
cleanUp in interface StreamsOperationpublic static void main(String[] args) throws Exception
args - argsException - ExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.