Package com.yahoo.vespa.model.content
Class ContentNode
java.lang.Object
com.yahoo.config.model.producer.AnyConfigProducer
com.yahoo.config.model.producer.TreeConfigProducer<AnyConfigProducer>
com.yahoo.vespa.model.AbstractService
com.yahoo.vespa.model.content.ContentNode
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer,com.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Producer,com.yahoo.vespa.config.content.core.StorServerConfig.Producer,com.yahoo.vespa.config.content.core.StorStatusConfig.Producer,ConfigProducer,NetworkPortRequestor,Service,Serializable
- Direct Known Subclasses:
Distributor,StorageNode
public abstract class ContentNode
extends AbstractService
implements com.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Producer, com.yahoo.vespa.config.content.core.StorStatusConfig.Producer, com.yahoo.vespa.config.content.core.StorServerConfig.Producer
Common class for config producers for storage and distributor nodes.
- See Also:
-
Field Summary
Fields inherited from class com.yahoo.vespa.model.AbstractService
portsMetaFields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log -
Constructor Summary
ConstructorsConstructorDescriptionContentNode(com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags, TreeConfigProducer<?> parent, String clusterName, String rootDirectory, int distributionKey) -
Method Summary
Modifier and TypeMethodDescriptionvoidallocatePorts(int start, PortAllocBridge from) allocate the ports you needvoidgetConfig(com.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.content.core.StorServerConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.content.core.StorStatusConfig.Builder builder) intintThe service HTTP port for health statusintReturns the number of ports needed by this service.Methods inherited from class com.yahoo.vespa.model.AbstractService
addEnvironmentVariable, addEnvironmentVariable, appendJvmOptions, defaultPreload, distributeCpuSocketAffinity, getAffinity, getDefaultMetricDimensions, getEnvStringForTesting, getEnvVars, getHost, getHostName, getHostResource, getId, getIndex, getJvmOptions, getNumPortsAllocated, getPortsMeta, getPreLoad, getPreShutdownCommand, getRelativePort, getServiceInfo, getServiceName, getServicePropertyString, getServicePropertyString, getServiceType, getStartupCommand, getWantedPort, initService, isInitialized, prependJvmOptions, remove, requiresWantedPort, setAffinity, setBasePort, setCoreOnOOM, setHostResource, setJvmOptions, setMMapNoCoreLimit, setNoVespaMalloc, setPreLoad, setProp, setProp, setVespaMalloc, setVespaMallocDebug, setVespaMallocDebugStackTrace, toStringMethods inherited from class com.yahoo.config.model.producer.TreeConfigProducer
addChild, addDescendantService, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getDescendantServices, removeChild, validateMethods inherited from class com.yahoo.config.model.producer.AnyConfigProducer
addConfigId, addUserConfig, cascadeConfig, currentConfigId, findInheritedClassLoader, getConfigId, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, setParent, setUserConfigs, stateIsHostedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.yahoo.vespa.model.ConfigProducer
addUserConfig, cascadeConfig, dump, getChildren, getConfigId, getDescendantServices, getUserConfigs, hostSystem, validateMethods inherited from interface com.yahoo.vespa.model.NetworkPortRequestor
getConfigIdMethods inherited from interface com.yahoo.vespa.model.Service
getLogctlSpecs
-
Constructor Details
-
ContentNode
public ContentNode(com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags, TreeConfigProducer<?> parent, String clusterName, String rootDirectory, int distributionKey)
-
-
Method Details
-
getDistributionKey
public int getDistributionKey() -
getConfig
public void getConfig(com.yahoo.vespa.config.content.core.StorServerConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.core.StorServerConfig.Producer
-
getPortCount
public int getPortCount()Description copied from interface:NetworkPortRequestorReturns the number of ports needed by this service. User-defined ports for container http servers should not be counted, as those ports are required to be outside Vespa's port range.- Specified by:
getPortCountin interfaceNetworkPortRequestor
-
allocatePorts
Description copied from interface:NetworkPortRequestorallocate the ports you need- Specified by:
allocatePortsin interfaceNetworkPortRequestor
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.core.StorStatusConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.core.StorStatusConfig.Producer
-
getHealthPort
public int getHealthPort()Description copied from class:AbstractServiceThe service HTTP port for health status- Specified by:
getHealthPortin interfaceService- Overrides:
getHealthPortin classAbstractService
-