Class ReindexationResource
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.rest.ReindexationResource
-
@Path("/adminmanagement/v1") @ApplicationPath("webresources") public class ReindexationResource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReindexationResource(ElasticsearchFunctionalAdminIndexManager indexManager)
ReindexationResource(LogbookOperationsClientFactory logbookOperationsClientFactory, MetaDataClientFactory metaDataClientFactory, IndexationHelper indexationHelper, ElasticsearchFunctionalAdminIndexManager indexManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
reindex(@Valid java.util.List<IndexParameters> indexParameters)
Reindex a collectionjavax.ws.rs.core.Response
switchIndexes(@Valid java.util.List<SwitchIndexParameters> switchIndexParameters)
Switch indexes
-
-
-
Constructor Detail
-
ReindexationResource
public ReindexationResource(LogbookOperationsClientFactory logbookOperationsClientFactory, MetaDataClientFactory metaDataClientFactory, IndexationHelper indexationHelper, ElasticsearchFunctionalAdminIndexManager indexManager)
-
ReindexationResource
public ReindexationResource(ElasticsearchFunctionalAdminIndexManager indexManager)
-
-
Method Detail
-
reindex
@Path("/reindex") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response reindex(@Valid @Valid java.util.List<IndexParameters> indexParameters)
Reindex a collection- Parameters:
indexParameters
- parameters specifying what to reindex- Returns:
- Response
-
switchIndexes
@Path("/alias") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response switchIndexes(@Valid @Valid java.util.List<SwitchIndexParameters> switchIndexParameters)
Switch indexes- Parameters:
switchIndexParameters
- specifying how to switch indexes- Returns:
- Response
-
-