Package org.apache.log4j.jmx

Examples of org.apache.log4j.jmx.LoggerDynamicMBean


                    String logName;
                    try
                    {
                        if (mbean instanceof LoggerDynamicMBean)
                        {
                            LoggerDynamicMBean loggerDynamicMBean = (LoggerDynamicMBean) mbean;
                            logName = (String) loggerDynamicMBean.getAttribute("name");
                        }
                        else
                            logName = (String) mbean;
                    }
                    catch (Exception e)
View Full Code Here


                    String loggerName;
                    try
                    {
                        if (mbean instanceof LoggerDynamicMBean)
                        {
                            LoggerDynamicMBean loggerDynamicMBean = (LoggerDynamicMBean) mbean;
                            loggerName = (String) loggerDynamicMBean.getAttribute("name");
                        }
                        else
                            loggerName = (String) mbean;
                    }
                    catch (Exception e)
View Full Code Here

    {
        String name = log.getName();
        ObjectName objectname = null;
        try
        {
            LoggerDynamicMBean loggerMBean = new LoggerDynamicMBean(log);
            objectname = getObjectNameBuilder().createObjectName(name, OBJECT_NAME_TYPE);
            _mbeanserver.registerMBean(loggerMBean, objectname);
        }
        catch (InstanceAlreadyExistsException exception)
        {
View Full Code Here

    {
        String name = logger.getName();
        ObjectName objectname = null;
        try
        {
            LoggerDynamicMBean loggerMBean = new LoggerDynamicMBean(logger);
            objectname = getObjectNameBuilder().createObjectName(name, OBJECT_NAME_TYPE);
            _mbeanserver.registerMBean(loggerMBean, objectname);
        }
        catch (InstanceAlreadyExistsException exception)
        {
View Full Code Here

TOP

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

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.