public class TridentTopologyBuilder extends Object
Constructor and Description |
---|
TridentTopologyBuilder() |
Modifier and Type | Method and Description |
---|---|
StormTopology |
buildTopology(Map<String,Number> masterCoordResources) |
SpoutDeclarer |
setBatchPerTupleSpout(String id,
String streamName,
IRichSpout spout,
Integer parallelism,
String batchGroup) |
BoltDeclarer |
setBolt(String id,
ITridentBatchBolt bolt,
Integer parallelism,
Set<String> committerBatches,
Map<String,String> batchGroups) |
SpoutDeclarer |
setSpout(String id,
String streamName,
String txStateId,
IBatchSpout spout,
Integer parallelism,
String batchGroup) |
SpoutDeclarer |
setSpout(String id,
String streamName,
String txStateId,
ITridentSpout spout,
Integer parallelism,
String batchGroup) |
static String |
spoutCoordinator(String spoutId) |
static String |
spoutIdFromCoordinatorId(String coordId) |
public SpoutDeclarer setBatchPerTupleSpout(String id, String streamName, IRichSpout spout, Integer parallelism, String batchGroup)
public SpoutDeclarer setSpout(String id, String streamName, String txStateId, IBatchSpout spout, Integer parallelism, String batchGroup)
public SpoutDeclarer setSpout(String id, String streamName, String txStateId, ITridentSpout spout, Integer parallelism, String batchGroup)
public BoltDeclarer setBolt(String id, ITridentBatchBolt bolt, Integer parallelism, Set<String> committerBatches, Map<String,String> batchGroups)
public StormTopology buildTopology(Map<String,Number> masterCoordResources)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.