public abstract class AbstractElasticSearchSupport extends Object implements ElasticSearchSupport
ServiceActivation.ServiceActivator| 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()
Called after ServiceComposite Activation.
|
org.elasticsearch.client.Client |
client() |
String |
entitiesType() |
String |
index() |
boolean |
indexNonAggregatedAssociations() |
protected void |
passivateClient() |
protected void |
passivateElasticSearch() |
void |
passivateService()
Called before ServiceComposite Passivation.
|
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
ServiceActivationactivateService in interface ServiceActivationException - if unable to activateprotected abstract void activateElasticSearch()
throws Exception
Exceptionpublic final void passivateService()
throws Exception
ServiceActivationpassivateService in interface ServiceActivationException - if unable to passivateprotected void passivateClient()
public 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