org.qi4j.index.elasticsearch.internal
Class AbstractElasticSearchSupport
java.lang.Object
org.qi4j.index.elasticsearch.internal.AbstractElasticSearchSupport
- All Implemented Interfaces:
- ServiceActivation, ElasticSearchSupport
- Direct Known Subclasses:
- ESClusterSupport, ESFilesystemSupport, ESMemorySupport
public abstract class AbstractElasticSearchSupport
- extends java.lang.Object
- implements ElasticSearchSupport
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final org.slf4j.Logger LOGGER
DEFAULT_CLUSTER_NAME
protected static final java.lang.String DEFAULT_CLUSTER_NAME
- See Also:
- Constant Field Values
DEFAULT_INDEX_NAME
protected static final java.lang.String DEFAULT_INDEX_NAME
- See Also:
- Constant Field Values
ENTITIES_TYPE
protected static final java.lang.String ENTITIES_TYPE
- See Also:
- Constant Field Values
client
protected org.elasticsearch.client.Client client
index
protected java.lang.String index
indexNonAggregatedAssociations
protected boolean indexNonAggregatedAssociations
AbstractElasticSearchSupport
public AbstractElasticSearchSupport()
activateService
public final void activateService()
throws java.lang.Exception
- Description copied from interface:
ServiceActivation
- Called after ServiceComposite Activation.
- Specified by:
activateService
in interface ServiceActivation
- Throws:
java.lang.Exception
activateElasticSearch
protected abstract void activateElasticSearch()
throws java.lang.Exception
- Throws:
java.lang.Exception
passivateService
public final void passivateService()
throws java.lang.Exception
- Description copied from interface:
ServiceActivation
- Called before ServiceComposite Passivation.
- Specified by:
passivateService
in interface ServiceActivation
- Throws:
java.lang.Exception
passivateElasticSearch
protected void passivateElasticSearch()
throws java.lang.Exception
- Throws:
java.lang.Exception
client
public final org.elasticsearch.client.Client client()
- Specified by:
client
in interface ElasticSearchSupport
index
public final java.lang.String index()
- Specified by:
index
in interface ElasticSearchSupport
entitiesType
public final java.lang.String entitiesType()
- Specified by:
entitiesType
in interface ElasticSearchSupport
indexNonAggregatedAssociations
public final boolean indexNonAggregatedAssociations()
- Specified by:
indexNonAggregatedAssociations
in interface ElasticSearchSupport