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, java.io.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. TODO: Author
    See Also:
    Serialized Form
    • Field Detail

      • distributionKey

        protected int distributionKey
    • Constructor Detail

      • ContentNode

        public ContentNode​(AbstractConfigProducer parent,
                           java.lang.String clusterName,
                           java.lang.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
      • initialize

        public void initialize​(int distributionKey)
      • 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