Class AdminStatusResource

  • Direct Known Subclasses:
    AdminBatchReportResource

    @Path("/admin/v1")
    @Consumes("application/json")
    @Produces("application/json")
    public class AdminStatusResource
    extends java.lang.Object
    AdminStatusResource : Manage Admin Functionality through Admin URI
    • Field Detail

      • STATUS_URL

        public static final java.lang.String STATUS_URL
        Status for Administration resource path
        See Also:
        Constant Field Values
      • AUTOTEST_URL

        public static final java.lang.String AUTOTEST_URL
        Autotest for Administration resource path
        See Also:
        Constant Field Values
    • Constructor Detail

      • AdminStatusResource

        public AdminStatusResource()
        Constructor AdminStatusResource using implicit BasicVitamStatusServiceImpl
      • AdminStatusResource

        public AdminStatusResource​(VitamStatusService statusService)
        Constructor AdminStatusResource
        Parameters:
        statusService -
      • AdminStatusResource

        public AdminStatusResource​(VitamStatusService statusService,
                                   VitamServiceRegistry autotestService)
        Constructor AdminStatusResource
        Parameters:
        statusService -
        autotestService -
      • AdminStatusResource

        public AdminStatusResource​(VitamServiceRegistry autotestService)
        Constructor AdminStatusResource
        Parameters:
        autotestService -
    • Method Detail

      • adminStatus

        @Path("/status")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response adminStatus()
        Return a response status
        Returns:
        Response containing the status of the service in AdminStatusMessage form
      • adminVersion

        @Path("/version")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response adminVersion()
        Return a response version infos (for all nodes)
        Returns:
        Response containing the status of the service in AdminStatusMessage form
      • adminAutotest

        @Path("/autotest")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response adminAutotest()
        Returns:
        the full status including dependencies in VitamError form
      • prometheusMetrics

        @Path("/metrics")
        @GET
        @Produces("text/plain; version=0.0.4; charset=utf-8")
        public javax.ws.rs.core.Response prometheusMetrics()