summaryrefslogtreecommitdiffstats
path: root/configserver/src/main/java/com/yahoo/vespa/serviceview/ConfigServerLocation.java
blob: 163743cb1bbaca74f8946513d500a85aa76b4adc (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
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.serviceview;

import com.yahoo.cloud.config.ConfigserverConfig;

/**
 * Wrapper for settings from the cloud.config.configserver config.
 *
 * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
 */
public class ConfigServerLocation {
    public final int restApiPort;

    public ConfigServerLocation(ConfigserverConfig configServer) {
        restApiPort = configServer.httpport();
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("ConfigServerLocation [restApiPort=").append(restApiPort).append("]");
        return builder.toString();
    }

}