aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/response/DistributionState.java
blob: df1ca4da0e59b9d71d7fcc17fd6ab492966df506 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.staterestapi.response;

import java.util.Map;

/**
 * A distribution state representing the baseline cluster state and per bucket space states.
 */
public class DistributionState {
    private final String baselineState;
    private final Map<String, String> bucketSpaceStates;

    public DistributionState(String baselineState,
                             Map<String, String> bucketSpaceStates) {
        this.baselineState = baselineState;
        this.bucketSpaceStates = bucketSpaceStates;
    }

    public String getBaselineState() {
        return baselineState;
    }

    public Map<String, String> getBucketSpaceStates() {
        return bucketSpaceStates;
    }
}