Class OpenSearchAdminServiceFactory
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<org.craftercms.search.opensearch.OpenSearchAdminService>
org.craftercms.deployer.utils.opensearch.legacy.AbstractOpenSearchFactory<org.craftercms.search.opensearch.OpenSearchAdminService>
org.craftercms.deployer.utils.opensearch.legacy.OpenSearchAdminServiceFactory
- 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.opensearch.OpenSearchAdminService>,org.springframework.beans.factory.InitializingBean
public class OpenSearchAdminServiceFactory
extends AbstractOpenSearchFactory<org.craftercms.search.opensearch.OpenSearchAdminService>
Implementation of
AbstractOpenSearchFactory for OpenSearchAdminService- Since:
- 3.1.5
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.core.io.ResourceIndex mapping file for authoring indicesprotected Stringprotected org.springframework.core.io.ResourceIndex mapping file for preview indicesFields inherited from class org.craftercms.deployer.utils.opensearch.legacy.AbstractOpenSearchFactory
config, nameFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchAdminServiceFactory(OpenSearchConfig config, org.springframework.core.io.Resource authoringMapping, org.springframework.core.io.Resource previewMapping, String authoringNamePattern) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.craftercms.search.opensearch.OpenSearchAdminServicedoCreateMultiInstance(org.opensearch.client.RestHighLevelClient readClient, org.opensearch.client.RestHighLevelClient[] writeClients) Creates a service instance for a multiple clusterprotected org.craftercms.search.opensearch.OpenSearchAdminServicedoCreateSingleInstance(org.opensearch.client.RestHighLevelClient client) Creates a service instance for a single clusterClass<?> Methods inherited from class org.craftercms.deployer.utils.opensearch.legacy.AbstractOpenSearchFactory
createInstance, destroyInstance, setBeanNameMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
authoringMapping
protected org.springframework.core.io.Resource authoringMappingIndex mapping file for authoring indices -
previewMapping
protected org.springframework.core.io.Resource previewMappingIndex mapping file for preview indices -
authoringNamePattern
-
-
Constructor Details
-
OpenSearchAdminServiceFactory
@ConstructorProperties({"config","authoringMapping","previewMapping","authoringNamePattern"}) public OpenSearchAdminServiceFactory(OpenSearchConfig config, org.springframework.core.io.Resource authoringMapping, org.springframework.core.io.Resource previewMapping, String authoringNamePattern)
-
-
Method Details
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.craftercms.search.opensearch.OpenSearchAdminService>- Specified by:
getObjectTypein classorg.springframework.beans.factory.config.AbstractFactoryBean<org.craftercms.search.opensearch.OpenSearchAdminService>
-
doCreateSingleInstance
protected org.craftercms.search.opensearch.OpenSearchAdminService doCreateSingleInstance(org.opensearch.client.RestHighLevelClient client) Description copied from class:AbstractOpenSearchFactoryCreates a service instance for a single cluster- Specified by:
doCreateSingleInstancein classAbstractOpenSearchFactory<org.craftercms.search.opensearch.OpenSearchAdminService>- Parameters:
client- the OpenSearch client- Returns:
- the service instance
-
doCreateMultiInstance
protected org.craftercms.search.opensearch.OpenSearchAdminService doCreateMultiInstance(org.opensearch.client.RestHighLevelClient readClient, org.opensearch.client.RestHighLevelClient[] writeClients) Description copied from class:AbstractOpenSearchFactoryCreates a service instance for a multiple cluster- Specified by:
doCreateMultiInstancein classAbstractOpenSearchFactory<org.craftercms.search.opensearch.OpenSearchAdminService>- Parameters:
readClient- the OpenSearch client for read-related operationswriteClients- the OpenSearch clients for write-related operations- Returns:
- the service instance
-