Package com.yahoo.vespa.model.admin
Class Logserver
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.admin.Logserver
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer,ConfigProducer,NetworkPortRequestor,Service,Serializable
Represents the Logserver. There is exactly one logserver in a Vespa system.
- Author:
- gjoranv, bjorncs
- See Also:
-
Field Summary
Fields inherited from class com.yahoo.vespa.model.AbstractService
portsMetaFields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallocatePorts(int start, PortAllocBridge from) allocate the ports you needintReturns the number of ports needed by the logserver.Must be overridden by services that should be started by config-sentinel.intReturns the desired base port for this service.voidinitService(DeployState deployState) Called by builder class which has not given the host or port in a constructor, hence initService is not yet run for this.booleanThe desired base port is the only allowed base port.Methods inherited from class com.yahoo.vespa.model.AbstractService
addEnvironmentVariable, addEnvironmentVariable, appendJvmOptions, defaultPreload, distributeCpuSocketAffinity, getAffinity, getDefaultMetricDimensions, getEnvStringForTesting, getEnvVars, getHealthPort, getHost, getHostName, getHostResource, getId, getIndex, getJvmOptions, getNumPortsAllocated, getPortsMeta, getPreLoad, getPreShutdownCommand, getRelativePort, getServiceInfo, getServiceName, getServicePropertyString, getServicePropertyString, getServiceType, 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
getConfigIdMethods inherited from interface com.yahoo.vespa.model.Service
getLogctlSpecs
-
Constructor Details
-
Logserver
-
-
Method Details
-
initService
Description copied from class:AbstractServiceCalled by builder class which has not given the host or port in a constructor, hence initService is not yet run for this.- Overrides:
initServicein classAbstractService
-
getStartupCommand
Description copied from class:AbstractServiceMust be overridden by services that should be started by config-sentinel. The returned value will be used in config-sentinel configuration. Returns empty by default.- Specified by:
getStartupCommandin interfaceService- Overrides:
getStartupCommandin classAbstractService- Returns:
- the startup command for the logserver
-
getWantedPort
public int getWantedPort()Returns the desired base port for this service.- Specified by:
getWantedPortin interfaceNetworkPortRequestor- Overrides:
getWantedPortin classAbstractService- Returns:
- The desired base port for the first instance of the service type.
-
requiresWantedPort
public boolean requiresWantedPort()The desired base port is the only allowed base port.- Specified by:
requiresWantedPortin interfaceNetworkPortRequestor- Overrides:
requiresWantedPortin classAbstractService- Returns:
- 'true' always
-
getPortCount
public int getPortCount()Returns the number of ports needed by the logserver. -
allocatePorts
Description copied from interface:NetworkPortRequestorallocate the ports you need
-