public class FacebookUserInformationProvider extends Object implements StreamsProvider, Serializable
Modifier and Type | Field and Description |
---|---|
protected org.joda.time.DateTime |
end |
protected ExecutorService |
executor |
protected Iterator<String[]> |
idsBatches |
protected Queue<StreamsDatum> |
providerQueue |
protected AtomicBoolean |
running |
protected org.joda.time.DateTime |
start |
static String |
STREAMS_ID |
Constructor and Description |
---|
FacebookUserInformationProvider()
FacebookUserInformationProvider constructor - resolves FacebookUserInformationConfiguration from JVM 'facebook'.
|
FacebookUserInformationProvider(Class klass) |
FacebookUserInformationProvider(FacebookUserInformationConfiguration config)
FacebookUserInformationProvider constructor - uses supplie FacebookUserInformationConfiguration.
|
FacebookUserInformationProvider(FacebookUserInformationConfiguration config,
Class klass) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
FacebookUserInformationConfiguration |
getConfig() |
protected facebook4j.Facebook |
getFacebookClient() |
String |
getId() |
Queue<StreamsDatum> |
getProviderQueue() |
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 |
setConfig(FacebookUserInformationConfiguration config) |
void |
startStream() |
public static final String STREAMS_ID
protected volatile Queue<StreamsDatum> providerQueue
protected ExecutorService executor
protected org.joda.time.DateTime start
protected org.joda.time.DateTime end
protected final AtomicBoolean running
public FacebookUserInformationProvider()
public FacebookUserInformationProvider(FacebookUserInformationConfiguration config)
config
- public FacebookUserInformationProvider(Class klass)
public FacebookUserInformationProvider(FacebookUserInformationConfiguration config, Class klass)
public FacebookUserInformationConfiguration getConfig()
public void setConfig(FacebookUserInformationConfiguration config)
public Queue<StreamsDatum> getProviderQueue()
public 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
protected facebook4j.Facebook getFacebookClient()
public void cleanUp()
cleanUp
in interface StreamsOperation
Copyright © 2018 The Apache Software Foundation. All rights reserved.