<% /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ %> <%@ page import = "java.util.Calendar, java.util.Date, java.sql.*, java.text.SimpleDateFormat, java.util.*, java.sql.*,java.io.*,java.lang.Math, java.util.Calendar, java.util.Date, java.text.SimpleDateFormat, java.lang.StringBuilder, org.apache.hadoop.chukwa.util.XssFilter" %> <% response.setContentType("text/html"); %> <% XssFilter xf = new XssFilter(request); // decide type of statistics we want String query_stats_mode = (String) xf.getParameter("heatmap_datanode_stattype"); if (query_stats_mode == null || query_stats_mode.length() <= 0) { query_stats_mode = new String("transaction_count"); } // decide type of state we're interested in String query_state = (String) xf.getParameter("heatmap_datanode_state"); if (query_state == null || query_state.length() <= 0) { query_state = new String("read_local"); } HashMap prettyStateNames = new HashMap(); prettyStateNames.put("read_local", "Local Block Reads"); prettyStateNames.put("write_local", "Local Block Writes"); prettyStateNames.put("read_remote", "Remote Block Reads"); prettyStateNames.put("write_remote", "Remote Block Writes"); prettyStateNames.put("write_replicated", "Replicated Block Writes"); HashMap prettyStatisticNames = new HashMap(); prettyStatisticNames.put("transaction_count", "Number of Transactions"); prettyStatisticNames.put("avg_duration", "Average Duration
(ms)"); prettyStatisticNames.put("avg_volume", "Average Volume
(bytes)"); prettyStatisticNames.put("total_duration", "Total Duration
(ms)"); prettyStatisticNames.put("total_volume", "Total Volume
(bytes)"); %> 2D Spectrum Viewer
 

State: <%= prettyStateNames.get(query_state) %>
Statistic: <%= prettyStatisticNames.get(query_stats_mode) %>

No results returned.
Scale
                                                       
        0