aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/DataplaneProxy.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/container/DataplaneProxy.java')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/container/DataplaneProxy.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/DataplaneProxy.java b/config-model/src/main/java/com/yahoo/vespa/model/container/DataplaneProxy.java
index fe7d9581e46..13aa65909bd 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/container/DataplaneProxy.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/container/DataplaneProxy.java
@@ -7,20 +7,23 @@ import com.yahoo.vespa.model.container.component.SimpleComponent;
public class DataplaneProxy extends SimpleComponent implements DataplaneProxyConfig.Producer {
- private final Integer port;
+ private final int mtlsPort;
+ private final int tokenPort;
private final String serverCertificate;
private final String serverKey;
- public DataplaneProxy(Integer port, String serverCertificate, String serverKey) {
+ public DataplaneProxy(int mtlsPort, int tokenPort, String serverCertificate, String serverKey) {
super(DataplaneProxyConfigurator.class.getName());
- this.port = port;
+ this.mtlsPort = mtlsPort;
+ this.tokenPort = tokenPort;
this.serverCertificate = serverCertificate;
this.serverKey = serverKey;
}
@Override
public void getConfig(DataplaneProxyConfig.Builder builder) {
- builder.port(port);
+ builder.mtlsPort(mtlsPort);
+ builder.tokenPort(tokenPort);
builder.serverCertificate(serverCertificate);
builder.serverKey(serverKey);
}