public class StatusTransformer
extends java.lang.Object
Constructor and Description |
---|
StatusTransformer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
filter(java.lang.Object obj)
Filter the specified message string for characters that are sensitive
in HTML.
|
static java.lang.String |
filterXml(java.lang.String s)
Escape the 5 entities defined by XML.
|
static java.lang.String |
formatSeconds(java.lang.Object obj)
Formats the given time (given in seconds) as a string.
|
static java.lang.String |
formatSize(java.lang.Object obj,
boolean mb)
Display the given size in bytes, either as KB or MB.
|
static java.lang.String |
formatTime(java.lang.Object obj,
boolean seconds)
Display the given time in ms, either as ms or s.
|
static void |
setContentType(HttpServletResponse response,
int mode) |
static void |
writeBody(java.io.PrintWriter writer,
java.lang.Object[] args,
int mode)
Write the header body.
|
static void |
writeConnectorState(java.io.PrintWriter writer,
javax.management.ObjectName tpName,
java.lang.String name,
javax.management.MBeanServer mBeanServer,
java.util.Vector<javax.management.ObjectName> globalRequestProcessors,
java.util.Vector<javax.management.ObjectName> requestProcessors,
int mode)
Write connector state.
|
protected static void |
writeContext(java.io.PrintWriter writer,
javax.management.ObjectName objectName,
javax.management.MBeanServer mBeanServer,
int mode)
Write context state.
|
static void |
writeDetailedState(java.io.PrintWriter writer,
javax.management.MBeanServer mBeanServer,
int mode)
Write applications state.
|
static void |
writeFooter(java.io.PrintWriter writer,
int mode) |
static void |
writeHeader(java.io.PrintWriter writer,
java.lang.Object[] args,
int mode)
Write an HTML or XML header.
|
static void |
writeJspMonitor(java.io.PrintWriter writer,
java.util.Set<javax.management.ObjectName> jspMonitorONs,
javax.management.MBeanServer mBeanServer,
int mode)
Write JSP monitoring information.
|
static void |
writeManager(java.io.PrintWriter writer,
java.lang.Object[] args,
int mode)
Write the manager webapp information.
|
static void |
writeManager(java.io.PrintWriter writer,
javax.management.ObjectName objectName,
javax.management.MBeanServer mBeanServer,
int mode)
Write detailed information about a manager.
|
static void |
writeOSState(java.io.PrintWriter writer,
int mode)
Write the OS state.
|
static void |
writePageHeading(java.io.PrintWriter writer,
java.lang.Object[] args,
int mode) |
protected static void |
writeProcessorState(java.io.PrintWriter writer,
javax.management.ObjectName pName,
javax.management.MBeanServer mBeanServer,
int mode)
Write processor state.
|
static void |
writeServerInfo(java.io.PrintWriter writer,
java.lang.Object[] args,
int mode) |
static void |
writeVMState(java.io.PrintWriter writer,
int mode)
Write the VM state.
|
static void |
writeWrapper(java.io.PrintWriter writer,
javax.management.ObjectName objectName,
javax.management.MBeanServer mBeanServer,
int mode)
Write detailed information about a wrapper.
|
public static void setContentType(HttpServletResponse response, int mode)
public static void writeHeader(java.io.PrintWriter writer, java.lang.Object[] args, int mode)
writer
- the PrintWriter to useargs
- Path prefix for URLsmode
- - 0 = HTML header, 1 = XML declarationpublic static void writeBody(java.io.PrintWriter writer, java.lang.Object[] args, int mode)
writer
- The output writerargs
- What to writemode
- 0 means writepublic static void writeManager(java.io.PrintWriter writer, java.lang.Object[] args, int mode)
writer
- The output writerargs
- What to writemode
- 0 means writepublic static void writePageHeading(java.io.PrintWriter writer, java.lang.Object[] args, int mode)
public static void writeServerInfo(java.io.PrintWriter writer, java.lang.Object[] args, int mode)
public static void writeFooter(java.io.PrintWriter writer, int mode)
public static void writeOSState(java.io.PrintWriter writer, int mode)
public static void writeVMState(java.io.PrintWriter writer, int mode) throws java.lang.Exception
java.lang.Exception
public static void writeConnectorState(java.io.PrintWriter writer, javax.management.ObjectName tpName, java.lang.String name, javax.management.MBeanServer mBeanServer, java.util.Vector<javax.management.ObjectName> globalRequestProcessors, java.util.Vector<javax.management.ObjectName> requestProcessors, int mode) throws java.lang.Exception
java.lang.Exception
protected static void writeProcessorState(java.io.PrintWriter writer, javax.management.ObjectName pName, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
public static void writeDetailedState(java.io.PrintWriter writer, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
protected static void writeContext(java.io.PrintWriter writer, javax.management.ObjectName objectName, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
public static void writeManager(java.io.PrintWriter writer, javax.management.ObjectName objectName, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
public static void writeJspMonitor(java.io.PrintWriter writer, java.util.Set<javax.management.ObjectName> jspMonitorONs, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
public static void writeWrapper(java.io.PrintWriter writer, javax.management.ObjectName objectName, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
public static java.lang.String filter(java.lang.Object obj)
obj
- The message string to be filteredpublic static java.lang.String filterXml(java.lang.String s)
s
- The message string to be filteredpublic static java.lang.String formatSize(java.lang.Object obj, boolean mb)
mb
- true to display megabytes, false for kilobytespublic static java.lang.String formatTime(java.lang.Object obj, boolean seconds)
seconds
- true to display seconds, false for millisecondspublic static java.lang.String formatSeconds(java.lang.Object obj)
obj
- Time object to be formatted as stringCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.