|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.monitor.webinterface.JMXSummaryUtils
public class JMXSummaryUtils
Various utility methods and classes for the JMX Monitor page.
Nested Class Summary | |
---|---|
static class |
JMXSummaryUtils.StarredRequest
This class encapsulates a HttpServletRequest, making non-existing parameters appear as "*" for wildcard (or "0" for the index parameter). |
Field Summary | |
---|---|
static java.lang.String |
JMXApplicationnameProperty
|
static java.lang.String |
JMXHostnameProperty
|
static java.lang.String |
JMXHttpportProperty
|
static java.lang.String |
JMXIndexProperty
|
static java.lang.String |
JMXLocationProperty
JMX properties used by Monitor-JMXsummary.jsp |
static java.lang.String[] |
STARRABLE_PARAMETERS
JMX properties, which can set to star. |
Constructor Summary | |
---|---|
JMXSummaryUtils()
|
Method Summary | |
---|---|
static java.lang.String |
generateLink(JMXSummaryUtils.StarredRequest request,
java.lang.String setPart,
java.lang.String setValue,
java.lang.String linkText)
Generate an HTML link to the JMX summary page with one part of the URL parameters set to a specific value. |
static java.lang.String |
generateMessage(java.lang.String logMessage,
java.util.Locale l)
Make an HTML fragment that shows a log message preformatted. |
static java.lang.String |
generateShowAllLink(JMXSummaryUtils.StarredRequest starredRequest,
java.lang.String parameter,
java.util.Locale l)
Generate HTML to show at the top of the table, containing a "show all" link if the parameter is currently restricted. |
static java.util.List<StatusEntry> |
queryJMXFromRequest(java.lang.String[] parameters,
JMXSummaryUtils.StarredRequest request,
javax.servlet.jsp.PageContext context)
Get status entries from JMX based on a request and some parameters. |
static java.lang.String |
reduceApplicationName(java.lang.String applicationName)
Reduce the class name of an application to the essentials. |
static java.lang.String |
reduceHostname(java.lang.String hostname)
Reduce a hostname to a more readable form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JMXLocationProperty
public static final java.lang.String JMXHostnameProperty
public static final java.lang.String JMXHttpportProperty
public static final java.lang.String JMXApplicationnameProperty
public static final java.lang.String JMXIndexProperty
public static final java.lang.String[] STARRABLE_PARAMETERS
Constructor Detail |
---|
public JMXSummaryUtils()
Method Detail |
---|
public static java.lang.String reduceApplicationName(java.lang.String applicationName)
applicationName
- The class name of the application
public static java.lang.String reduceHostname(java.lang.String hostname)
hostname
- A host name.
public static java.lang.String generateShowAllLink(JMXSummaryUtils.StarredRequest starredRequest, java.lang.String parameter, java.util.Locale l)
starredRequest
- A request to take parameters from.parameter
- The parameter that, if not already unrestricted, should
be unrestricted in the "show all" link.l
- the current locale
public static java.lang.String generateLink(JMXSummaryUtils.StarredRequest request, java.lang.String setPart, java.lang.String setValue, java.lang.String linkText)
request
- A request to draw other parameter values fromsetPart
- Which of the parameters to set.setValue
- The value to set that parameter to.linkText
- The HTML text that should go inside the link. Remember
to escape HTML values if inserting a normal string.
ArgumentNotValid
- if request is nullpublic static java.util.List<StatusEntry> queryJMXFromRequest(java.lang.String[] parameters, JMXSummaryUtils.StarredRequest request, javax.servlet.jsp.PageContext context)
parameters
- The parameters to query JMX for.request
- A request possibly containing values for some of the
parameters.context
- the current JSP context
ArgumentNotValid
- if the query is invalid (typically caused by
invalid parameters).
ForwardedToErrorPage
- if unable to create JMX-querypublic static java.lang.String generateMessage(java.lang.String logMessage, java.util.Locale l)
logMessage
- The log message to presentl
- the current Locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |