public class DataSiftClient extends DataSiftApiClient
| Modifier and Type | Field and Description |
|---|---|
String |
BALANCE |
String |
COMPILE |
protected DataSiftConfig |
config |
static String |
DATE_FORMAT |
static int |
DEFAULT_NUM
Where ever a numeric value is optional and it happens to be absent in a response this value will be used
|
String |
DPU |
protected DataSiftHistorics |
historics |
protected ConnectionManager |
liveStream |
static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
protected DataSiftPreview |
preview |
protected DataSiftPush |
push |
protected DataSiftManagedSource |
source |
String |
USAGE |
String |
VALIDATE |
| Constructor and Description |
|---|
DataSiftClient() |
DataSiftClient(DataSiftConfig config) |
| Modifier and Type | Method and Description |
|---|---|
FutureData<Balance> |
balance() |
FutureData<Stream> |
compile(String csdl)
Compile a CSDL string to a stream hash to which you can later subscribe and receive interactions from
|
DataSiftConfig |
config() |
protected void |
configureMapper() |
FutureData<Dpu> |
dpu(FutureData<Stream> streamFuture) |
FutureData<Dpu> |
dpu(Stream stream) |
DataSiftHistorics |
historics() |
ConnectionManager |
liveStream()
Access to the DataSift streaming API
|
DataSiftManagedSource |
managedSource() |
DataSiftPreview |
preview() |
DataSiftPush |
push() |
void |
shutdown() |
FutureData<Usage> |
usage() |
FutureData<Usage> |
usage(Usage.Period timePeriod) |
FutureData<Validation> |
validate(String csdl)
Validate the given CSDL string against the DataSift API
|
failNotify, newParams, newRequestCallback, performRequest, unwrapFuturepublic static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
public static final String DATE_FORMAT
public static final int DEFAULT_NUM
protected DataSiftConfig config
protected DataSiftHistorics historics
protected DataSiftManagedSource source
protected DataSiftPreview preview
protected DataSiftPush push
protected ConnectionManager liveStream
public final String VALIDATE
public final String COMPILE
public final String BALANCE
public final String DPU
public final String USAGE
public DataSiftClient()
public DataSiftClient(DataSiftConfig config)
config - a configuration which should be used for making API requestsprotected void configureMapper()
public DataSiftHistorics historics()
public DataSiftManagedSource managedSource()
public DataSiftPreview preview()
public DataSiftPush push()
public DataSiftConfig config()
public ConnectionManager liveStream()
public FutureData<Validation> validate(String csdl)
csdl - the CSDL to validateBaseDataSiftResult.isSuccessful() to check if
validation was successful or notpublic FutureData<Stream> compile(String csdl)
csdl - the CSDL to compile.Stream#hash()
to list the hash for the compiled CSDLpublic FutureData<Balance> balance()
public FutureData<Dpu> dpu(Stream stream)
stream - the stream for which the DPU information is to be fetchedpublic FutureData<Dpu> dpu(FutureData<Stream> streamFuture)
public FutureData<Usage> usage()
public FutureData<Usage> usage(Usage.Period timePeriod)
timePeriod - A time period during which the usage information should be broken downpublic void shutdown()
Copyright © 2015. All Rights Reserved.