Class DeleteIndexLifecycleHook
java.lang.Object
org.craftercms.deployer.impl.lifecycle.AbstractLifecycleHook
org.craftercms.deployer.impl.lifecycle.AbstractIndexAwareLifecycleHook
org.craftercms.deployer.impl.lifecycle.DeleteIndexLifecycleHook
- All Implemented Interfaces:
TargetLifecycleHook
,InitializableByConfigBean
Implementation of
TargetLifecycleHook
that deletes an OpenSearch index.- Author:
- avasquez
-
Field Summary
Fields inherited from class org.craftercms.deployer.impl.lifecycle.AbstractIndexAwareLifecycleHook
INDEX_ID_CONFIG_KEY, indexId, indexIdFormat, searchAdminService, siteName
Fields inherited from class org.craftercms.deployer.impl.lifecycle.AbstractLifecycleHook
CONFIG_KEY_DISABLED, disabled, logger
-
Constructor Summary
ConstructorDescriptionDeleteIndexLifecycleHook
(String siteName, String indexIdFormat, org.craftercms.search.opensearch.OpenSearchAdminService searchAdminService) -
Method Summary
Methods inherited from class org.craftercms.deployer.impl.lifecycle.AbstractIndexAwareLifecycleHook
doInit
Methods inherited from class org.craftercms.deployer.impl.lifecycle.AbstractLifecycleHook
execute, init
-
Constructor Details
-
DeleteIndexLifecycleHook
@ConstructorProperties({"siteName","indexIdFormat","searchAdminService"}) public DeleteIndexLifecycleHook(String siteName, String indexIdFormat, org.craftercms.search.opensearch.OpenSearchAdminService searchAdminService)
-
-
Method Details
-
doExecute
- Specified by:
doExecute
in classAbstractLifecycleHook
- Throws:
DeployerException
-