Class ElasticsearchAdminServiceFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.craftercms.search.elasticsearch.ElasticsearchAdminService>, org.springframework.beans.factory.InitializingBean

    public class ElasticsearchAdminServiceFactory
    extends AbstractElasticsearchFactory<org.craftercms.search.elasticsearch.ElasticsearchAdminService>
    Implementation of AbstractElasticsearchFactory for ElasticsearchAdminService
    Since:
    3.1.5
    Author:
    joseross
    • Field Detail

      • authoringMapping

        protected org.springframework.core.io.Resource authoringMapping
        Index mapping file for authoring indices
      • previewMapping

        protected org.springframework.core.io.Resource previewMapping
        Index mapping file for preview indices
      • authoringNamePattern

        protected String authoringNamePattern
    • Constructor Detail

      • ElasticsearchAdminServiceFactory

        @ConstructorProperties({"config","authoringMapping","previewMapping","authoringNamePattern"})
        public ElasticsearchAdminServiceFactory​(ElasticsearchConfig config,
                                                org.springframework.core.io.Resource authoringMapping,
                                                org.springframework.core.io.Resource previewMapping,
                                                String authoringNamePattern)
    • Method Detail

      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<org.craftercms.search.elasticsearch.ElasticsearchAdminService>
        Specified by:
        getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<org.craftercms.search.elasticsearch.ElasticsearchAdminService>
      • doCreateSingleInstance

        protected org.craftercms.search.elasticsearch.ElasticsearchAdminService doCreateSingleInstance​(org.elasticsearch.client.RestHighLevelClient client)
        Description copied from class: AbstractElasticsearchFactory
        Creates a service instance for a single cluster
        Specified by:
        doCreateSingleInstance in class AbstractElasticsearchFactory<org.craftercms.search.elasticsearch.ElasticsearchAdminService>
        Parameters:
        client - the Elasticsearch client
        Returns:
        the service instance
      • doCreateMultiInstance

        protected org.craftercms.search.elasticsearch.ElasticsearchAdminService doCreateMultiInstance​(org.elasticsearch.client.RestHighLevelClient readClient,
                                                                                                      org.elasticsearch.client.RestHighLevelClient[] writeClients)
        Description copied from class: AbstractElasticsearchFactory
        Creates a service instance for a multiple cluster
        Specified by:
        doCreateMultiInstance in class AbstractElasticsearchFactory<org.craftercms.search.elasticsearch.ElasticsearchAdminService>
        Parameters:
        readClient - the Elasticsearch client for read-related operations
        writeClients - the Elasticsearch clients for write-related operations
        Returns:
        the service instance