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:
    Serialized Form
    • Constructor Detail

      • ContentNode

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

      • 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
      • 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