Package com.yahoo.vespa.model.container
Class ApplicationContainer
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.container.Container
com.yahoo.vespa.model.container.ApplicationContainer
- All Implemented Interfaces:
com.yahoo.cloud.config.ZookeeperServerConfig.Producer,com.yahoo.config.ConfigInstance.Producer,com.yahoo.container.ComponentsConfig.Producer,com.yahoo.container.core.ContainerHttpConfig.Producer,com.yahoo.container.jdisc.ContainerMbusConfig.Producer,com.yahoo.container.jdisc.JdiscBindingsConfig.Producer,com.yahoo.container.QrConfig.Producer,com.yahoo.search.config.QrStartConfig.Producer,com.yahoo.vespa.config.search.core.OnnxModelsConfig.Producer,ConfigProducer,NetworkPortRequestor,Service,Serializable
public final class ApplicationContainer
extends Container
implements com.yahoo.search.config.QrStartConfig.Producer, com.yahoo.vespa.config.search.core.OnnxModelsConfig.Producer, com.yahoo.cloud.config.ZookeeperServerConfig.Producer
A container that is typically used by container clusters set up from the user application.
- Author:
- gjoranv
- See Also:
-
Field Summary
Fields inherited from class com.yahoo.vespa.model.container.Container
allocatedMessagingPort, allocatedRpcPort, allocatedSearchPort, BASEPORT, parent, SINGLENODE_CONTAINER_SERVICESPECFields inherited from class com.yahoo.vespa.model.AbstractService
portsMetaFields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log -
Constructor Summary
ConstructorsConstructorDescriptionApplicationContainer(TreeConfigProducer<?> parent, String name, boolean retired, int index, DeployState deployState) ApplicationContainer(TreeConfigProducer<?> parent, String name, int index, DeployState deployState) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetConfig(com.yahoo.cloud.config.ZookeeperServerConfig.Builder builder) voidgetConfig(com.yahoo.search.config.QrStartConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.search.core.OnnxModelsConfig.Builder builder) Returns the jvm arguments this should start withServices that wish that a command should be run before shutdown should return the command here.protected com.yahoo.config.model.api.container.ContainerServiceTypeSubclasses must implement this for a custom service name.Methods inherited from class com.yahoo.vespa.model.container.Container
addBuiltinHandlers, addComponent, addHandler, addSimpleComponent, allocatePorts, containerCluster, getAssignedJvmOptions, getComponents, getConfig, getConfig, getConfig, getConfig, getConfig, getDefaultHttpServer, getDefaultMetricDimensions, getHandlers, getHealthPort, getHttp, getLogctlSpecs, getPortCount, getRpcPort, getSearchPort, getServiceType, getStartupCommand, getWantedPort, index, initService, isRetired, numMessageBusPorts, numRpcPorts, prepareStopCommand, requiresWantedPort, setClusterName, setHostResponseHeaderKey, useDynamicPortsMethods inherited from class com.yahoo.vespa.model.AbstractService
addEnvironmentVariable, addEnvironmentVariable, appendJvmOptions, defaultPreload, distributeCpuSocketAffinity, getAffinity, getEnvStringForTesting, getEnvVars, getHost, getHostName, getHostResource, getId, getIndex, getNumPortsAllocated, getPortsMeta, getPreLoad, getRelativePort, getServiceInfo, getServiceName, getServicePropertyString, getServicePropertyString, isInitialized, prependJvmOptions, remove, 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
getConfigId
-
Constructor Details
-
ApplicationContainer
public ApplicationContainer(TreeConfigProducer<?> parent, String name, int index, DeployState deployState) -
ApplicationContainer
public ApplicationContainer(TreeConfigProducer<?> parent, String name, boolean retired, int index, DeployState deployState)
-
-
Method Details
-
getConfig
public void getConfig(com.yahoo.search.config.QrStartConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.search.config.QrStartConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.core.OnnxModelsConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.search.core.OnnxModelsConfig.Producer
-
myServiceType
protected com.yahoo.config.model.api.container.ContainerServiceType myServiceType()Description copied from class:ContainerSubclasses must implement this for a custom service name.- Specified by:
myServiceTypein classContainer
-
getJvmOptions
Returns the jvm arguments this should start with- Specified by:
getJvmOptionsin interfaceService- Overrides:
getJvmOptionsin classAbstractService
-
getConfig
public void getConfig(com.yahoo.cloud.config.ZookeeperServerConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.cloud.config.ZookeeperServerConfig.Producer
-
getPreShutdownCommand
Description copied from interface:ServiceServices that wish that a command should be run before shutdown should return the command here. The command will be executed by the config sentinel before sending SIGTERM to the service. The command is executed without a timeout.- Specified by:
getPreShutdownCommandin interfaceService- Overrides:
getPreShutdownCommandin classAbstractService
-