Package com.newrelic.metrics.publish.configuration

Examples of com.newrelic.metrics.publish.configuration.ConfigurationException


        String passwd = (String) properties.get("passwd");
        String conn_properties = (String) properties.get("properties");
        String metrics = (String) properties.get("metrics");

        if (name == null || EMPTY_STRING.equals(name)) {
            throw new ConfigurationException("The 'name' attribute is required. Have you configured the 'config/plugin.json' file?");
        }
       
        /**
         * Use pre-defined defaults to simplify configuration
         */
 
View Full Code Here


                JSONObject obj = (JSONObject) json.get(i);
                String category = (String) obj.get("category");
                metricCategories.put(category, obj);
            }
        } catch (ConfigurationException e) {
            throw new ConfigurationException("'metric_categories' could not be found in the 'plugin.json' configuration file");
        }
        return metricCategories;
    }
View Full Code Here

TOP

Related Classes of com.newrelic.metrics.publish.configuration.ConfigurationException

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.