Package com.yahoo.vespa.model.container
Class ApplicationContainer
- java.lang.Object
-
- com.yahoo.config.model.producer.AbstractConfigProducer<AbstractConfigProducer<?>>
-
- com.yahoo.vespa.model.AbstractService
-
- com.yahoo.vespa.model.container.Container
-
- com.yahoo.vespa.model.container.ApplicationContainer
-
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,com.yahoo.container.ComponentsConfig.Producer
,com.yahoo.container.core.ContainerHttpConfig.Producer
,com.yahoo.container.handler.ThreadpoolConfig.Producer
,com.yahoo.container.jdisc.ContainerMbusConfig.Producer
,com.yahoo.container.jdisc.JdiscBindingsConfig.Producer
,com.yahoo.container.QrConfig.Producer
,com.yahoo.search.config.QrStartConfig.Producer
,ConfigProducer
,NetworkPortRequestor
,Service
,java.io.Serializable
public final class ApplicationContainer extends Container implements com.yahoo.search.config.QrStartConfig.Producer, com.yahoo.container.handler.ThreadpoolConfig.Producer
A container that is typically used by container clusters set up from the user application.- Author:
- gjoranv
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.yahoo.vespa.model.container.Container
allocatedMessagingPort, allocatedRpcPort, allocatedSearchPort, BASEPORT, parent, SINGLENODE_CONTAINER_SERVICESPEC
-
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 ApplicationContainer(AbstractConfigProducer parent, java.lang.String name, boolean retired, int index, boolean isHostedVespa)
ApplicationContainer(AbstractConfigProducer parent, java.lang.String name, int index, boolean isHostedVespa)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getConfig(com.yahoo.container.handler.ThreadpoolConfig.Builder builder)
void
getConfig(com.yahoo.search.config.QrStartConfig.Builder builder)
java.lang.String
getJvmOptions()
Returns the jvm arguments this should start withprotected com.yahoo.config.model.api.container.ContainerServiceType
myServiceType()
Subclasses must implement this for a custom service name.-
Methods inherited from class com.yahoo.vespa.model.container.Container
addBuiltinHandlers, addComponent, addHandler, addSimpleComponent, allocatePorts, getAssignedJvmOptions, getComponents, getConfig, getConfig, getConfig, getConfig, getConfig, getDefaultHttpServer, getDefaultMetricDimensions, getHandlers, getHealthPort, getHttp, getHttpServer, getPortCount, getSearchPort, getServiceType, getStartupCommand, getWantedPort, index, initService, isRetired, numMessageBusPorts, numRpcPorts, requiresWantedPort, setClusterName, setHostResponseHeaderKey, useDynamicPorts
-
Methods inherited from class com.yahoo.vespa.model.AbstractService
appendJvmOptions, distributeCpuSocketAffinity, getAffinity, getCoreOnOOM, getCoreOnOOMEnvVariable, getEnvVariables, getHost, getHostName, getHostResource, getId, getIndex, getMMapNoCoreEnvVariable, getMMapNoCoreLimit, getNoVespaMalloc, getNoVespaMallocEnvVariable, getNumPortsAllocated, getPortsMeta, getPreLoad, getPreShutdownCommand, getRelativePort, getServiceInfo, getServiceName, getServicePropertyString, getServicePropertyString, getVespaMalloc, getVespaMallocDebug, getVespaMallocDebugEnvVariable, getVespaMallocDebugStackTrace, getVespaMallocDebugStackTraceEnvVariable, getVespaMallocEnvVariable, isInitialized, prependJvmOptions, 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
-
ApplicationContainer
public ApplicationContainer(AbstractConfigProducer parent, java.lang.String name, int index, boolean isHostedVespa)
-
ApplicationContainer
public ApplicationContainer(AbstractConfigProducer parent, java.lang.String name, boolean retired, int index, boolean isHostedVespa)
-
-
Method Detail
-
getConfig
public void getConfig(com.yahoo.search.config.QrStartConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.search.config.QrStartConfig.Producer
-
myServiceType
protected com.yahoo.config.model.api.container.ContainerServiceType myServiceType()
Description copied from class:Container
Subclasses must implement this for a custom service name.- Specified by:
myServiceType
in classContainer
-
getJvmOptions
public java.lang.String getJvmOptions()
Returns the jvm arguments this should start with- Specified by:
getJvmOptions
in interfaceService
- Overrides:
getJvmOptions
in classAbstractService
-
getConfig
public void getConfig(com.yahoo.container.handler.ThreadpoolConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.container.handler.ThreadpoolConfig.Producer
-
-