Search in sources :

Example 1 with LocalApplicationRunner

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

the class WindowExample 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 WindowExample());
}
Also used : CommandLine(org.apache.samza.util.CommandLine) Config(org.apache.samza.config.Config) LocalApplicationRunner(org.apache.samza.runtime.LocalApplicationRunner)

Example 2 with LocalApplicationRunner

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

the class OrderShipmentJoinExample 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 OrderShipmentJoinExample());
}
Also used : CommandLine(org.apache.samza.util.CommandLine) Config(org.apache.samza.config.Config) LocalApplicationRunner(org.apache.samza.runtime.LocalApplicationRunner)

Example 3 with LocalApplicationRunner

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

the class MergeExample 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 MergeExample());
}
Also used : CommandLine(org.apache.samza.util.CommandLine) Config(org.apache.samza.config.Config) LocalApplicationRunner(org.apache.samza.runtime.LocalApplicationRunner)

Example 4 with LocalApplicationRunner

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

the class RepartitionExample 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 RepartitionExample());
}
Also used : CommandLine(org.apache.samza.util.CommandLine) Config(org.apache.samza.config.Config) LocalApplicationRunner(org.apache.samza.runtime.LocalApplicationRunner)

Example 5 with LocalApplicationRunner

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

the class BroadcastExample 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 BroadcastExample());
}
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