Class WebViews


  • @Path("/")
    @Produces("text/html")
    public class WebViews
    extends Object
    This class is responsible for specifying Monitor REST Endpoints and setting the templates for the HTML code
    Since:
    2.0.0
    • Constructor Detail

      • WebViews

        public WebViews()
    • Method Detail

      • get

        @GET
        public Map<String,​Object> get()
        Returns the overview template
        Returns:
        Overview model
      • 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 TableNotFoundException
        Returns 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 trace
        minutes - 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
      • getReplication

        @GET
        @Path("replication")
        public Map<String,​Object> getReplication()
        Returns replication table template
        Returns:
        Replication model