com.bigdata.jmx
Class JMXLog4jMBeanUtil

java.lang.Object
  extended by com.bigdata.jmx.JMXLog4jMBeanUtil

public class JMXLog4jMBeanUtil
extends Object

Utility method to register a log4j MBean.

Note: This class is based on ManagedUtil in the Apache zookeeper project and is therefore under the Apache License.

Version:
$Id: JMXLog4jMBeanUtil.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
See Also:
JMXTest

Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
JMXLog4jMBeanUtil()
           
 
Method Summary
static void registerLog4jMBeans()
          Register the log4j JMX mbeans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

JMXLog4jMBeanUtil

public JMXLog4jMBeanUtil()
Method Detail

registerLog4jMBeans

public static void registerLog4jMBeans()
                                throws JMException
Register the log4j JMX mbeans.

Throws:
JMException - if registration fails
See Also:
jmx/package-summary.html


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.