-
- All Implemented Interfaces:
@Controller()@Transactional() public final class ElasticSearchAdminController
-
-
Field Summary
Fields Modifier and Type Field Description private final AppConfigappConfigprivate final OAuthHelperoAuthHelperprivate final ElasticSearchReindexeresReindexer
-
Constructor Summary
Constructors Constructor Description ElasticSearchAdminController(AppConfig appConfig, OAuthHelper oAuthHelper, ElasticSearchReindexer esReindexer)
-
Method Summary
Modifier and Type Method Description final AppConfiggetAppConfig()final OAuthHelpergetOAuthHelper()final ElasticSearchReindexergetEsReindexer()final ResponseEntity<String>deleteElasticSearchIndices()final ResponseEntity<String>reindexElasticSearch()-
-
Constructor Detail
-
ElasticSearchAdminController
ElasticSearchAdminController(AppConfig appConfig, OAuthHelper oAuthHelper, ElasticSearchReindexer esReindexer)
-
-
Method Detail
-
getAppConfig
final AppConfig getAppConfig()
-
getOAuthHelper
final OAuthHelper getOAuthHelper()
-
getEsReindexer
final ElasticSearchReindexer getEsReindexer()
-
deleteElasticSearchIndices
@RequestMapping(value = {"/api/es-admin/delete-indices"})@PostMapping() final ResponseEntity<String> deleteElasticSearchIndices()
-
reindexElasticSearch
@RequestMapping(value = {"/api/es-admin/reindex"})@PostMapping() final ResponseEntity<String> reindexElasticSearch()
-
-
-
-