public class StormSubmitter extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
StormSubmitter.ProgressListener
Interface use to track progress of file upload
|
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
StormSubmitter() |
Modifier and Type | Method and Description |
---|---|
static void |
setLocalNimbus(Nimbus.Iface localNimbusHandler) |
static String |
submitJar(Map conf,
String localJar)
Submit jar file
|
static String |
submitJar(Map conf,
String localJar,
StormSubmitter.ProgressListener listener)
Submit jar file
|
static void |
submitTopology(String name,
Map stormConf,
StormTopology topology)
Submits a topology to run on the cluster.
|
static void |
submitTopology(String name,
Map stormConf,
StormTopology topology,
SubmitOptions opts)
Submits a topology to run on the cluster.
|
static void |
submitTopology(String name,
Map stormConf,
StormTopology topology,
SubmitOptions opts,
StormSubmitter.ProgressListener progressListener)
Submits a topology to run on the cluster.
|
static void |
submitTopologyWithProgressBar(String name,
Map stormConf,
StormTopology topology)
Submits a topology to run on the cluster with a progress bar.
|
static void |
submitTopologyWithProgressBar(String name,
Map stormConf,
StormTopology topology,
SubmitOptions opts)
Submits a topology to run on the cluster with a progress bar.
|
public static void setLocalNimbus(Nimbus.Iface localNimbusHandler)
public static void submitTopology(String name, Map stormConf, StormTopology topology) throws AlreadyAliveException, InvalidTopologyException
name
- the name of the storm.stormConf
- 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 submittedpublic static void submitTopology(String name, Map stormConf, StormTopology topology, SubmitOptions opts) throws AlreadyAliveException, InvalidTopologyException
name
- the name of the storm.stormConf
- the topology-specific configuration. See Config
.topology
- the processing to execute.opts
- to manipulate the starting of the topology.AlreadyAliveException
- if a topology with this name is already runningInvalidTopologyException
- if an invalid topology was submittedpublic static void submitTopology(String name, Map stormConf, StormTopology topology, SubmitOptions opts, StormSubmitter.ProgressListener progressListener) throws AlreadyAliveException, InvalidTopologyException
name
- the name of the storm.stormConf
- the topology-specific configuration. See Config
.topology
- the processing to execute.opts
- to manipulate the starting of the topologyprogressListener
- to track the progress of the jar upload processAlreadyAliveException
- if a topology with this name is already runningInvalidTopologyException
- if an invalid topology was submittedpublic static void submitTopologyWithProgressBar(String name, Map stormConf, StormTopology topology) throws AlreadyAliveException, InvalidTopologyException
name
- the name of the storm.stormConf
- 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 submittedpublic static void submitTopologyWithProgressBar(String name, Map stormConf, StormTopology topology, SubmitOptions opts) throws AlreadyAliveException, InvalidTopologyException
name
- the name of the storm.stormConf
- the topology-specific configuration. See Config
.topology
- the processing to execute.opts
- to manipulate the starting of the topologyAlreadyAliveException
- if a topology with this name is already runningInvalidTopologyException
- if an invalid topology was submittedpublic static String submitJar(Map conf, String localJar)
conf
- the topology-specific configuration. See Config
.localJar
- file path of the jar file to submitpublic static String submitJar(Map conf, String localJar, StormSubmitter.ProgressListener listener)
conf
- the topology-specific configuration. See Config
.localJar
- file path of the jar file to submitlistener
- progress listener to track the jar file uploadCopyright © 2016 The Apache Software Foundation. All Rights Reserved.