Class ClusterControllerContainer
- 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.admin.clustercontroller.ClusterControllerContainer
-
- 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.di.config.PlatformBundlesConfig.Producer
,com.yahoo.container.jdisc.ContainerMbusConfig.Producer
,com.yahoo.container.jdisc.JdiscBindingsConfig.Producer
,com.yahoo.container.QrConfig.Producer
,com.yahoo.vespa.config.content.reindexing.ReindexingConfig.Producer
,ConfigProducer
,NetworkPortRequestor
,Service
,Serializable
public class ClusterControllerContainer extends Container implements com.yahoo.container.di.config.PlatformBundlesConfig.Producer, com.yahoo.cloud.config.ZookeeperServerConfig.Producer, com.yahoo.vespa.config.content.reindexing.ReindexingConfig.Producer
Container implementation for cluster-controllers- 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 ClusterControllerContainer(AbstractConfigProducer<?> parent, int index, boolean runStandaloneZooKeeper, DeployState deployState, boolean retired)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
defaultPreload()
void
getConfig(com.yahoo.cloud.config.ZookeeperServerConfig.Builder builder)
void
getConfig(com.yahoo.container.di.config.PlatformBundlesConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.content.reindexing.ReindexingConfig.Builder builder)
int
getWantedPort()
Returns the desired base port for the first instance of the service type.protected String
jvmOmitStackTraceInFastThrowOption(com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags)
com.yahoo.config.model.api.container.ContainerServiceType
myServiceType()
Subclasses must implement this for a custom service name.boolean
requiresWantedPort()
First Qrserver or container must run on ports familiar to the user.-
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, getHttpServer, getPortCount, getRpcPort, getSearchPort, getServiceType, getStartupCommand, index, initService, isRetired, numMessageBusPorts, numRpcPorts, setClusterName, setHostResponseHeaderKey, useDynamicPorts
-
Methods inherited from class com.yahoo.vespa.model.AbstractService
addEnvironmentVariable, addEnvironmentVariable, appendJvmOptions, distributeCpuSocketAffinity, getAffinity, getEnv, getHost, getHostName, getHostResource, getId, getIndex, getJvmOptions, getNumPortsAllocated, getPortsMeta, getPreLoad, getPreShutdownCommand, getRelativePort, getServiceInfo, getServiceName, getServicePropertyString, getServicePropertyString, isInitialized, prependJvmOptions, remove, 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
-
ClusterControllerContainer
public ClusterControllerContainer(AbstractConfigProducer<?> parent, int index, boolean runStandaloneZooKeeper, DeployState deployState, boolean retired)
-
-
Method Detail
-
getWantedPort
public int getWantedPort()
Description copied from class:AbstractService
Returns the desired base port for the first instance of the service type. Returns '0' as default, which means that the service type should use the default port allocation mechanism.- Specified by:
getWantedPort
in interfaceNetworkPortRequestor
- Overrides:
getWantedPort
in classContainer
- Returns:
- The desired base port for the first instance of the service type.
-
requiresWantedPort
public boolean requiresWantedPort()
Description copied from class:Container
First Qrserver or container must run on ports familiar to the user.- Specified by:
requiresWantedPort
in interfaceNetworkPortRequestor
- Overrides:
requiresWantedPort
in classContainer
- Returns:
- false by default
-
myServiceType
public 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
-
jvmOmitStackTraceInFastThrowOption
protected String jvmOmitStackTraceInFastThrowOption(com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags)
- Overrides:
jvmOmitStackTraceInFastThrowOption
in classContainer
-
getConfig
public void getConfig(com.yahoo.container.di.config.PlatformBundlesConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.container.di.config.PlatformBundlesConfig.Producer
-
getConfig
public void getConfig(com.yahoo.cloud.config.ZookeeperServerConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.cloud.config.ZookeeperServerConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.reindexing.ReindexingConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.content.reindexing.ReindexingConfig.Producer
-
defaultPreload
protected String defaultPreload()
- Overrides:
defaultPreload
in classAbstractService
-
-