public class StreamTopology extends Object
| Modifier and Type | Field and Description |
|---|---|
Map<String,backtype.storm.topology.BoltDeclarer> |
bolts |
backtype.storm.topology.TopologyBuilder |
builder |
(package private) static org.slf4j.Logger |
log |
Map<String,backtype.storm.topology.SpoutDeclarer> |
spouts |
(package private) Set<Subscription> |
subscriptions |
static String |
UUID_ATTRIBUTE |
Variables |
variables |
| Modifier | Constructor and Description |
|---|---|
private |
StreamTopology(backtype.storm.topology.TopologyBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBolt(String id,
backtype.storm.topology.BoltDeclarer bolt) |
void |
addSpout(String id,
backtype.storm.topology.SpoutDeclarer spout) |
void |
addSubscription(Subscription sub) |
static StreamTopology |
build(Document doc,
backtype.storm.topology.TopologyBuilder builder)
Creates a new instance of a StreamTopology based on the given document
and using the specified TopologyBuilder.
|
static StreamTopology |
create(Document doc)
Creates a new instance of a StreamTopology based on the given document.
|
backtype.storm.generated.StormTopology |
createTopology()
This method creates a new instance of type StormTopology based on the
topology that has been created from the DOM document.
|
Map<String,backtype.storm.topology.BoltDeclarer> |
getBolts()
This method returns an unmodifiable map of bolts.
|
protected static List<String> |
getInputNames(Element el) |
Map<String,backtype.storm.topology.SpoutDeclarer> |
getSpouts()
This method returns an unmodifiable map of spouts.
|
backtype.storm.topology.TopologyBuilder |
getTopologyBuilder() |
Variables |
getVariables() |
static void |
main(String[] args) |
public static final String UUID_ATTRIBUTE
static org.slf4j.Logger log
public final backtype.storm.topology.TopologyBuilder builder
public final Variables variables
final Set<Subscription> subscriptions
private StreamTopology(backtype.storm.topology.TopologyBuilder builder)
builder - public backtype.storm.topology.TopologyBuilder getTopologyBuilder()
public Variables getVariables()
public void addSubscription(Subscription sub)
public Map<String,backtype.storm.topology.BoltDeclarer> getBolts()
public Map<String,backtype.storm.topology.SpoutDeclarer> getSpouts()
public static StreamTopology create(Document doc) throws Exception
doc - The DOM document that defines the topology.Exceptionpublic static StreamTopology build(Document doc, backtype.storm.topology.TopologyBuilder builder) throws Exception
doc - builder - Exceptionpublic void addBolt(String id, backtype.storm.topology.BoltDeclarer bolt)
public void addSpout(String id, backtype.storm.topology.SpoutDeclarer spout)
public backtype.storm.generated.StormTopology createTopology()
Copyright © 2013. All Rights Reserved.