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 Object
      implements ElasticSearchSupport

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.qi4j.api.service.ServiceActivation

      `ServiceActivation.ServiceActivator`

  - ### Field Summary

    Fields
    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 Summary

    Constructors
    Constructor and Description
    `AbstractElasticSearchSupport()`

  - ### Method Summary

    Methods
    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.

    - ### 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 String DEFAULT_CLUSTER_NAME

      See Also:
        Constant Field Values

    - #### DEFAULT_INDEX_NAME

          protected static final String DEFAULT_INDEX_NAME

      See Also:
        Constant Field Values

    - #### ENTITIES_TYPE

          protected static final String ENTITIES_TYPE

      See Also:
        Constant Field Values

    - #### client

          protected org.elasticsearch.client.Client client

    - #### index

          protected String index

    - #### indexNonAggregatedAssociations

          protected boolean indexNonAggregatedAssociations

  - ### Constructor Detail

    - #### AbstractElasticSearchSupport

          public AbstractElasticSearchSupport()

  - ### Method Detail

    - #### activateService

          public final void activateService()
                                     throws Exception

      Description copied from interface: `ServiceActivation`
      Called after ServiceComposite Activation.
      Specified by:
        `activateService` in interface `ServiceActivation`
      Throws:
        `Exception`

    - #### activateElasticSearch

          protected abstract void activateElasticSearch()
                                                 throws Exception

      Throws:
        `Exception`

    - #### passivateService

          public final void passivateService()
                                      throws Exception

      Description copied from interface: `ServiceActivation`
      Called before ServiceComposite Passivation.
      Specified by:
        `passivateService` in interface `ServiceActivation`
      Throws:
        `Exception`

    - #### passivateElasticSearch

          protected void passivateElasticSearch()
                                         throws Exception

      Throws:
        `Exception`

    - #### client

          public final org.elasticsearch.client.Client client()

      Specified by:
        `client` in interface `ElasticSearchSupport`

    - #### index

          public final String index()

      Specified by:
        `index` in interface `ElasticSearchSupport`

    - #### entitiesType

          public final String entitiesType()

      Specified by:
        `entitiesType` in interface `ElasticSearchSupport`

    - #### indexNonAggregatedAssociations

          public final boolean indexNonAggregatedAssociations()

      Specified by:
        `indexNonAggregatedAssociations` in interface `ElasticSearchSupport`