Class AdminOfferDiagResource

java.lang.Object
fr.gouv.vitam.storage.offers.rest.AdminOfferDiagResource

@Path("/offer/v1") @ApplicationPath("webresources") public class AdminOfferDiagResource extends Object
Offer diagnostic resource.
  • Constructor Details

    • AdminOfferDiagResource

      public AdminOfferDiagResource(OfferDiagService offerDiagService)
      Constructor.
  • Method Details

    • startOfferDiag

      @Path("/diag") @POST @Consumes("application/json") @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public jakarta.ws.rs.core.Response startOfferDiag(OfferDiagRequest offerDiagRequest)
    • isOfferDiagRunning

      @Path("/diag") @HEAD @VitamAuthentication(authentLevel=BASIC_AUTHENT) public jakarta.ws.rs.core.Response isOfferDiagRunning()
      Returns offer diagnostic process running status in a "Running" header (true/false).
    • getLastOfferDiagStatus

      @Path("/diag") @GET @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public jakarta.ws.rs.core.Response getLastOfferDiagStatus()
      Returns the offer diagnostic status of the last diagnostic process (diagnostic process may be done, or still running)