|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.sink.elasticsearch.SimpleIndexNameBuilder
public class SimpleIndexNameBuilder
Constructor Summary | |
---|---|
SimpleIndexNameBuilder()
|
Method Summary | |
---|---|
void |
configure(ComponentConfiguration conf)
|
void |
configure(Context context)
Request the implementing class to (re)configure itself. |
String |
getIndexName(Event event)
Gets the name of the index to use for an index request |
String |
getIndexPrefix(Event event)
Gets the prefix of index to use for an index request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleIndexNameBuilder()
Method Detail |
---|
public String getIndexName(Event event)
IndexNameBuilder
getIndexName
in interface IndexNameBuilder
event
- Event which determines index name
public String getIndexPrefix(Event event)
IndexNameBuilder
getIndexPrefix
in interface IndexNameBuilder
event
- Event which determines index name
public void configure(Context context)
Configurable
Request 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 guarrantees on when configure might be called.
configure
in interface Configurable
public void configure(ComponentConfiguration conf)
configure
in interface ConfigurableComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |