aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/ZoneRoutingPolicy.java
blob: 3ca72a7dd67c4d1c02dcf939ba04e54308ec8c75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.routing;

import com.yahoo.config.provision.zone.ZoneId;

import java.util.Objects;

/**
 * Represents the DNS routing policy for a zone. This takes precedence over of a deployment-specific
 * {@link RoutingPolicy}.
 *
 * This is immutable.
 *
 * @author mpolden
 */
public record ZoneRoutingPolicy(ZoneId zone, RoutingStatus routingStatus) {

    public ZoneRoutingPolicy {
        Objects.requireNonNull(zone, "zone must be non-null");
        Objects.requireNonNull(routingStatus, "globalRouting must be non-null");
    }

}