Class PerformanceResource
java.lang.Object
fr.gouv.vitam.ihmrecette.appserver.performance.PerformanceResource
resource defining performance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
launchPerformanceTest
(int tenantId, PerformanceModel model) javax.ws.rs.core.Response
return the list of reportjavax.ws.rs.core.Response
listSip()
return the list of sipjavax.ws.rs.core.Response
return the reportjavax.ws.rs.core.Response
status()
-
Constructor Details
-
PerformanceResource
-
-
Method Details
-
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:
InterruptedException
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 IOExceptionreturn the list of report- Returns:
- Response 200 if get list of report
- Throws:
IOException
-
listSip
@GET @Path("/sips") @Produces("application/json") public javax.ws.rs.core.Response listSip() throws IOExceptionreturn the list of sip- Returns:
- list of sip with relative path
- Throws:
IOException
-
report
@GET @Path("/reports/{fileName}") @Produces("text/plain") public javax.ws.rs.core.Response report(@PathParam("fileName") String fileName) return the report- Parameters:
fileName
- report fileName- Returns:
- 200 if report is ok, 404 if exception occurs
- Throws:
IOException
-