public class ReIndexingRunner extends Object
| Constructor and Description |
|---|
ReIndexingRunner(String id,
OttcElasticSearchIndexOrAliasConfig nxAliasCfg,
OttcElasticSearchAdminImpl esAdmin,
OttcElasticSearchIndexing esIndexing,
EsState initialEsState) |
| Modifier and Type | Method and Description |
|---|---|
protected OttcElasticSearchIndexOrAliasConfig |
createNewEsIndex(IndexName newIndexName,
OttcElasticSearchIndexOrAliasConfig nxIndexNAliasCfg) |
protected void |
createNSwitchOnTransientAliases(IndexName initialIndex,
IndexName newIndex) |
ReIndexingRunner |
esAdmin(OttcElasticSearchAdminImpl esAdmin) |
ReIndexingRunner |
esIndexing(OttcElasticSearchIndexing esIndexing) |
OttcElasticSearchAdminImpl |
getEsAdmin() |
OttcElasticSearchIndexing |
getEsIndexing() |
EsState |
getInitialEsState() |
ReIndexingConfig |
getReIndexingConfig() |
ReIndexingRunnerStep |
getRunnerStep() |
String |
getWorkId() |
protected void |
reIndex(String repository,
IndexName newIndex) |
void |
run() |
void |
setWorkId(String workId) |
protected void |
waitReIndexing() |
public ReIndexingRunner(String id, OttcElasticSearchIndexOrAliasConfig nxAliasCfg, OttcElasticSearchAdminImpl esAdmin, OttcElasticSearchIndexing esIndexing, EsState initialEsState)
public void run()
throws ReIndexingException
ReIndexingExceptionprotected OttcElasticSearchIndexOrAliasConfig createNewEsIndex(IndexName newIndexName, OttcElasticSearchIndexOrAliasConfig nxIndexNAliasCfg) throws ReIndexingException
ReIndexingExceptionprotected void createNSwitchOnTransientAliases(IndexName initialIndex, IndexName newIndex) throws ReIndexingException
ReIndexingExceptionprotected void reIndex(String repository, IndexName newIndex) throws ReIndexingException
ReIndexingExceptionprotected void waitReIndexing()
throws InterruptedException
InterruptedExceptionpublic String getWorkId()
public void setWorkId(String workId)
public ReIndexingConfig getReIndexingConfig()
public ReIndexingRunnerStep getRunnerStep()
public OttcElasticSearchAdminImpl getEsAdmin()
public ReIndexingRunner esAdmin(OttcElasticSearchAdminImpl esAdmin)
public OttcElasticSearchIndexing getEsIndexing()
public ReIndexingRunner esIndexing(OttcElasticSearchIndexing esIndexing)
public EsState getInitialEsState()
Copyright © 2020. All rights reserved.