@Path(value="/v1/api/performances") public class PerformanceResource extends Object implements VitamResource
Constructor and Description |
---|
PerformanceResource(PerformanceService performanceService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
launchPerformanceTest(int tenantId,
PerformanceModel model) |
javax.ws.rs.core.Response |
listReport()
return the list of report
|
javax.ws.rs.core.Response |
listSip()
return the list of sip
|
javax.ws.rs.core.Response |
report(String fileName)
return the report
|
javax.ws.rs.core.Response |
status() |
public PerformanceResource(PerformanceService performanceService)
@POST @Consumes(value="application/json") public javax.ws.rs.core.Response launchPerformanceTest(@HeaderParam(value="X-Tenant-Id") int tenantId, PerformanceModel model) throws InterruptedException, FileNotFoundException
model
- InterruptedException
FileNotFoundException
@HEAD public javax.ws.rs.core.Response status()
@GET @Path(value="/reports") @Produces(value="application/json") public javax.ws.rs.core.Response listReport() throws IOException
IOException
@GET @Path(value="/sips") @Produces(value="application/json") public javax.ws.rs.core.Response listSip() throws IOException
IOException
@GET @Path(value="/reports/{fileName}") @Produces(value="text/plain") public javax.ws.rs.core.Response report(@PathParam(value="fileName") String fileName)
fileName
- report fileNameIOException
Copyright © 2018 Vitam. All rights reserved.