Package org.apache.accumulo.monitor.view
Class WebViews
- java.lang.Object
-
- org.apache.accumulo.monitor.view.WebViews
-
@Path("/") @Produces("text/html") public class WebViews extends ObjectThis class is responsible for specifying Monitor REST Endpoints and setting the templates for the HTML code- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description WebViews()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>get()Returns the overview templateMap<String,Object>getBulkImports()Returns the bulk import templateMap<String,Object>getGC()Returns the garbage collector templateMap<String,Object>getLogs()Returns log report templateMap<String,Object>getMaster()Returns the master templateMap<String,Object>getProblems(@Pattern(regexp="\\w*") String table)Returns problem report templateMap<String,Object>getReplication()Returns replication table templateMap<String,Object>getScans()Returns the scans templateMap<String,Object>getTables()Returns the tables templateMap<String,Object>getTables(@NotNull @Pattern(regexp="[!+]?\\w+") String tableID)Returns participating tservers templateMap<String,Object>getTabletServers(@Pattern(regexp="[a-zA-Z0-9.-]+:[0-9]{2,5}") String server)Returns the tservers templatesMap<String,Object>getTracesForType(@NotNull @Pattern(regexp="(?:)(.*)") String type, @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(2592000L) int minutes)Returns traces by type templateMap<String,Object>getTraceShow(@NotNull @Pattern(regexp="\\w+") String id)Returns traces by ID templateMap<String,Object>getTracesSummary(@javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(2592000L) int minutes)Returns trace summary template
-
-
-
Method Detail
-
getMaster
@GET @Path("{parameter: master|monitor}") public Map<String,Object> getMaster()Returns the master template- Returns:
- Master model
-
getTabletServers
@GET @Path("tservers") public Map<String,Object> getTabletServers(@QueryParam("s") @Pattern(regexp="[a-zA-Z0-9.-]+:[0-9]{2,5}") @Pattern(regexp="[a-zA-Z0-9.-]+:[0-9]{2,5}") String server)Returns the tservers templates- Parameters:
server- TServer to show details- Returns:
- tserver model
-
getScans
@GET @Path("scans") public Map<String,Object> getScans()Returns the scans template- Returns:
- Scans model
-
getBulkImports
@GET @Path("bulkImports") public Map<String,Object> getBulkImports()Returns the bulk import template- Returns:
- Bulk Import model
-
getGC
@GET @Path("gc") public Map<String,Object> getGC()Returns the garbage collector template- Returns:
- GC model
-
getTables
@GET @Path("tables") public Map<String,Object> getTables()Returns the tables template- Returns:
- Tables model
-
getTables
@GET @Path("tables/{tableID}") public Map<String,Object> getTables(@PathParam("tableID") @NotNull @Pattern(regexp="[!+]?\\w+") @NotNull @Pattern(regexp="[!+]?\\w+") String tableID) throws TableNotFoundExceptionReturns participating tservers template- Parameters:
tableID- Table ID for participating tservers- Returns:
- Participating tservers model
- Throws:
TableNotFoundException
-
getTracesSummary
@GET @Path("trace/summary") public Map<String,Object> getTracesSummary(@QueryParam("minutes") @DefaultValue("10") @Min(0L) @Max(2592000L) @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(2592000L) int minutes)Returns trace summary template- Parameters:
minutes- Range of minutes, default 10 minutes Min of 0 Max of 30 days in minutes- Returns:
- Trace summary model
-
getTracesForType
@GET @Path("trace/listType") public Map<String,Object> getTracesForType(@QueryParam("type") @NotNull @Pattern(regexp="(?:)(.*)") @NotNull @Pattern(regexp="(?:)(.*)") String type, @QueryParam("minutes") @DefaultValue("10") @Min(0L) @Max(2592000L) @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(2592000L) int minutes)Returns traces by type template- Parameters:
type- Type of traceminutes- Range of minutes, default 10 minutes Min of 0 Max of 30 days in minutes- Returns:
- Traces by type model
-
getTraceShow
@GET @Path("trace/show") public Map<String,Object> getTraceShow(@QueryParam("id") @NotNull @Pattern(regexp="\\w+") @NotNull @Pattern(regexp="\\w+") String id)Returns traces by ID template- Parameters:
id- ID of the traces- Returns:
- Traces by ID model
-
getLogs
@GET @Path("log") public Map<String,Object> getLogs()Returns log report template- Returns:
- Log report model
-
getProblems
@GET @Path("problems") public Map<String,Object> getProblems(@QueryParam("table") @Pattern(regexp="\\w*") @Pattern(regexp="\\w*") String table)Returns problem report template- Parameters:
table- Table ID to display problem details- Returns:
- Problem report model
-
-