Package org.jmxtrans.embedded

Examples of org.jmxtrans.embedded.EmbeddedJmxTransException


            if (node instanceof Element) {
                String configurationUrl = node.getTextContent();
                logger.debug("Add configuration from attribute {}", configurationUrl);
                configurationUrls.add(configurationUrl);
            } else {
                throw new EmbeddedJmxTransException("Invalid configuration child element " + node);
            }

        }
        builder.addPropertyValue("configurationUrls", configurationUrls);
    }
View Full Code Here


        embeddedJmxTrans = configurationParser.newEmbeddedJmxTrans(configurationUrls);
        String on = "org.jmxtrans.embedded:type=EmbeddedJmxTrans,name=jmxtrans,path=" + sce.getServletContext().getContextPath();
        try {
            objectName = mbeanServer.registerMBean(embeddedJmxTrans, new ObjectName(on)).getObjectName();
        } catch (Exception e) {
            throw new EmbeddedJmxTransException("Exception registering '" + objectName + "'", e);
        }
        try {
            embeddedJmxTrans.start();
        } catch (Exception e) {
            String message = "Exception starting jmxtrans for application '" + sce.getServletContext().getContextPath() + "'";
            sce.getServletContext().log(message, e);
            throw new EmbeddedJmxTransException(message, e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jmxtrans.embedded.EmbeddedJmxTransException

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.