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

com.yahoo.vespa.hosted.provision.lb.LoadBalancerService Maven / Gradle / Ivy

There is a newer version: 8.458.13
Show newest version
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.provision.lb;

import com.yahoo.config.provision.ApplicationId;
import com.yahoo.config.provision.ClusterSpec;

import java.util.Set;

/**
 * A managed load balance service.
 *
 * @author mpolden
 */
public interface LoadBalancerService {

    /** Create a load balancer for given application cluster. Implementations are expected to be idempotent */
    LoadBalancerInstance create(ApplicationId application, ClusterSpec.Id cluster, Set reals);

    /** Permanently remove load balancer for given application cluster */
    void remove(ApplicationId application, ClusterSpec.Id cluster);

    /** Returns the protocol supported by this load balancer service */
    Protocol protocol();

    /** Load balancer protocols */
    enum Protocol {
        ipv4,
        ipv6,
        dualstack
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy