Class ProblemsResource
- java.lang.Object
-
- org.apache.accumulo.monitor.rest.problems.ProblemsResource
-
@Path("/problems") @Produces({"application/json","application/xml"}) public class ProblemsResource extends ObjectGenerates a problem summary and details as a JSON object- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description ProblemsResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearDetailsProblems(@NotNull @Pattern(regexp="[!+]?\\w+") String tableID, @NotNull @Pattern(regexp="(?:)(.*)") String resource, @NotNull @Pattern(regexp="FILE_READ|FILE_WRITE|TABLET_LOAD") String ptype)REST call to clear specific problem detailsvoidclearTableProblems(@NotNull @Pattern(regexp="[!+]?\\w+") String tableID)REST call to clear problem reports from a tableProblemDetailgetDetails()Generates a list of the problem details as a JSON objectExceptiongetException()ProblemSummarygetSummary()Generates a list with the problem summary
-
-
-
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 clearresource- Resource to clearptype- Problem type to clear
-
getException
@GET @Path("exception") public Exception getException()
-
-