Class ServiceCluster
- java.lang.Object
-
- com.yahoo.config.model.producer.AbstractConfigProducer
-
- com.yahoo.vespa.model.generic.service.ServiceCluster
-
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,ConfigProducer
,java.io.Serializable
public class ServiceCluster extends AbstractConfigProducer
A cluster of nodes running one application specific generic service. These are defined on the top level in the Vespa config- Author:
- vegardh
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
-
Constructor Summary
Constructors Constructor Description ServiceCluster(AbstractConfigProducer parent, java.lang.String name, java.lang.String command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
HostSystem
hostSystem()
Returns the one and only HostSystem of the root node.java.util.Collection<Service>
services()
void
setHostSystem(HostSystem hostSystem)
Sets the host system for this.-
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, mergeUserConfigs, removeChild, setParent, setUserConfigs, stateIsHosted, validate
-
-
-
-
Constructor Detail
-
ServiceCluster
public ServiceCluster(AbstractConfigProducer parent, java.lang.String name, java.lang.String command)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
services
public java.util.Collection<Service> services()
-
hostSystem
public HostSystem hostSystem()
Description copied from class:AbstractConfigProducer
Returns the one and only HostSystem of the root node. Must be overridden by root node.- Specified by:
hostSystem
in interfaceConfigProducer
- Overrides:
hostSystem
in classAbstractConfigProducer
-
setHostSystem
public void setHostSystem(HostSystem hostSystem)
Sets the host system for this.- Parameters:
hostSystem
- aHostSystem
-
-