Package com.yahoo.vespa.model.content
Class StorageNode
- java.lang.Object
-
- com.yahoo.config.model.producer.AbstractConfigProducer<AbstractConfigProducer<?>>
-
- com.yahoo.vespa.model.AbstractService
-
- com.yahoo.vespa.model.content.ContentNode
-
- com.yahoo.vespa.model.content.StorageNode
-
- 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
,com.yahoo.vespa.config.content.StorFilestorConfig.Producer
,ConfigProducer
,NetworkPortRequestor
,Service
,Serializable
public class StorageNode extends ContentNode implements com.yahoo.vespa.config.content.core.StorServerConfig.Producer, com.yahoo.vespa.config.content.StorFilestorConfig.Producer
Class to provide config related to a specific storage node.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StorageNode.Builder
-
Field Summary
-
Fields inherited from class com.yahoo.vespa.model.AbstractService
portsMeta
-
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCapacity()
void
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.StorFilestorConfig.Builder builder)
String
getStartupCommand()
Must be overridden by services that should be started by config-sentinel.boolean
isRetired()
Whether this node is configured as retired, which means all content should migrate off the node-
Methods inherited from class com.yahoo.vespa.model.content.ContentNode
allocatePorts, getConfig, getDistributionKey, getHealthPort, getPortCount
-
Methods inherited from class com.yahoo.vespa.model.AbstractService
appendJvmOptions, defaultPreload, distributeCpuSocketAffinity, getAffinity, getCoreOnOOM, getCoreOnOOMEnvVariable, getDefaultMetricDimensions, getEnvVariables, getHost, getHostName, getHostResource, getId, getIndex, getJvmOptions, getMMapNoCoreEnvVariable, getMMapNoCoreLimit, getNoVespaMalloc, getNoVespaMallocEnvVariable, getNumPortsAllocated, getOmpNumThreads, getOmpNumThreadsEnvVariable, getPortsMeta, getPreLoad, getPreShutdownCommand, getRelativePort, getServiceInfo, getServiceName, getServicePropertyString, getServicePropertyString, getServiceType, getVespaMalloc, getVespaMallocDebug, getVespaMallocDebugEnvVariable, getVespaMallocDebugStackTrace, getVespaMallocDebugStackTraceEnvVariable, getVespaMallocEnvVariable, getWantedPort, initService, isInitialized, prependJvmOptions, remove, requiresWantedPort, setAffinity, setBasePort, setCoreOnOOM, setHostResource, setJvmOptions, setMMapNoCoreLimit, setNoVespaMalloc, setOmpNumThreads, 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
-
-
-
-
Method Detail
-
getStartupCommand
public String getStartupCommand()
Description copied from class:AbstractService
Must be overridden by services that should be started by config-sentinel. The returned value will be used in config-sentinel configuration. Returns null by default.- Specified by:
getStartupCommand
in interfaceService
- Overrides:
getStartupCommand
in classAbstractService
- Returns:
- null by default.
-
getCapacity
public double getCapacity()
-
isRetired
public boolean isRetired()
Whether this node is configured as retired, which means all content should migrate off the node
-
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
- Overrides:
getConfig
in classContentNode
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.StorFilestorConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.content.StorFilestorConfig.Producer
-
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
- Overrides:
getConfig
in classContentNode
-
-