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, setNumTaskspublic ConfigGetter(String id)
public T addConfigurations(Map<String,Object> conf)
ComponentConfigurationDeclareradd in several configs to the component.
conf - the configs to addpublic Map<String,Object> getComponentConfiguration()
return the current component configuration.
public T addResources(Map<String,Double> resources)
BaseConfigurationDeclarerAdd generic resources for this component.
addResources in interface ComponentConfigurationDeclarer<T extends ComponentConfigurationDeclarer>addResources in class BaseConfigurationDeclarer<T extends ComponentConfigurationDeclarer>public T addResource(String resourceName, Number resourceValue)
ComponentConfigurationDeclarerAdd generic resource for this component.
addResource in interface ComponentConfigurationDeclarer<T extends ComponentConfigurationDeclarer>addResource in class BaseConfigurationDeclarer<T extends ComponentConfigurationDeclarer>public T addSharedMemory(SharedMemory request)
ResourceDeclarerAdd in request for shared memory that this component will use. See SharedOnHeap, SharedOffHeapWithinNode, and SharedOffHeapWithinWorker for convenient ways to create shared memory requests.
request - the shared memory request for this componentCopyright © 2022 The Apache Software Foundation. All rights reserved.