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 SummaryConstructors
- 
Method SummaryModifier 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.BaseConfigurationDeclareraddConfiguration, setCPULoad, setDebug, setMaxSpoutPending, setMaxTaskParallelism, setMemoryLoad, setMemoryLoad, setNumTasks
- 
Constructor Details- 
ConfigGetter
 
- 
- 
Method Details- 
addConfigurationsDescription copied from interface:ComponentConfigurationDeclareradd in several configs to the component.- Parameters:
- conf- the configs to add
- Returns:
- this for chaining.
 
- 
getComponentConfigurationreturn the current component configuration.- Returns:
- the current configuration.
 
- 
addResourcesDescription copied from class:BaseConfigurationDeclarerAdd generic resources for this component.- Specified by:
- addResourcesin interface- ComponentConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
- Overrides:
- addResourcesin class- BaseConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
 
- 
addResourceDescription copied from interface:ComponentConfigurationDeclarerAdd generic resource for this component.- Specified by:
- addResourcein interface- ComponentConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
- Overrides:
- addResourcein class- BaseConfigurationDeclarer<T extends ComponentConfigurationDeclarer>
 
 
-