Class AnalyticsIndexingServiceConnector

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.search.index.IndexingServiceConnector
org.exoplatform.commons.search.index.impl.ElasticIndexingServiceConnector
org.exoplatform.analytics.es.AnalyticsIndexingServiceConnector
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.picocontainer.Startable

public class AnalyticsIndexingServiceConnector extends org.exoplatform.commons.search.index.impl.ElasticIndexingServiceConnector implements org.picocontainer.Startable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final org.exoplatform.commons.api.settings.data.Context
     
    static final String
     
    static final String
     
    static final org.exoplatform.commons.api.settings.data.Scope
     

    Fields inherited from class org.exoplatform.commons.search.index.impl.ElasticIndexingServiceConnector

    currentIndex, indexAlias, mapping, replicas, shards

    Fields inherited from class org.exoplatform.commons.search.index.IndexingServiceConnector

    connectorName, enable

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    AnalyticsIndexingServiceConnector(org.exoplatform.analytics.api.service.StatisticDataQueueService analyticsQueueService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams initParams)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.exoplatform.commons.search.domain.Document
    create(String idString)
     
    getAllIds(int offset, int limit)
     
     
     
     
     
    void
     
    void
     
    void
     
    org.exoplatform.commons.search.domain.Document
     

    Methods inherited from class org.exoplatform.commons.search.index.impl.ElasticIndexingServiceConnector

    delete, getAttachmentProcessor, getCurrentIndex, getIndexAlias, getPipelineName, getReplicas, getShards, isNeedIngestPipeline, setReplicas, setShards

    Methods inherited from class org.exoplatform.commons.search.index.IndexingServiceConnector

    isEnable, setEnable

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_ES_INDEX_TEMPLATE

      public static final String DEFAULT_ES_INDEX_TEMPLATE
      See Also:
    • DEFAULT_ES_ANALYTICS_INDEX_NAME

      public static final String DEFAULT_ES_ANALYTICS_INDEX_NAME
      See Also:
    • ES_ANALYTICS_INDEX_PREFIX

      public static final String ES_ANALYTICS_INDEX_PREFIX
      See Also:
    • ES_ANALYTICS_INDEX_TEMPLATE

      public static final String ES_ANALYTICS_INDEX_TEMPLATE
      See Also:
    • ES_ANALYTICS_CONTEXT

      public static final org.exoplatform.commons.api.settings.data.Context ES_ANALYTICS_CONTEXT
    • ES_ANALYTICS_SCOPE

      public static final org.exoplatform.commons.api.settings.data.Scope ES_ANALYTICS_SCOPE
  • Constructor Details

    • AnalyticsIndexingServiceConnector

      public AnalyticsIndexingServiceConnector(org.exoplatform.analytics.api.service.StatisticDataQueueService analyticsQueueService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams initParams)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable
    • getConnectorName

      public String getConnectorName()
      Specified by:
      getConnectorName in class org.exoplatform.commons.search.index.IndexingServiceConnector
    • getMapping

      public String getMapping()
      Overrides:
      getMapping in class org.exoplatform.commons.search.index.impl.ElasticIndexingServiceConnector
    • create

      public org.exoplatform.commons.search.domain.Document create(String idString)
      Specified by:
      create in class org.exoplatform.commons.search.index.IndexingServiceConnector
    • update

      public org.exoplatform.commons.search.domain.Document update(String id)
      Specified by:
      update in class org.exoplatform.commons.search.index.IndexingServiceConnector
    • getAllIds

      public List<String> getAllIds(int offset, int limit)
      Specified by:
      getAllIds in class org.exoplatform.commons.search.index.IndexingServiceConnector
    • getIndexPrefix

      public String getIndexPrefix()
    • getIndexTemplate

      public String getIndexTemplate()
    • storeCreatedIndexTemplate

      public void storeCreatedIndexTemplate()