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

hvalspik.dse.DseClusterBuilder Maven / Gradle / Ivy

The newest version!
package hvalspik.dse;

import java.util.List;

import hvalspik.container.BindableCluster;
import hvalspik.naming.Name;
import hvalspik.naming.Names;

import static com.google.common.base.Preconditions.checkArgument;

public final class DseClusterBuilder {

    private final int containerCount;

    private List names;
    private boolean withSearch = false;
    private boolean withSpark = false;
    private boolean withGraph = false;

    private DseClusterBuilder(int containerCount) {
        super();

        this.containerCount = containerCount;
        this.names = Names.christen(containerCount, "con");
    }

    public static DseClusterBuilder create(int containerCount) {
        checkArgument(containerCount > 1);
        return new DseClusterBuilder(containerCount);
    }

    public DseClusterBuilder withName(Name baseName) {
        this.names = Names.christened(containerCount, baseName);
        return this;
    }

    public DseClusterBuilder withSearch() {
        withSearch = true;
        return this;
    }

    public DseClusterBuilder withSpark() {
        withSpark = true;
        return this;
    }

    public DseClusterBuilder withGraph() {
        withGraph = true;
        return this;
    }

    public BindableCluster build() {
        return null;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy