Modifier and Type | Class and Description |
---|---|
static interface |
JSONBean.Writer
Use dumping out mbeans as JSON.
|
Modifier and Type | Field and Description |
---|---|
private com.fasterxml.jackson.core.JsonFactory |
jsonFactory |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
JSONBean() |
Modifier and Type | Method and Description |
---|---|
static void |
dumpAllBeans()
Dump out all registered mbeans as json on System.out.
|
JSONBean.Writer |
open(PrintWriter writer) |
private static int |
write(com.fasterxml.jackson.core.JsonGenerator jg,
MBeanServer mBeanServer,
ObjectName qry,
String attribute,
boolean description) |
private static void |
writeAttribute(com.fasterxml.jackson.core.JsonGenerator jg,
MBeanServer mBeanServer,
ObjectName oname,
boolean description,
MBeanAttributeInfo attr) |
private static void |
writeAttribute(com.fasterxml.jackson.core.JsonGenerator jg,
String attName,
String descriptionStr,
Object value) |
private static void |
writeObject(com.fasterxml.jackson.core.JsonGenerator jg,
boolean description,
Object value) |
private static final org.slf4j.Logger LOG
private final com.fasterxml.jackson.core.JsonFactory jsonFactory
public JSONBean()
public JSONBean.Writer open(PrintWriter writer) throws IOException
IOException
private static int write(com.fasterxml.jackson.core.JsonGenerator jg, MBeanServer mBeanServer, ObjectName qry, String attribute, boolean description) throws IOException
IOException
private static void writeAttribute(com.fasterxml.jackson.core.JsonGenerator jg, MBeanServer mBeanServer, ObjectName oname, boolean description, MBeanAttributeInfo attr) throws IOException
IOException
private static void writeAttribute(com.fasterxml.jackson.core.JsonGenerator jg, String attName, String descriptionStr, Object value) throws IOException
IOException
private static void writeObject(com.fasterxml.jackson.core.JsonGenerator jg, boolean description, Object value) throws IOException
IOException
public static void dumpAllBeans() throws IOException, MalformedObjectNameException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.