Class ConfigProxy

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

    public class ConfigProxy
    extends AbstractService
    There is one config proxy running on each Vespa host, and one instance of this class is therefore created by each instance of class Host. NOTE: The Config proxy 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 port it is using.
    Author:
    Vidar Larsen, Harald Musum
    See Also:
    Serialized Form
    • Constructor Detail

      • ConfigProxy

        public ConfigProxy​(Host host)
        Creates a new ConfigProxy instance.
        Parameters:
        host - hostname
    • Method Detail

      • getPortCount

        public int getPortCount()
        ConfigProxy needs one rpc client port.
        Returns:
        The number of ports reserved by the config proxy