org.apache.zookeeper.jmx
Class ManagedUtil

java.lang.Object
  extended by org.apache.zookeeper.jmx.ManagedUtil

public class ManagedUtil
extends Object

Shared utilities


Constructor Summary
ManagedUtil()
           
 
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
 

Constructor Detail

ManagedUtil

public ManagedUtil()
Method Detail

registerLog4jMBeans

public static void registerLog4jMBeans()
                                throws JMException
Register the log4j JMX mbeans. Set environment variable "zookeeper.jmx.log4j.disable" to true to disable registration.

Throws:
JMException - if registration fails
See Also:
http://logging.apache.org/log4j/1.2/apidocs/index.html?org/apache/log4j/jmx/package-summary.html


Copyright © 2011 The Apache Software Foundation