ch.elca.el4j.services.monitoring.jmx
Class JmxHtmlFormatter

java.lang.Object
  extended by ch.elca.el4j.services.monitoring.jmx.JmxHtmlFormatter

public class JmxHtmlFormatter
extends Object

This class creates a HtmlAdapter for an MBeanServer.

Author:
Rashid Waraich (RWA)
File-location:
JmxHtmlFormatter
Last check-in date:
2009-08-04 15:13:46 +0200 (Di, 04. Aug 2009) by swismer for revision 3879

Constructor Summary
protected JmxHtmlFormatter()
          Hide default constructor.
 
Method Summary
static String getHtmlTable(String[][] cells)
          This method creates an Html from a two dimentional String array (first dimention=row, second dimention=colomn).
static String getXmlLog4jConfigString(String category, String level)
          This method creates an XML representation of a Logger level change (suitable for log4j.xml).
static String getXMLLog4jRootTag(String level)
          Create an XML tag for a log4j root element (root Logger) form the level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxHtmlFormatter

protected JmxHtmlFormatter()
Hide default constructor.

Method Detail

getHtmlTable

public static String getHtmlTable(String[][] cells)
This method creates an Html from a two dimentional String array (first dimention=row, second dimention=colomn).

Parameters:
cells - The cells of the table.
Returns:
The HTML code of the table.

getXMLLog4jRootTag

public static String getXMLLog4jRootTag(String level)
Create an XML tag for a log4j root element (root Logger) form the level.

Parameters:
level - The level of the root element.
Returns:
An HTML embeddable representation of the root XML element.

getXmlLog4jConfigString

public static String getXmlLog4jConfigString(String category,
                                             String level)
This method creates an XML representation of a Logger level change (suitable for log4j.xml).

Parameters:
category - The category of the logger.
level - The log-level of the logger.
Returns:
An HTML embeddable version of the XML tag.
See Also:
of method 'convertTags'.


Copyright © 2005-2011 ELCA. All Rights Reserved.