Package com.yahoo.vespa.model.admin
Class LogForwarder
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.LogForwarder
- All Implemented Interfaces:
com.yahoo.cloud.config.LogforwarderConfig.Producer,com.yahoo.config.ConfigInstance.Producer,ConfigProducer,NetworkPortRequestor,Service,Serializable
public class LogForwarder
extends AbstractService
implements com.yahoo.cloud.config.LogforwarderConfig.Producer
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.yahoo.vespa.model.AbstractService
portsMetaFields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log -
Constructor Summary
ConstructorsConstructorDescriptionLogForwarder(TreeConfigProducer<? super LogForwarder> parent, LogForwarder.Config config) Creates a new LogForwarder instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidallocatePorts(int start, PortAllocBridge from) allocate the ports you needstatic LogForwarder.Configcfg()voidgetConfig(com.yahoo.cloud.config.LogforwarderConfig.Builder builder) intLogForwarder does not need any ports.Services that wish that a command should be run before shutdown should return the command here.Must be overridden by services that should be started by config-sentinel.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, getRelativePort, getServiceInfo, getServiceName, getServicePropertyString, getServicePropertyString, getServiceType, getWantedPort, initService, isInitialized, prependJvmOptions, remove, requiresWantedPort, 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
-
LogForwarder
Creates a new LogForwarder instance.
-
-
Method Details
-
cfg
-
allocatePorts
Description copied from interface:NetworkPortRequestorallocate the ports you need- Specified by:
allocatePortsin interfaceNetworkPortRequestor
-
getPortCount
public int getPortCount()LogForwarder does not need any ports.- Specified by:
getPortCountin interfaceNetworkPortRequestor- Returns:
- The number of ports reserved by the LogForwarder
-
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 command used to start LogForwarder
-
getConfig
public void getConfig(com.yahoo.cloud.config.LogforwarderConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.cloud.config.LogforwarderConfig.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
-