Class Configserver

All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer, ConfigProducer, NetworkPortRequestor, Service, Serializable

public class Configserver extends AbstractService
Represents a Configserver. There may be one or more Configservers in a Vespa system. NOTE: The Configserver is not started by the config system, and does not receive any config. It's included here so we know what host it runs on, and to give an error message if another service tries to reserve the ports it is using.
Author:
gjoranv
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • allocatePorts

      public void allocatePorts(int start, PortAllocBridge from)
      Description copied from interface: NetworkPortRequestor
      allocate the ports you need
    • getWantedPort

      public int getWantedPort()
      Returns the desired base port for this service.
      Specified by:
      getWantedPort in interface NetworkPortRequestor
      Overrides:
      getWantedPort in class AbstractService
      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:
      requiresWantedPort in interface NetworkPortRequestor
      Overrides:
      requiresWantedPort in class AbstractService
      Returns:
      'true' always
    • getPortCount

      public int getPortCount()
      Description copied from interface: NetworkPortRequestor
      Returns the number of ports needed by this service. User-defined ports for container http servers should not be counted, as those ports are required to be outside Vespa's port range.
      Returns:
      the number of ports needed by the configserver.
    • getHealthPort

      public int getHealthPort()
      Description copied from class: AbstractService
      The service HTTP port for health status
      Specified by:
      getHealthPort in interface Service
      Overrides:
      getHealthPort in class AbstractService