Search in sources :

Example 6 with LocalApplicationRunner

use of org.apache.samza.runtime.LocalApplicationRunner in project samza by apache.

the class KeyValueStoreExample method main.

// local execution mode
public static void main(String[] args) throws Exception {
    CommandLine cmdLine = new CommandLine();
    Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
    LocalApplicationRunner localRunner = new LocalApplicationRunner(config);
    localRunner.run(new KeyValueStoreExample());
}
Also used : CommandLine(org.apache.samza.util.CommandLine) Config(org.apache.samza.config.Config) LocalApplicationRunner(org.apache.samza.runtime.LocalApplicationRunner)

Example 7 with LocalApplicationRunner

use of org.apache.samza.runtime.LocalApplicationRunner 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));
    LocalApplicationRunner localRunner = new LocalApplicationRunner(config);
    localRunner.run(new PageViewCounterExample());
}
Also used : CommandLine(org.apache.samza.util.CommandLine) Config(org.apache.samza.config.Config) LocalApplicationRunner(org.apache.samza.runtime.LocalApplicationRunner)

Aggregations

Config (org.apache.samza.config.Config)7 LocalApplicationRunner (org.apache.samza.runtime.LocalApplicationRunner)7 CommandLine (org.apache.samza.util.CommandLine)7