Package org.apache.log4j.jmx

Examples of org.apache.log4j.jmx.AppenderDynamicMBean


        String name = appender.getName();
        _log.debug("Adding AppenderMBean for appender named " + name);
        ObjectName objectName = null;
        try
        {
            AppenderDynamicMBean appenderMBean = new AppenderDynamicMBean(appender);
            objectName = new ObjectName("log4j", "appender", name);
            getMBeanServer().registerMBean(appenderMBean, objectName);

            _attributes
                    .add(new MBeanAttributeInfo("appender=" + name, "javax.management.ObjectName",
View Full Code Here


        try
        {
            objectName = new ObjectName("log4j", "appender", name);
            // register appender as mbean if not already existing
            if (!getMBeanServer().isRegistered(objectName)) {
                AppenderDynamicMBean appenderMBean = new AppenderDynamicMBean(appender);
                getMBeanServer().registerMBean(appenderMBean, objectName);
   
                _attributes
                        .add(new MBeanAttributeInfo("appender=" + name, "javax.management.ObjectName",
                                "The " + name + " appender.", true, true, false));
View Full Code Here

        {
            objectName = new ObjectName("log4j", "appender", name);
            // register appender as mbean if not already existing
            if (!getMBeanServer().isRegistered(objectName))
            {
                AppenderDynamicMBean appenderMBean = new AppenderDynamicMBean(appender);
                getMBeanServer().registerMBean(appenderMBean, objectName);

                _attributes.add(new MBeanAttributeInfo("appender=" + name,
                        "javax.management.ObjectName", "The " + name + " appender.", true, true,
                        false));
View Full Code Here

TOP

Related Classes of org.apache.log4j.jmx.AppenderDynamicMBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.