Class JSONBean

java.lang.Object
org.apache.hadoop.hbase.util.JSONBean

@Private public class JSONBean extends Object
Utility for doing JSON and MBeans.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Use dumping out mbeans as JSON.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
     
    private static final String
     
    private static final org.apache.hbase.thirdparty.com.google.gson.Gson
     
    private static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Dump out all registered mbeans as json on System.out.
    open(PrintWriter writer)
    Notice that, closing the return JSONBean.Writer will not close the writer passed in, you still need to close the writer by yourself.
    private static int
    write(org.apache.hbase.thirdparty.com.google.gson.stream.JsonWriter writer, MBeanServer mBeanServer, ObjectName qry, String attribute, boolean description, ObjectName excluded)
    Returns Return non-zero if failed to find bean.
    private static void
    writeAttribute(org.apache.hbase.thirdparty.com.google.gson.stream.JsonWriter writer, String attName, String descriptionStr, Object value)
     
    private static void
    writeAttribute(org.apache.hbase.thirdparty.com.google.gson.stream.JsonWriter writer, MBeanServer mBeanServer, ObjectName oname, boolean description, Pattern[] pattern, MBeanAttributeInfo attr)
     
    private static void
    writeObject(org.apache.hbase.thirdparty.com.google.gson.stream.JsonWriter writer, Object value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait