Class ConfigProducerGroup<CHILD extends AbstractConfigProducer<?>>
java.lang.Object
com.yahoo.config.model.producer.AbstractConfigProducer<CHILD>
com.yahoo.vespa.model.container.component.ConfigProducerGroup<CHILD>
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,ConfigProducer
,Serializable
- Direct Known Subclasses:
ComponentGroup
public class ConfigProducerGroup<CHILD extends AbstractConfigProducer<?>>
extends AbstractConfigProducer<CHILD>
A group of config producers that have a component id.
- Author:
- Tony Vaagenes
- See Also:
-
Field Summary
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(com.yahoo.component.ComponentId id, CHILD producer) Returns a map of all components in this group, with (local) component ID as key.<T extends CHILD>
Collection<T>getComponents
(Class<T> componentClass) removeComponent
(com.yahoo.component.ComponentId componentId) Removes a component by idMethods inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
addChild, addConfigId, addDescendantService, addUserConfig, cascadeConfig, dump, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getConfigId, getDescendantServices, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, removeChild, setParent, setUserConfigs, stateIsHosted, validate
-
Constructor Details
-
ConfigProducerGroup
-
-
Method Details
-
addComponent
-
removeComponent
Removes a component by id- Returns:
- the removed component, or null if it was not present
-
getComponents
-
getComponents
-
getComponentMap
Returns a map of all components in this group, with (local) component ID as key.
-