|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ElasticSearchClient
Interface for an ElasticSearch client which is responsible for sending bulks of events to ElasticSearch.
| Method Summary | |
|---|---|
void |
addEvent(Event event,
IndexNameBuilder indexNameBuilder,
String indexType,
long ttlMs)
Add new event to the bulk |
void |
close()
Close connection to elastic search in client |
void |
execute()
Sends bulk to the elasticsearch cluster |
| Methods inherited from interface org.apache.flume.conf.Configurable |
|---|
configure |
| Method Detail |
|---|
void close()
void addEvent(Event event,
IndexNameBuilder indexNameBuilder,
String indexType,
long ttlMs)
throws Exception
event - Flume EventindexNameBuilder - Index name builder which generates name of index to feedindexType - Name of type of document which will be sent to the elasticsearch clusterttlMs - Time to live expressed in milliseconds. Value <= 0 is ignored
Exception
void execute()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||