Class ElasticsearchAdminServiceFactory
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<T>
-
- org.craftercms.deployer.utils.elasticsearch.legacy.AbstractElasticsearchFactory<org.craftercms.search.elasticsearch.ElasticsearchAdminService>
-
- org.craftercms.deployer.utils.elasticsearch.legacy.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 ofAbstractElasticsearchFactoryforElasticsearchAdminService- Since:
- 3.1.5
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.core.io.ResourceauthoringMappingIndex mapping file for authoring indicesprotected StringauthoringNamePatternprotected org.springframework.core.io.ResourcepreviewMappingIndex mapping file for preview indices-
Fields inherited from class org.craftercms.deployer.utils.elasticsearch.legacy.AbstractElasticsearchFactory
config, name
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchAdminServiceFactory(ElasticsearchConfig config, org.springframework.core.io.Resource authoringMapping, org.springframework.core.io.Resource previewMapping, String authoringNamePattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.craftercms.search.elasticsearch.ElasticsearchAdminServicedoCreateMultiInstance(org.elasticsearch.client.RestHighLevelClient readClient, org.elasticsearch.client.RestHighLevelClient[] writeClients)Creates a service instance for a multiple clusterprotected org.craftercms.search.elasticsearch.ElasticsearchAdminServicedoCreateSingleInstance(org.elasticsearch.client.RestHighLevelClient client)Creates a service instance for a single clusterClass<?>getObjectType()-
Methods inherited from class org.craftercms.deployer.utils.elasticsearch.legacy.AbstractElasticsearchFactory
createInstance, destroyInstance, setBeanName
-
-
-
-
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:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.craftercms.search.elasticsearch.ElasticsearchAdminService>- Specified by:
getObjectTypein classorg.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:AbstractElasticsearchFactoryCreates a service instance for a single cluster- Specified by:
doCreateSingleInstancein classAbstractElasticsearchFactory<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:AbstractElasticsearchFactoryCreates a service instance for a multiple cluster- Specified by:
doCreateMultiInstancein classAbstractElasticsearchFactory<org.craftercms.search.elasticsearch.ElasticsearchAdminService>- Parameters:
readClient- the Elasticsearch client for read-related operationswriteClients- the Elasticsearch clients for write-related operations- Returns:
- the service instance
-
-