Class PerformanceResource
- java.lang.Object
-
- fr.gouv.vitam.ihmrecette.appserver.performance.PerformanceResource
-
@Path("/v1/api/performances") public class PerformanceResource extends java.lang.Objectresource defining performance
-
-
Constructor Summary
Constructors Constructor Description PerformanceResource(PerformanceService performanceService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponselaunchPerformanceTest(int tenantId, PerformanceModel model)javax.ws.rs.core.ResponselistReport()return the list of reportjavax.ws.rs.core.ResponselistSip()return the list of sipjavax.ws.rs.core.Responsereport(java.lang.String fileName)return the reportjavax.ws.rs.core.Responsestatus()
-
-
-
Constructor Detail
-
PerformanceResource
public PerformanceResource(PerformanceService performanceService)
-
-
Method Detail
-
launchPerformanceTest
@POST @Consumes("application/json") public javax.ws.rs.core.Response launchPerformanceTest(@HeaderParam("X-Tenant-Id") int tenantId, PerformanceModel model)- Parameters:
model-- Returns:
- Response
- Throws:
java.lang.InterruptedExceptionjava.io.FileNotFoundException
-
status
@HEAD public javax.ws.rs.core.Response status()
- Returns:
- 202 if test are in progress, 200 if the previous test are done
-
listReport
@GET @Path("/reports") @Produces("application/json") public javax.ws.rs.core.Response listReport() throws java.io.IOExceptionreturn the list of report- Returns:
- Response 200 if get list of report
- Throws:
java.io.IOException
-
listSip
@GET @Path("/sips") @Produces("application/json") public javax.ws.rs.core.Response listSip() throws java.io.IOExceptionreturn the list of sip- Returns:
- list of sip with relative path
- Throws:
java.io.IOException
-
report
@GET @Path("/reports/{fileName}") @Produces("text/plain") public javax.ws.rs.core.Response report(@PathParam("fileName") java.lang.String fileName)return the report- Parameters:
fileName- report fileName- Returns:
- 200 if report is ok, 404 if exception occurs
- Throws:
java.io.IOException
-
-