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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
-
Constructor Summary
Constructors Constructor Description ConfigProducerGroup(AbstractConfigProducer parent, String subId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponent(com.yahoo.component.ComponentId id, CHILD producer)
Map<com.yahoo.component.ComponentId,CHILD>
getComponentMap()
Returns a map of all components in this group, with (local) component ID as key.Collection<CHILD>
getComponents()
<T extends CHILD>
Collection<T>getComponents(Class<T> componentClass)
CHILD
removeComponent(com.yahoo.component.ComponentId componentId)
Removes a component by id-
Methods 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 Detail
-
ConfigProducerGroup
public ConfigProducerGroup(AbstractConfigProducer parent, String subId)
-
-
Method Detail
-
addComponent
public void addComponent(com.yahoo.component.ComponentId id, CHILD producer)
-
removeComponent
public CHILD removeComponent(com.yahoo.component.ComponentId componentId)
Removes a component by id- Returns:
- the removed component, or null if it was not present
-
getComponents
public Collection<CHILD> getComponents()
-
getComponents
public <T extends CHILD> Collection<T> getComponents(Class<T> componentClass)
-
-