Class ContentNode

All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer, com.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Producer, com.yahoo.vespa.config.content.core.StorServerConfig.Producer, com.yahoo.vespa.config.content.core.StorStatusConfig.Producer, ConfigProducer, NetworkPortRequestor, Service, Serializable
Direct Known Subclasses:
Distributor, StorageNode

public abstract class ContentNode extends AbstractService implements com.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Producer, com.yahoo.vespa.config.content.core.StorStatusConfig.Producer, com.yahoo.vespa.config.content.core.StorServerConfig.Producer
Common class for config producers for storage and distributor nodes.
See Also:
  • Constructor Details

    • ContentNode

      public ContentNode(com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags, AbstractConfigProducer<?> parent, String clusterName, String rootDirectory, int distributionKey)
  • Method Details

    • getDistributionKey

      public int getDistributionKey()
    • getConfig

      public void getConfig(com.yahoo.vespa.config.content.core.StorServerConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.vespa.config.content.core.StorServerConfig.Producer
    • 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.
      Specified by:
      getPortCount in interface NetworkPortRequestor
    • allocatePorts

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

      public void getConfig(com.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.vespa.config.content.core.StorCommunicationmanagerConfig.Producer
    • getConfig

      public void getConfig(com.yahoo.vespa.config.content.core.StorStatusConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.vespa.config.content.core.StorStatusConfig.Producer
    • 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