public abstract class InstagramAbstractProvider extends Object implements StreamsProvider
StreamsProvider
that provides Instagram data for a group of usersModifier and Type | Field and Description |
---|---|
protected Instagram |
client |
protected InstagramConfiguration |
config |
protected Queue<StreamsDatum> |
dataQueue |
static String |
STREAMS_ID |
Constructor and Description |
---|
InstagramAbstractProvider() |
InstagramAbstractProvider(InstagramConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
String |
getId() |
protected abstract InstagramDataCollector |
getInstagramDataCollector()
Return the data collector to use to connect to instagram.
|
boolean |
isRunning() |
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 InstagramConfiguration config
protected Instagram client
protected Queue<StreamsDatum> dataQueue
public InstagramAbstractProvider()
public InstagramAbstractProvider(InstagramConfiguration config)
public String getId()
getId
in interface StreamsOperation
public void startStream()
startStream
in interface StreamsProvider
protected abstract InstagramDataCollector getInstagramDataCollector()
InstagramDataCollector
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 void prepare(Object configurationObject)
prepare
in interface StreamsOperation
public void cleanUp()
cleanUp
in interface StreamsOperation
public boolean isRunning()
isRunning
in interface StreamsProvider
Copyright © 2018 The Apache Software Foundation. All rights reserved.