public class IndexNAliasManager extends Object
public static void init(org.elasticsearch.client.AdminClient adminClient)
public static IndexNAliasManager get()
public List<String> getIndicesOfAlias(String alias) throws NoSuchElementException
NoSuchElementExceptionpublic String getTransientAlias(String repositoryName, TransitoryIndexUse use)
public Boolean mayTransientAliasesExist()
public Boolean transientAliasesExist()
public OttcElasticSearchIndexOrAliasConfig createNewIndex(IndexName newIndexName, OttcElasticSearchIndexOrAliasConfig nxAliasCfg) throws IndexException, InterruptedException, ExecutionException
newIdxCfg - IndexExceptionExecutionExceptionInterruptedExceptionIndexExistenceExceptionpublic void createTransientAliases(IndexName initialIndex, IndexName newIndex) throws ReIndexingException
initialIdxName - newIdxName - ReIndexingExceptionpublic void updateEsAlias(String aliasName, IndexName initialIndex, IndexName newIndex) throws ReIndexingException
ReIndexingExceptionpublic void updateEsFormerAlias(String aliasName, IndexName initialIndex) throws ReIndexingException
ReIndexingExceptionpublic void fixAlias(String aliasName, String currentIndex, IndexName initialIndex) throws ReIndexingException
ReIndexingExceptionpublic String getFormerAliasName(String aliasName)
aliasName - public void deleteTransientAliases(IndexName initialIndex, IndexName newIndex) throws ReIndexingException
initialCfg - newCfg - ReIndexingExceptionpublic void deleteIndex(String name)
name - public OttcElasticSearchIndexing getElasticSearchIndexing()
public org.elasticsearch.client.AdminClient getAdminClient()
public IndexNAliasManager adminClient(org.elasticsearch.client.Client esClient)
Copyright © 2020. All rights reserved.