Package org.apache.storm
Class StormSubmitter
- java.lang.Object
-
- org.apache.storm.StormSubmitter
-
public final class StormSubmitter extends Object
Use this class to submit topologies to run on the Storm cluster. You should run your program with the "storm 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 void
submitTopology(String name, Map stormConfig, StormTopology topology)
Submits a topology to run on the cluster.
-
-
-
Method Detail
-
submitTopology
public static void submitTopology(String name, Map stormConfig, StormTopology 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 storm.stormConfig
- 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
-
-