Class TracesResource


  • @Path("/trace")
    @Produces({"application/json","application/xml"})
    public class TracesResource
    extends Object
    Generates a list of traces with the summary, by type, and trace details
    Since:
    2.0.0
    • Constructor Detail

      • TracesResource

        public TracesResource()
    • 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 Exception
        Generates 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 Exception
        Generates a list of traces filtered by type and range of minutes
        Parameters:
        type - Type of the trace
        minutes - 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 Exception
        Generates 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()