aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/test/java/com/yahoo/vespa/config/server/configchange/MockConfigChangeAction.java
blob: 073f172d5be7382e52ece15cc4f9b73ad7bcf52a (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.configchange;

import com.yahoo.config.model.api.ConfigChangeAction;
import com.yahoo.config.model.api.ServiceInfo;

import java.util.List;

/**
 * @author geirst
 * @since 5.44
 */
public abstract class MockConfigChangeAction implements ConfigChangeAction {

    private final String message;
    private final List<ServiceInfo> services;

    MockConfigChangeAction(String message, List<ServiceInfo> services) {
        this.message = message;
        this.services = services;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public List<ServiceInfo> getServices() {
        return services;
    }
}