public static class LoadCompConf.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LoadCompConf |
build() |
String |
getId() |
int |
getParallelism() |
List<OutputStream> |
getStreams() |
LoadCompConf.Builder |
withCpuLoad(double cpuLoad) |
LoadCompConf.Builder |
withId(String id) |
LoadCompConf.Builder |
withMemoryLoad(double memoryLoad) |
LoadCompConf.Builder |
withParallelism(int parallelism) |
LoadCompConf.Builder |
withSlowExecutorPattern(SlowExecutorPattern slp) |
LoadCompConf.Builder |
withStream(OutputStream stream)
Add in a single OutputStream to this component.
|
LoadCompConf.Builder |
withStreams(List<OutputStream> streams) |
public String getId()
public LoadCompConf.Builder withId(String id)
public int getParallelism()
public LoadCompConf.Builder withParallelism(int parallelism)
public List<OutputStream> getStreams()
public LoadCompConf.Builder withStream(OutputStream stream)
stream
- the stream to addpublic LoadCompConf.Builder withStreams(List<OutputStream> streams)
public LoadCompConf.Builder withCpuLoad(double cpuLoad)
public LoadCompConf.Builder withMemoryLoad(double memoryLoad)
public LoadCompConf.Builder withSlowExecutorPattern(SlowExecutorPattern slp)
public LoadCompConf build()
Copyright © 2023 The Apache Software Foundation. All rights reserved.