Class ProblemsResource


  • @Path("/problems")
    @Produces({"application/json","application/xml"})
    public class ProblemsResource
    extends Object
    Generates a problem summary and details as a JSON object
    Since:
    2.0.0
    • Constructor Detail

      • ProblemsResource

        public ProblemsResource()
    • Method Detail

      • getSummary

        @GET
        @Path("summary")
        public ProblemSummary getSummary()
        Generates a list with the problem summary
        Returns:
        problem summary list
      • clearTableProblems

        @POST
        @Consumes("text/plain")
        @Path("summary")
        public void clearTableProblems​(@QueryParam("s") @NotNull @Pattern(regexp="[!+]?\\w+")
                                       @NotNull @Pattern(regexp="[!+]?\\w+") String tableID)
        REST call to clear problem reports from a table
        Parameters:
        tableID - Table ID to clear problems
      • getDetails

        @GET
        @Path("details")
        public ProblemDetail getDetails()
        Generates a list of the problem details as a JSON object
        Returns:
        problem details list
      • clearDetailsProblems

        @POST
        @Consumes("text/plain")
        @Path("details")
        public void clearDetailsProblems​(@QueryParam("table") @NotNull @Pattern(regexp="[!+]?\\w+")
                                         @NotNull @Pattern(regexp="[!+]?\\w+") String tableID,
                                         @QueryParam("resource") @NotNull @Pattern(regexp="(?:)(.*)")
                                         @NotNull @Pattern(regexp="(?:)(.*)") String resource,
                                         @QueryParam("ptype") @NotNull @Pattern(regexp="FILE_READ|FILE_WRITE|TABLET_LOAD")
                                         @NotNull @Pattern(regexp="FILE_READ|FILE_WRITE|TABLET_LOAD") String ptype)
        REST call to clear specific problem details
        Parameters:
        tableID - Table ID to clear
        resource - Resource to clear
        ptype - Problem type to clear
      • getException

        @GET
        @Path("exception")
        public Exception getException()