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 StreamsOperation
public void startStream()
startStream
in interface StreamsProvider
public StreamsResultSet readCurrent()
readCurrent
in interface StreamsProvider
public StreamsResultSet readNew(BigInteger sequence)
readNew
in interface StreamsProvider
public StreamsResultSet readRange(org.joda.time.DateTime start, org.joda.time.DateTime end)
readRange
in interface StreamsProvider
public boolean isRunning()
isRunning
in interface StreamsProvider
public void prepare(Object configurationObject)
prepare
in interface StreamsOperation
public void cleanUp()
cleanUp
in interface StreamsOperation
public static void main(String[] args) throws Exception
args
- argsException
- ExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.