protected class TopologyBuilder.ConfigGetter<T extends ComponentConfigurationDeclarer> extends BaseConfigurationDeclarer<T>
Constructor and Description |
---|
ConfigGetter(String id) |
Modifier and Type | Method and Description |
---|---|
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.
|
T |
addSharedMemory(SharedMemory request)
Add in request for shared memory that this component will use.
|
Map<String,Object> |
getComponentConfiguration()
return the current component configuration.
|
addConfiguration, setCPULoad, setDebug, setMaxSpoutPending, setMaxTaskParallelism, setMemoryLoad, setMemoryLoad, setNumTasks
public ConfigGetter(String id)
public T addConfigurations(Map<String,Object> conf)
ComponentConfigurationDeclarer
conf
- the configs to addpublic Map<String,Object> getComponentConfiguration()
public T addResources(Map<String,Double> resources)
BaseConfigurationDeclarer
addResources
in interface ComponentConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
addResources
in class BaseConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
public T addResource(String resourceName, Number resourceValue)
ComponentConfigurationDeclarer
addResource
in interface ComponentConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
addResource
in class BaseConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
public T addSharedMemory(SharedMemory request)
ResourceDeclarer
SharedOnHeap
, SharedOffHeapWithinNode
, and SharedOffHeapWithinWorker
for convenient ways to create shared memory requests.request
- the shared memory request for this componentCopyright © 2023 The Apache Software Foundation. All rights reserved.