public class StreamTopology extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
UUID_ATTRIBUTE |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Map<String,backtype.storm.topology.SpoutDeclarer> |
getSpouts()
This method returns an unmodifiable map of spouts.
|
backtype.storm.topology.TopologyBuilder |
getTopologyBuilder() |
static void |
main(String[] args) |
public static final String UUID_ATTRIBUTE
public backtype.storm.topology.TopologyBuilder getTopologyBuilder()
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 backtype.storm.generated.StormTopology createTopology()
Copyright © 2012. All Rights Reserved.