public final class StormSubmitter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
submitTopology(java.lang.String name,
java.util.Map stormConfig,
StormTopology topology)
Submits a topology to run on the cluster.
|
public static void submitTopology(java.lang.String name, java.util.Map stormConfig, StormTopology topology) throws AlreadyAliveException, InvalidTopologyException
name
- the name of the storm.stormConfig
- the topology-specific configuration. See Config
.topology
- the processing to execute.AlreadyAliveException
- if a topology with this name is already runningInvalidTopologyException
- if an invalid topology was submitted