|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.web.jmx.JMXWriter
public class JMXWriter
A useful class for turning JMX statistics into XML and XHTML
| Constructor Summary | |
|---|---|
JMXWriter(PrintWriter writer,
ManagementContext context)
|
|
| Method Summary | |
|---|---|
protected Object |
getAttributeValue(ObjectName name,
String attributeName)
|
ManagementContext |
getManagementContext()
|
MBeanServer |
getMBeanServer()
|
protected String |
getShortName(ObjectName name)
Returns a short descriptive name of the ObjectName without the domain |
void |
outputDetail(ObjectName name)
|
void |
outputDetail(Set names)
|
void |
outputFooter()
|
void |
outputHeader()
|
void |
outputHtmlAttributeGrid(Set names)
|
void |
outputHtmlAttributes(ObjectName name)
|
void |
outputHtmlAttributes(Set names)
|
void |
outputHtmlName(ObjectName name,
String shortName)
|
void |
outputHtmlNames(Collection names)
|
void |
outputHtmlNames(ObjectName name)
|
void |
outputHtmlNamesByDomain(Collection names)
|
void |
outputHtmlNamesByProperty(Collection names,
String property)
|
void |
outputHtmlNamesSortedByShortName(Collection names)
|
void |
outputHtmlProperties(ObjectName name)
|
void |
outputHtmlProperties(Set names)
|
void |
outputHtmlPropertiesGrid(Set names)
|
void |
outputMBeans(Collection names)
|
void |
outputMBeans(ObjectName name)
|
void |
outputNames(Collection names)
|
void |
outputNames(ObjectName name)
|
protected void |
printDetailURL(ObjectName name)
Outputs a URL to the detail JMX stats view |
protected void |
printDetailURL(String propertyName,
String propertyValue)
Outputs a URL to the detail JMX stats view |
void |
printEncodedObjectName(ObjectName name)
Prints a HTTP encoded ObjectName suitable for use inside URLs |
void |
printEncodedValue(Object value)
Encodes the value as a String and ensures that there are no bad XML characters like < or > which are encoded. |
void |
setManagementContext(ManagementContext managementContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMXWriter(PrintWriter writer,
ManagementContext context)
| Method Detail |
|---|
public MBeanServer getMBeanServer()
public ManagementContext getManagementContext()
public void setManagementContext(ManagementContext managementContext)
public void outputHtmlNamesByDomain(Collection names)
throws IOException
IOException
public void outputHtmlNamesByProperty(Collection names,
String property)
throws IOException
IOException
public void outputHtmlNamesSortedByShortName(Collection names)
throws IOException
IOException
public void outputHtmlNames(Collection names)
throws IOException
IOException
public void outputHtmlNames(ObjectName name)
throws IOException
IOException
public void outputHtmlName(ObjectName name,
String shortName)
throws IOException
IOExceptionprotected String getShortName(ObjectName name)
public void outputNames(Collection names)
throws IOException
IOException
public void outputNames(ObjectName name)
throws IOException
IOException
public void outputDetail(Set names)
throws IOException,
JMException
IOException
JMException
public void outputDetail(ObjectName name)
throws JMException,
IOException
JMException
IOException
public void outputHtmlProperties(Set names)
throws JMException,
IOException
JMException
IOException
public void outputHtmlPropertiesGrid(Set names)
throws JMException
JMException
public void outputHtmlProperties(ObjectName name)
throws JMException,
IOException
JMException
IOException
public void outputHtmlAttributes(Set names)
throws IOException,
JMException
IOException
JMException
public void outputHtmlAttributeGrid(Set names)
throws JMException
JMException
public void outputHtmlAttributes(ObjectName name)
throws JMException,
IOException
JMException
IOException
public void outputMBeans(Collection names)
throws IOException
IOException
public void outputMBeans(ObjectName name)
throws IOException
IOException
public void outputHeader()
throws IOException
IOException
public void outputFooter()
throws IOException
IOExceptionpublic void printEncodedValue(Object value)
public void printEncodedObjectName(ObjectName name)
protected void printDetailURL(ObjectName name)
protected void printDetailURL(String propertyName,
String propertyValue)
protected Object getAttributeValue(ObjectName name,
String attributeName)
throws MBeanException
MBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||