public interface ComponentConfigurationDeclarer<T extends ComponentConfigurationDeclarer> extends ResourceDeclarer<T>
Modifier and Type | Method and Description |
---|---|
T |
addConfiguration(String config,
Object value)
Add in a single config.
|
T |
addConfigurations(Map<String,Object> conf)
add in several configs to the component.
|
T |
addResource(String resourceName,
Number resourceValue)
Add generic resource for this component.
|
T |
addResources(Map<String,Double> resources)
Add generic resources for this component.
|
Map<String,Object> |
getComponentConfiguration()
return the current component configuration.
|
T |
setDebug(boolean debug)
Turn on/off debug for this component.
|
T |
setMaxSpoutPending(Number val)
Set the max spout pending config for this component.
|
T |
setMaxTaskParallelism(Number val)
Set the max task parallelism for this component.
|
T |
setNumTasks(Number val)
Set the number of tasks for this component.
|
addSharedMemory, setCPULoad, setMemoryLoad, setMemoryLoad
T addConfigurations(Map<String,Object> conf)
add in several configs to the component.
conf
- the configs to addMap<String,Object> getComponentConfiguration()
return the current component configuration.
T addConfiguration(String config, Object value)
Add in a single config.
config
- the key for the configvalue
- the value of the configT setDebug(boolean debug)
Turn on/off debug for this component.
debug
- true for debug on false for debug offT setMaxTaskParallelism(Number val)
Set the max task parallelism for this component.
val
- the maximum parallelismT setMaxSpoutPending(Number val)
Set the max spout pending config for this component.
val
- the value of max spout pending.T setNumTasks(Number val)
Set the number of tasks for this component.
val
- the number of tasksCopyright © 2020 The Apache Software Foundation. All rights reserved.