Package com.newrelic.plugins.mysql.instance

Source Code of com.newrelic.plugins.mysql.instance.Main

package com.newrelic.plugins.mysql.instance;

import com.newrelic.metrics.publish.Runner;
import com.newrelic.metrics.publish.configuration.ConfigurationException;

/**
* This is the main calling class for a New Relic Agent. This class sets up the
* necessary agents from the provided configuration and runs these indefinitely.
*
* @author Ronald Bradford me@ronaldbradford.com
*
*/
public class Main {
   
    public static void main(String[] args) {
        try {
            Runner runner = new Runner();
            runner.add(new MySQLAgentFactory());
            runner.setupAndRun(); // Never returns
        } catch (ConfigurationException e) {
            System.err.println("ERROR: " + e.getMessage());
            System.exit(1);
        }
    }
}
TOP

Related Classes of com.newrelic.plugins.mysql.instance.Main

TOP
Copyright © 2018 www.massapi.com. 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.