Class PerformanceResource


  • @Path("/v1/api/performances")
    public class PerformanceResource
    extends java.lang.Object
    resource defining performance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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​(java.lang.String fileName)
      return the report
      javax.ws.rs.core.Response status()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.InterruptedException
        java.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.IOException
        return 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.IOException
        return 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