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

com.yahoo.vespa.configserver.flags.ConfigServerFlagSource Maven / Gradle / Ivy

There is a newer version: 8.444.18
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.configserver.flags;

import com.yahoo.component.annotation.Inject;
import com.yahoo.vespa.configserver.flags.db.BootstrapFlagSource;
import com.yahoo.vespa.configserver.flags.db.ZooKeeperFlagSource;
import com.yahoo.vespa.flags.OrderedFlagSource;

import java.nio.file.FileSystem;
import java.nio.file.FileSystems;

/**
 * @author hakonhall
 */
public class ConfigServerFlagSource extends OrderedFlagSource {

    @Inject
    public ConfigServerFlagSource(FlagsDb flagsDb) {
        this(FileSystems.getDefault(), flagsDb);
    }

    ConfigServerFlagSource(FileSystem fileSystem, FlagsDb flagsDb) {
        super(new BootstrapFlagSource(fileSystem), new ZooKeeperFlagSource(flagsDb));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy