Package org.apache.logging.log4j.core.jmx

Examples of org.apache.logging.log4j.core.jmx.LoggerContextAdminMBean


        contextAdminList = new ArrayList<LoggerContextAdminMBean>();
        final String pattern = String.format(LoggerContextAdminMBean.PATTERN, "*");
        final ObjectName search = new ObjectName(pattern);
        final Set<ObjectName> found = connection.queryNames(search, null);
        for (final ObjectName contextName : found) {
            final LoggerContextAdminMBean ctx = JMX.newMBeanProxy(connection, //
                    contextName, //
                    LoggerContextAdminMBean.class, false);
            contextAdminList.add(ctx);

            // TODO Appenders, LoggerConfigs
View Full Code Here


        }
        return result;
    }

    public LoggerContextAdminMBean getLoggerContextAdmin(ObjectName name) {
        final LoggerContextAdminMBean ctx = JMX.newMBeanProxy(connection, //
                name, //
                LoggerContextAdminMBean.class, false);
        return ctx;
    }
View Full Code Here

     * @param mbeanName ObjectName of the registered Log4J2 MBean
     */
    private void onMBeanRegistered(ObjectName mbeanName) {
        if (client.isLoggerContext(mbeanName)) {
            try {
                LoggerContextAdminMBean ctx = client.getLoggerContextAdmin(mbeanName);
                addWidgetForLoggerContext(ctx);
            } catch (Exception ex) {
                handle("Could not add tab for new MBean " + mbeanName, ex);
            }
        }
View Full Code Here

        contextAdminList = new ArrayList<LoggerContextAdminMBean>();
        String pattern = String.format(LoggerContextAdminMBean.PATTERN, "*");
        ObjectName search = new ObjectName(pattern);
        Set<ObjectName> found = connection.queryNames(search, null);
        for (ObjectName contextName : found) {
            LoggerContextAdminMBean ctx = JMX.newMBeanProxy(connection, //
                    contextName, //
                    LoggerContextAdminMBean.class, false);
            contextAdminList.add(ctx);

            // TODO Appenders, LoggerConfigs
View Full Code Here

     * @param mbeanName ObjectName of the registered Log4J2 MBean
     */
    private void onMBeanRegistered(ObjectName mbeanName) {
        if (client.isLoggerContext(mbeanName)) {
            try {
                LoggerContextAdminMBean ctx = client.getLoggerContextAdmin(mbeanName);
                addWidgetForLoggerContext(ctx);
            } catch (Exception ex) {
                handle("Could not add tab for new MBean " + mbeanName, ex);
            }
        }
View Full Code Here

        }
        return result;
    }

    public LoggerContextAdminMBean getLoggerContextAdmin(ObjectName name) {
        final LoggerContextAdminMBean ctx = JMX.newMBeanProxy(connection, //
                name, //
                LoggerContextAdminMBean.class, false);
        return ctx;
    }
View Full Code Here

        contextAdminList = new ArrayList<LoggerContextAdminMBean>();
        final String pattern = String.format(LoggerContextAdminMBean.PATTERN, "*");
        final ObjectName search = new ObjectName(pattern);
        final Set<ObjectName> found = connection.queryNames(search, null);
        for (final ObjectName contextName : found) {
            final LoggerContextAdminMBean ctx = JMX.newMBeanProxy(connection, //
                    contextName, //
                    LoggerContextAdminMBean.class, false);
            contextAdminList.add(ctx);

            // TODO Appenders, LoggerConfigs
View Full Code Here

TOP

Related Classes of org.apache.logging.log4j.core.jmx.LoggerContextAdminMBean

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.