aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/generic/GenericServicesModel.java
blob: 52f02aba021b1ed8e4750ced8d2daf6064f83b0d (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.generic;

import com.yahoo.config.model.ConfigModel;
import com.yahoo.config.model.ConfigModelContext;
import com.yahoo.vespa.model.generic.service.ServiceCluster;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Ulf Lilleengen
 * @since 5.1
 */
public class GenericServicesModel extends ConfigModel {
    private final List<ServiceCluster> clusters = new ArrayList<>();
    public GenericServicesModel(ConfigModelContext modelContext) {
        super(modelContext);
    }

    public void addCluster(ServiceCluster cluster) {
        clusters.add(cluster);
    }

    public List<ServiceCluster> serviceClusters() {
        return clusters;
    }
}