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 |
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
ServiceActivation
activateService
in interface ServiceActivation
Exception
protected abstract void activateElasticSearch() throws Exception
Exception
public final void passivateService() throws Exception
ServiceActivation
passivateService
in interface ServiceActivation
Exception
public final org.elasticsearch.client.Client client()
client
in interface ElasticSearchSupport
public final String index()
index
in interface ElasticSearchSupport
public final String entitiesType()
entitiesType
in interface ElasticSearchSupport
public final boolean indexNonAggregatedAssociations()
indexNonAggregatedAssociations
in interface ElasticSearchSupport