Package com.yahoo.vespa.model.content
Class ContentNode
- java.lang.Object
-
- com.yahoo.config.model.producer.AbstractConfigProducer<AbstractConfigProducer<?>>
-
- 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
,java.io.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. TODO: Author- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
distributionKey
-
Fields inherited from class com.yahoo.vespa.model.AbstractService
portsMeta
-
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
-
Constructor Summary
Constructors Constructor Description ContentNode(AbstractConfigProducer parent, java.lang.String clusterName, java.lang.String rootDirectory, int distributionKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allocatePorts(int start, PortAllocBridge from)
allocate the ports you needvoid
getConfig(com.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.content.core.StorServerConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.content.core.StorStatusConfig.Builder builder)
int
getDistributionKey()
int
getHealthPort()
The service HTTP port for health statusint
getPortCount()
Returns the number of ports needed by this service.void
initialize(int distributionKey)
-
Methods inherited from class com.yahoo.vespa.model.AbstractService
appendJvmOptions, distributeCpuSocketAffinity, getAffinity, getCoreOnOOM, getCoreOnOOMEnvVariable, getDefaultMetricDimensions, getEnvVariables, getHost, getHostName, getHostResource, getId, getIndex, getJvmOptions, getMMapNoCoreEnvVariable, getMMapNoCoreLimit, getNoVespaMalloc, getNoVespaMallocEnvVariable, getNumPortsAllocated, getPortsMeta, getPreLoad, getPreShutdownCommand, getRelativePort, getServiceInfo, getServiceName, getServicePropertyString, getServicePropertyString, getServiceType, getStartupCommand, getVespaMalloc, getVespaMallocDebug, getVespaMallocDebugEnvVariable, getVespaMallocDebugStackTrace, getVespaMallocDebugStackTraceEnvVariable, getVespaMallocEnvVariable, getWantedPort, initService, isInitialized, prependJvmOptions, requiresWantedPort, sendFile, sendUri, setAffinity, setBasePort, setCoreOnOOM, setHostResource, setJvmOptions, setMMapNoCoreLimit, setNoVespaMalloc, setPreLoad, setProp, setProp, setVespaMalloc, setVespaMallocDebug, setVespaMallocDebugStackTrace, toString
-
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, removeChild, setParent, setUserConfigs, stateIsHosted, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.yahoo.vespa.model.ConfigProducer
addUserConfig, cascadeConfig, dump, getChildren, getConfigId, getDescendantServices, getUserConfigs, hostSystem, validate
-
Methods inherited from interface com.yahoo.vespa.model.NetworkPortRequestor
getConfigId
-
-
-
-
Constructor Detail
-
ContentNode
public ContentNode(AbstractConfigProducer parent, java.lang.String clusterName, java.lang.String rootDirectory, int distributionKey)
-
-
Method Detail
-
getDistributionKey
public int getDistributionKey()
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.core.StorServerConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.content.core.StorServerConfig.Producer
-
initialize
public void initialize(int distributionKey)
-
getPortCount
public int getPortCount()
Description copied from interface:NetworkPortRequestor
Returns 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:
getPortCount
in interfaceNetworkPortRequestor
-
allocatePorts
public void allocatePorts(int start, PortAllocBridge from)
Description copied from interface:NetworkPortRequestor
allocate the ports you need- Specified by:
allocatePorts
in interfaceNetworkPortRequestor
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.core.StorStatusConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.content.core.StorStatusConfig.Producer
-
getHealthPort
public int getHealthPort()
Description copied from class:AbstractService
The service HTTP port for health status- Specified by:
getHealthPort
in interfaceService
- Overrides:
getHealthPort
in classAbstractService
- Returns:
- portnumber
-
-