Package org.apache.storm.loadgen
Class LoadCompConf.Builder
java.lang.Object
org.apache.storm.loadgen.LoadCompConf.Builder
- Enclosing class:
- LoadCompConf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
getId()
int
withCpuLoad
(double cpuLoad) withMemoryLoad
(double memoryLoad) withParallelism
(int parallelism) withStream
(OutputStream stream) Add in a single OutputStream to this component.withStreams
(List<OutputStream> streams)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getId
-
withId
-
getParallelism
public int getParallelism() -
withParallelism
-
getStreams
-
withStream
Add in a single OutputStream to this component.- Parameters:
stream
- the stream to add- Returns:
- this
-
withStreams
-
withCpuLoad
-
withMemoryLoad
-
withSlowExecutorPattern
-
build
-