public class ElasticSearchDynamicSerializer extends Object implements ElasticSearchEventSerializer
charset| Constructor and Description | 
|---|
| ElasticSearchDynamicSerializer() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | configure(ComponentConfiguration conf) | 
| void | configure(Context context)
 Request the implementing class to (re)configure itself. | 
| org.elasticsearch.common.xcontent.XContentBuilder | getContentBuilder(Event event)Return an  BytesStreammade up of the serialized flume event | 
public void configure(Context context)
ConfigurableRequest the implementing class to (re)configure itself.
When configuration parameters are changed, they must be reflected by the component asap.
There are no thread safety guarantees on when configure might be called.
configure in interface Configurablepublic void configure(ComponentConfiguration conf)
configure in interface ConfigurableComponentpublic org.elasticsearch.common.xcontent.XContentBuilder getContentBuilder(Event event) throws IOException
ElasticSearchEventSerializerBytesStream made up of the serialized flume eventgetContentBuilder in interface ElasticSearchEventSerializerevent - The flume event to serializeBytesStream used to write to ElasticSearchIOException - If an error occurs during serializationCopyright © 2009-2017 Apache Software Foundation. All Rights Reserved.