public abstract class AbstractElasticSearchSupport extends Object implements ElasticSearchSupport
| Modifier and Type | Field and Description |
|---|---|
protected org.elasticsearch.client.Client |
client |
protected static String |
DEFAULT_CLUSTER_NAME |
protected static String |
DEFAULT_INDEX_NAME |
protected static String |
ENTITIES_TYPE |
protected String |
index |
protected boolean |
indexNonAggregatedAssociations |
protected static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractElasticSearchSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
activateElasticSearch() |
void |
activateService() |
org.elasticsearch.client.Client |
client() |
String |
entitiesType() |
String |
index() |
boolean |
indexNonAggregatedAssociations() |
protected void |
passivateElasticSearch() |
void |
passivateService() |
protected static final org.slf4j.Logger LOGGER
protected static final String DEFAULT_CLUSTER_NAME
protected static final String DEFAULT_INDEX_NAME
protected static final String ENTITIES_TYPE
protected org.elasticsearch.client.Client client
protected String index
protected boolean indexNonAggregatedAssociations
public final void activateService()
throws Exception
activateService in interface org.qi4j.api.service.ServiceActivationExceptionprotected abstract void activateElasticSearch()
throws Exception
Exceptionpublic final void passivateService()
throws Exception
passivateService in interface org.qi4j.api.service.ServiceActivationExceptionpublic final org.elasticsearch.client.Client client()
client in interface ElasticSearchSupportpublic final String index()
index in interface ElasticSearchSupportpublic final String entitiesType()
entitiesType in interface ElasticSearchSupportpublic final boolean indexNonAggregatedAssociations()
indexNonAggregatedAssociations in interface ElasticSearchSupport