summaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/cost/CostClusterInfo.java
blob: 0fe408352dc2f299c3d1be9a6925972c6145e3d0 (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
31
32
33
34
35
36
package com.yahoo.vespa.hosted.controller.api.integration.cost;// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

import com.yahoo.config.provision.ClusterSpec;
import com.yahoo.config.provision.Flavor;

import java.util.List;

/**
 * Value object of static cluster information, in particular the TCO
 * of the hardware used for this cluster.
 *
 * @author smorgrav
 */
public class CostClusterInfo {
    private final Flavor flavor;
    private final ClusterSpec.Type clusterType;
    private final List<String> hostnames;

    CostClusterInfo(Flavor flavor, ClusterSpec.Type clusterType, List<String> hostnames) {
        this.flavor = flavor;
        this.clusterType = clusterType;
        this.hostnames = hostnames;
    }

    public Flavor getFlavor() {
        return flavor;
    }

    public ClusterSpec.Type getClusterType() {
        return clusterType;
    }

    public List<String> getHostnames() {
        return hostnames;
    }
}