blob: 555fd024e4700875dee1b448c4830cf37b0e2d33 (
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
24
25
26
27
28
29
30
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.routing;
/**
* Endpoint configurations supported for an application.
*
* @author mpolden
*/
public enum EndpointConfig {
/** Only legacy endpoints will be published in DNS. Certificate will contain both legacy and generated names, and is never assigned from a pool */
legacy,
/** Legacy and generated endpoints will be published in DNS. Certificate will contain both legacy and generated names, and is never assigned from a pool */
combined,
/** Only generated endpoints will be published in DNS. Certificate will contain generated names only. Certificate is assigned from a pool */
generated;
/** Returns whether this config supports legacy endpoints */
public boolean supportsLegacy() {
return this == legacy || this == combined;
}
/** Returns whether this config supports generated endpoints */
public boolean supportsGenerated() {
return this == combined || this == generated;
}
}
|