HBASE-26921 Rewrite the counting cells part in TestMultiVersions (#4316)
[hbase.git] / hbase-rest / src / main / resources / hbase-webapps / rest / rest.jsp
blob3deb2bbc7357e166f3228a754c620bc8c542b467
1 <%--
2 /**
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
19 --%>
20 <%@ page contentType="text/html;charset=UTF-8"
21 import="org.apache.hadoop.conf.Configuration"
22 import="org.apache.hadoop.hbase.HBaseConfiguration"
23 import="org.apache.hadoop.hbase.rest.model.VersionModel"
24 import="org.apache.hadoop.hbase.util.VersionInfo"
25 import="java.util.Date"%>
27 Configuration conf = (Configuration)getServletContext().getAttribute("hbase.conf");
28 long startcode = conf.getLong("startcode", System.currentTimeMillis());
29 String listenPort = conf.get("hbase.rest.port", "8080");
31 <!DOCTYPE html>
32 <?xml version="1.0" encoding="UTF-8" ?>
33 <html lang="en">
34 <head>
35 <meta charset="utf-8">
36 <title>HBase REST Server: <%= listenPort %></title>
37 <meta name="viewport" content="width=device-width, initial-scale=1.0">
38 <meta name="description" content="">
40 <link href="/static/css/bootstrap.min.css" rel="stylesheet">
41 <link href="/static/css/bootstrap-theme.min.css" rel="stylesheet">
42 <link href="/static/css/hbase.css" rel="stylesheet">
43 </head>
45 <body>
46 <div class="navbar navbar-fixed-top navbar-default">
47 <div class="container-fluid">
48 <div class="navbar-header">
49 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
50 <span class="icon-bar"></span>
51 <span class="icon-bar"></span>
52 <span class="icon-bar"></span>
53 </button>
54 <a class="navbar-brand" href="/rest.jsp"><img src="/static/hbase_logo_small.png" alt="HBase Logo"/></a>
55 </div>
56 <div class="collapse navbar-collapse">
57 <ul class="nav navbar-nav">
58 <li class="active"><a href="/rest.jsp">Home</a></li>
59 <li><a href="/logs/">Local logs</a></li>
60 <li><a href="/logLevel">Log Level</a></li>
61 <li><a href="/jmx">Metrics Dump</a></li>
62 <li><a href="/prof">Profiler</a></li>
63 <% if (HBaseConfiguration.isShowConfInServlet()) { %>
64 <li><a href="/conf">HBase Configuration</a></li>
65 <% } %>
66 </ul>
67 </div><!--/.nav-collapse -->
68 </div>
69 </div>
71 <div class="container-fluid content">
72 <div class="row inner_header">
73 <div class="page-header">
74 <h1>RESTServer <small><%= listenPort %></small></h1>
75 </div>
76 </div>
77 <div class="row">
79 <section>
80 <h2>Software Attributes</h2>
81 <table id="attributes_table" class="table table-striped">
82 <tr>
83 <th>Attribute Name</th>
84 <th>Value</th>
85 <th>Description</th>
86 </tr>
87 <tr>
88 <td>JVM Version</td>
89 <td><%= new VersionModel(getServletContext()).getJVMVersion() %></td>
90 <td>JVM vendor and version</td>
91 </tr>
92 <tr>
93 <td>HBase Version</td>
94 <td><%= VersionInfo.getVersion() %>, revision=<%= VersionInfo.getRevision() %></td>
95 <td>HBase version and revision</td>
96 </tr>
97 <tr>
98 <td>HBase Compiled</td>
99 <td><%= VersionInfo.getDate() %>, <%= VersionInfo.getUser() %></td>
100 <td>When HBase version was compiled and by whom</td>
101 </tr>
102 <tr>
103 <td>REST Server Start Time</td>
104 <td><%= new Date(startcode) %></td>
105 <td>Date stamp of when this REST server was started</td>
106 </tr>
107 </table>
108 </section>
109 </div>
110 <div class="row">
112 <section>
113 <a href="http://hbase.apache.org/book.html#_rest">Apache HBase documentation about REST</a>
114 </section>
115 </div>
116 </div>
117 <script src="/static/js/jquery.min.js" type="text/javascript"></script>
118 <script src="/static/js/bootstrap.min.js" type="text/javascript"></script>
119 <script src="/static/js/tab.js" type="text/javascript"></script>
120 </body>
121 </html>