public static void configure ( JMXetricAgent agent , String agentArgs ) throws Exception { CommandLineArgs args = new CommandLineArgs ( agentArgs ) ; InputSource inputSource = new InputSource ( args . getConfig ( ) ) ; configureGanglia ( agent , inputSource , args ) ; configureJMXetric ( agent , inputSource , args ) ; }
Configures the JMXetricAgent based on the supplied agentArgs Command line arguments overwrites XML arguments . Any arguments that is required but no supplied will be defaulted .