com.yahoo.vespa.hosted.provision.lb.LoadBalancerService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of node-repository Show documentation
Show all versions of node-repository Show documentation
Keeps track of node assignment in a multi-application setup.
// 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