Class TracesResource
- java.lang.Object
-
- org.apache.accumulo.monitor.rest.trace.TracesResource
-
@Path("/trace") @Produces({"application/json","application/xml"}) public class TracesResource extends ObjectGenerates a list of traces with the summary, by type, and trace details- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description TracesResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Pair<AccumuloClient,org.apache.hadoop.security.UserGroupInformation>getClient()protected RangegetRangeForTrace(long minutesSince)RecentTracesListgetTraces(@javax.validation.constraints.NotNull,@javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(2592000L) int minutes)Generates a trace summaryTraceTypegetTracesType(@NotNull @Pattern(regexp="(?:)(.*)") String type, @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(2592000L) int minutes)Generates a list of traces filtered by type and range of minutesTraceListgetTracesType(@NotNull @Pattern(regexp="\\w+") String id)Generates a list of traces filtered by ID
-
-
-
Method Detail
-
getTraces
@Path("summary/{minutes}") @GET public RecentTracesList getTraces(@DefaultValue("10") @PathParam("minutes") @NotNull @Min(0L) @Max(2592000L) @javax.validation.constraints.NotNull,@javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(2592000L) int minutes) throws ExceptionGenerates a trace summary- Parameters:
minutes- Range of minutes to filter traces Min of 0 minutes, Max of 30 days- Returns:
- Trace summary in specified range
- Throws:
Exception
-
getTracesType
@Path("listType/{type}/{minutes}") @GET public TraceType getTracesType(@PathParam("type") @NotNull @Pattern(regexp="(?:)(.*)") @NotNull @Pattern(regexp="(?:)(.*)") String type, @PathParam("minutes") @Min(0L) @Max(2592000L) @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(2592000L) int minutes) throws ExceptionGenerates a list of traces filtered by type and range of minutes- Parameters:
type- Type of the traceminutes- Range of minutes, Min of 0 and Max 0f 30 days- Returns:
- List of traces filtered by type and range
- Throws:
Exception
-
getTracesType
@Path("show/{id}") @GET public TraceList getTracesType(@PathParam("id") @NotNull @Pattern(regexp="\\w+") @NotNull @Pattern(regexp="\\w+") String id) throws ExceptionGenerates a list of traces filtered by ID- Parameters:
id- ID of the trace to display- Returns:
- traces by ID
- Throws:
Exception
-
getRangeForTrace
protected Range getRangeForTrace(long minutesSince)
-
getClient
protected Pair<AccumuloClient,org.apache.hadoop.security.UserGroupInformation> getClient()
-
-