Package org.apache.heron.api
Class HeronSubmitter
- java.lang.Object
-
- org.apache.heron.api.HeronSubmitter
-
public final class HeronSubmitter extends Object
Use this class to submit topologies to run on the Heron cluster. You should run your program with the "heron jar" command from the command-line, and then use this class to submit your topologies.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
submitJar(Config config, String localJar)
Submits a topology to run on the cluster.static void
submitTopology(String name, Config heronConfig, HeronTopology topology)
Submits a topology to run on the cluster.
-
-
-
Method Detail
-
submitTopology
public static void submitTopology(String name, Config heronConfig, HeronTopology topology) throws AlreadyAliveException, InvalidTopologyException
Submits a topology to run on the cluster. A topology runs forever or until explicitly killed.- Parameters:
name
- the name of the topology.heronConfig
- the topology-specific configuration. SeeConfig
.topology
- the processing to execute.- Throws:
AlreadyAliveException
- if a topology with this name is already runningInvalidTopologyException
- if an invalid topology was submitted
-
-