All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.vespa.model.content.engines.PersistenceEngine Maven / Gradle / Ivy

There is a newer version: 8.441.21
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.content.engines;

import com.yahoo.config.model.deploy.DeployState;
import com.yahoo.vespa.config.content.core.StorServerConfig;
import com.yahoo.config.model.producer.AnyConfigProducer;
import com.yahoo.config.model.producer.TreeConfigProducer;
import com.yahoo.vespa.model.builder.xml.dom.ModelElement;
import com.yahoo.vespa.model.content.StorageGroup;
import com.yahoo.vespa.model.content.StorageNode;
import com.yahoo.vespa.model.content.cluster.ContentCluster;

public abstract class PersistenceEngine extends TreeConfigProducer implements StorServerConfig.Producer {

    public PersistenceEngine(TreeConfigProducer  parent, String name) {
        super(parent, name);
    }

    /**
     * Creates a config producer for the engines provider at a given node.
     */
    public interface PersistenceFactory {

        PersistenceEngine create(DeployState deployState, StorageNode storageNode, StorageGroup parentGroup, ModelElement storageNodeElement);

        ContentCluster.DistributionMode getDefaultDistributionMode();

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy