|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.flume.sink.elasticsearch.TimeBasedIndexNameBuilder
public class TimeBasedIndexNameBuilder
Default index name builder. It prepares name of index using configured prefix and current timestamp. Default format of name is prefix-yyyy-MM-dd".
| Field Summary | |
|---|---|
static String |
DATE_FORMAT
|
static String |
DEFAULT_DATE_FORMAT
|
static String |
DEFAULT_TIME_ZONE
|
static String |
TIME_ZONE
|
| Constructor Summary | |
|---|---|
TimeBasedIndexNameBuilder()
|
|
| 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 |
| Field Detail |
|---|
public static final String DATE_FORMAT
public static final String TIME_ZONE
public static final String DEFAULT_DATE_FORMAT
public static final String DEFAULT_TIME_ZONE
| Constructor Detail |
|---|
public TimeBasedIndexNameBuilder()
| Method Detail |
|---|
public String getIndexName(Event event)
getIndexName in interface IndexNameBuilderevent - Event for which the name of index has to be prepared
public String getIndexPrefix(Event event)
IndexNameBuilder
getIndexPrefix in interface IndexNameBuilderevent - Event which determines index name
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 guarrantees on when configure might be called.
configure in interface Configurablepublic void configure(ComponentConfiguration conf)
configure in interface ConfigurableComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||