Package com.digitalpebble.stormcrawler
Class ConfigurableTopology
- java.lang.Object
-
- com.digitalpebble.stormcrawler.ConfigurableTopology
-
public abstract class ConfigurableTopology extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.storm.Config
conf
-
Constructor Summary
Constructors Constructor Description ConfigurableTopology()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.apache.storm.Config
getConf()
protected abstract int
run(String[] args)
static void
start(ConfigurableTopology topology, String[] args)
protected int
submit(String name, org.apache.storm.Config conf, org.apache.storm.topology.TopologyBuilder builder)
Submits the topology under a specific name *protected int
submit(org.apache.storm.Config conf, org.apache.storm.topology.TopologyBuilder builder)
Submits the topology with the name taken from the configuration *
-
-
-
Method Detail
-
start
public static void start(ConfigurableTopology topology, String[] args)
-
getConf
protected org.apache.storm.Config getConf()
-
run
protected abstract int run(String[] args)
-
submit
protected int submit(org.apache.storm.Config conf, org.apache.storm.topology.TopologyBuilder builder)
Submits the topology with the name taken from the configuration *
-
submit
protected int submit(String name, org.apache.storm.Config conf, org.apache.storm.topology.TopologyBuilder builder)
Submits the topology under a specific name *
-
-