use of org.apache.samza.util.CommandLine in project samza by apache.
the class AsyncApplicationExample method main.
public static void main(String[] args) {
CommandLine cmdLine = new CommandLine();
Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new AsyncApplicationExample(), config);
runner.run();
runner.waitForFinish();
}
use of org.apache.samza.util.CommandLine in project samza by apache.
the class KeyValueStoreExample method main.
// local execution mode
public static void main(String[] args) {
CommandLine cmdLine = new CommandLine();
Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new KeyValueStoreExample(), config);
runner.run();
runner.waitForFinish();
}
use of org.apache.samza.util.CommandLine in project samza by apache.
the class PageViewCounterExample method main.
// local execution mode
public static void main(String[] args) {
CommandLine cmdLine = new CommandLine();
Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
PageViewCounterExample app = new PageViewCounterExample();
ApplicationRunner runner = ApplicationRunners.getApplicationRunner(app, config);
runner.run();
runner.waitForFinish();
}
use of org.apache.samza.util.CommandLine in project samza by apache.
the class SessionWindowApp method main.
public static void main(String[] args) {
CommandLine cmdLine = new CommandLine();
Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new SessionWindowApp(), config);
runner.run();
runner.waitForFinish();
}
use of org.apache.samza.util.CommandLine in project samza by apache.
the class TumblingWindowApp method main.
public static void main(String[] args) {
CommandLine cmdLine = new CommandLine();
Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new TumblingWindowApp(), config);
runner.run();
runner.waitForFinish();
}
Aggregations