public class TimeBasedIndexNameBuilder extends Object implements IndexNameBuilder
| Modifier and Type | Field and Description | 
|---|---|
| static String | DATE_FORMAT | 
| static String | DEFAULT_DATE_FORMAT | 
| static String | DEFAULT_TIME_ZONE | 
| static String | TIME_ZONE | 
| Constructor and Description | 
|---|
| TimeBasedIndexNameBuilder() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
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
public String getIndexName(Event event)
getIndexName in interface IndexNameBuilderevent - Event for which the name of index has to be preparedpublic String getIndexPrefix(Event event)
IndexNameBuildergetIndexPrefix in interface IndexNameBuilderevent - Event which determines index namepublic 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 ConfigurableComponentCopyright © 2009-2017 Apache Software Foundation. All Rights Reserved.