Package org.apache.storm.topology
Class TopologyBuilder.ConfigGetter<T extends ComponentConfigurationDeclarer>
java.lang.Object
org.apache.storm.topology.BaseConfigurationDeclarer<T>
org.apache.storm.topology.TopologyBuilder.ConfigGetter<T>
- All Implemented Interfaces:
ComponentConfigurationDeclarer<T>
,ResourceDeclarer<T>
- Direct Known Subclasses:
TopologyBuilder.BoltGetter
,TopologyBuilder.SpoutGetter
- Enclosing class:
- TopologyBuilder
protected class TopologyBuilder.ConfigGetter<T extends ComponentConfigurationDeclarer>
extends BaseConfigurationDeclarer<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddConfigurations
(Map<String, Object> conf) add in several configs to the component.addResource
(String resourceName, Number resourceValue) Add generic resource for this component.addResources
(Map<String, Double> resources) Add generic resources for this component.addSharedMemory
(SharedMemory request) Add in request for shared memory that this component will use.return the current component configuration.Methods inherited from class org.apache.storm.topology.BaseConfigurationDeclarer
addConfiguration, setCPULoad, setDebug, setMaxSpoutPending, setMaxTaskParallelism, setMemoryLoad, setMemoryLoad, setNumTasks
-
Constructor Details
-
ConfigGetter
-
-
Method Details
-
addConfigurations
Description copied from interface:ComponentConfigurationDeclarer
add in several configs to the component.- Parameters:
conf
- the configs to add- Returns:
- this for chaining.
-
getComponentConfiguration
return the current component configuration.- Returns:
- the current configuration.
-
addResources
Description copied from class:BaseConfigurationDeclarer
Add generic resources for this component.- Specified by:
addResources
in interfaceComponentConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
- Overrides:
addResources
in classBaseConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
-
addResource
Description copied from interface:ComponentConfigurationDeclarer
Add generic resource for this component.- Specified by:
addResource
in interfaceComponentConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
- Overrides:
addResource
in classBaseConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
-