org.qi4j.index.elasticsearch.internal
Class AbstractElasticSearchSupport

java.lang.Object
  extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.api.service.ServiceActivation
ServiceActivation.ServiceActivator
 
Field Summary
protected  org.elasticsearch.client.Client client
           
protected static java.lang.String DEFAULT_CLUSTER_NAME
           
protected static java.lang.String DEFAULT_INDEX_NAME
           
protected static java.lang.String ENTITIES_TYPE
           
protected  java.lang.String index
           
protected  boolean indexNonAggregatedAssociations
           
protected static org.slf4j.Logger LOGGER
           
 
Constructor Summary
AbstractElasticSearchSupport()
           
 
Method Summary
protected abstract  void activateElasticSearch()
           
 void activateService()
          Called after ServiceComposite Activation.
 org.elasticsearch.client.Client client()
           
 java.lang.String entitiesType()
           
 java.lang.String index()
           
 boolean indexNonAggregatedAssociations()
           
protected  void passivateElasticSearch()
           
 void passivateService()
          Called before ServiceComposite Passivation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AbstractElasticSearchSupport

public AbstractElasticSearchSupport()
Method Detail

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