Search in sources :

Example 1 with ConfigurationManager

use of org.apache.metron.common.cli.ConfigurationManager in project metron by apache.

the class ConfigurationFunctionsTest method pushConfigs.

private static void pushConfigs(String inputPath) throws Exception {
    String[] args = new String[] { "-z", zookeeperUrl, "--mode", "PUSH", "--input_dir", inputPath };
    ConfigurationManager manager = new ConfigurationManager();
    manager.run(ConfigurationManager.ConfigurationOptions.parse(new PosixParser(), args));
}
Also used : PosixParser(org.apache.commons.cli.PosixParser) ConfigurationManager(org.apache.metron.common.cli.ConfigurationManager)

Aggregations

PosixParser (org.apache.commons.cli.PosixParser)1 ConfigurationManager (org.apache.metron.common.cli.ConfigurationManager)1