Package org.apache.storm.perf.utils
Class Helper
java.lang.Object
org.apache.storm.perf.utils.Helper
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidcollectMetricsAndKill(String topologyName, Integer pollInterval, int duration) static intstatic Stringstatic voidkill(Nimbus.Iface client, String topoName) static voidrunOnClusterAndPrintMetrics(int durationSec, String topoName, Map<String, Object> topoConf, StormTopology topology) static voidsetupShutdownHook(String topoName) Kill topo on Ctrl-C.
- 
Constructor Details- 
Helperpublic Helper()
 
- 
- 
Method Details- 
kill- Throws:
- Exception
 
- 
getInt
- 
getStr
- 
collectMetricsAndKillpublic static void collectMetricsAndKill(String topologyName, Integer pollInterval, int duration) throws Exception - Throws:
- Exception
 
- 
setupShutdownHookKill topo on Ctrl-C.
- 
runOnClusterAndPrintMetricspublic static void runOnClusterAndPrintMetrics(int durationSec, String topoName, Map<String, Object> topoConf, StormTopology topology) throws Exception- Throws:
- Exception
 
 
-