diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java
index d3812b69873..e2d6c96d070 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java
@@ -5,9 +5,9 @@
* 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.
@@ -69,20 +69,20 @@ import org.codehaus.jackson.JsonGenerator;
* For example http://.../jmx?qry=Hadoop:*
will return
* all hadoop metrics exposed through JMX.
*
- * The optional
- * For example
+ * For example
*
- * If the
- * If a resouce such as a mbean or attribute can not be found,
- * a 404 SC_NOT_FOUND http response code will be returned.
+ * If a resouce such as a mbean or attribute can not be found,
+ * a 404 SC_NOT_FOUND http response code will be returned.
*
* The return format is JSON and in the form
*
@@ -99,23 +99,23 @@ import org.codehaus.jackson.JsonGenerator;
*
* The servlet attempts to convert the the JMXBeans into JSON. Each
* bean's attributes will be converted to a JSON object member.
- *
+ *
* If the attribute is a boolean, a number, a string, or an array
- * it will be converted to the JSON equivalent.
- *
+ * it will be converted to the JSON equivalent.
+ *
* If the value is a {@link CompositeData} then it will be converted
* to a JSON object with the keys as the name of the JSON member and
* the value is converted following these same rules.
- *
+ *
* If the value is a {@link TabularData} then it will be converted
* to an array of the {@link CompositeData} elements that it contains.
- *
+ *
* All other objects will be converted to a string and output as such.
- *
+ *
* The bean's name and modelerType will be returned for all beans.
*
* Optional paramater "callback" should be used to deliver JSONP response.
- *
+ *
*/
public class JMXJsonServlet extends HttpServlet {
private static final Log LOG = LogFactory.getLog(JMXJsonServlet.class);
@@ -145,7 +145,7 @@ public class JMXJsonServlet extends HttpServlet {
/**
* Process a GET request for the specified resource.
- *
+ *
* @param request
* The servlet request we are processing
* @param response
@@ -163,7 +163,7 @@ public class JMXJsonServlet extends HttpServlet {
PrintWriter writer = null;
try {
writer = response.getWriter();
-
+
// "callback" parameter implies JSONP outpout
jsonpcb = request.getParameter(CALLBACK_PARAM);
if (jsonpcb != null) {
@@ -221,10 +221,10 @@ public class JMXJsonServlet extends HttpServlet {
}
// --------------------------------------------------------- Private Methods
- private void listBeans(JsonGenerator jg, ObjectName qry, String attribute,
- HttpServletResponse response)
+ private void listBeans(JsonGenerator jg, ObjectName qry, String attribute,
+ HttpServletResponse response)
throws IOException {
- LOG.debug("Listing beans for "+qry);
+ LOG.trace("Listing beans for "+qry);
Setget
parameter is used to query an specific
+ * The optional get
parameter is used to query an specific
* attribute of a JMX bean. The format of the URL is
* http://.../jmx?get=MXBeanName::AttributeName
*
* http://../jmx?get=Hadoop:service=NameNode,name=NameNodeInfo::ClusterId
*
will return the cluster id of the namenode mxbean.
* qry
or the get
parameter is not formatted
- * correctly then a 400 BAD REQUEST http response code will be returned.
+ * If the qry
or the get
parameter is not formatted
+ * correctly then a 400 BAD REQUEST http response code will be returned.
*