public class ConstSpoutNullBoltTopo extends Object
This topo helps measure the messaging speed between a spout and a bolt. Spout generates a stream of a fixed string. Bolt will simply ack and discard the tuple received
Modifier and Type | Field and Description |
---|---|
static String |
BOLT_COUNT |
static String |
BOLT_ID |
static String |
DEFAULT_GROUPING |
static String |
GROUPING |
static String |
LOCAL_GROPING |
static String |
SHUFFLE_GROUPING |
static String |
SPOUT_COUNT |
static String |
SPOUT_ID |
static String |
TOPOLOGY_NAME |
Constructor and Description |
---|
ConstSpoutNullBoltTopo() |
Modifier and Type | Method and Description |
---|---|
static StormTopology |
getTopology(Map conf) |
static void |
main(String[] args)
ConstSpout -> DevNullBolt with configurable grouping (default localOrShuffle)
|
public static final String TOPOLOGY_NAME
public static final String SPOUT_ID
public static final String BOLT_ID
public static final String BOLT_COUNT
public static final String SPOUT_COUNT
public static final String GROUPING
public static final String LOCAL_GROPING
public static final String SHUFFLE_GROUPING
public static final String DEFAULT_GROUPING
public static StormTopology getTopology(Map conf)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.