summaryrefslogtreecommitdiffstats
path: root/documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/WrongDistributionReply.java
blob: bae78233df2a8c64d797eca82c8a9e3b5b1c2d1c (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
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi.messagebus.protocol;

/**
 * @author Simon Thoresen Hult
 */
public class WrongDistributionReply extends DocumentReply {

    private String systemState;

    public WrongDistributionReply() {
        super(DocumentProtocol.REPLY_WRONGDISTRIBUTION);
    }

    public WrongDistributionReply(String systemState) {
        super(DocumentProtocol.REPLY_WRONGDISTRIBUTION);
        this.systemState = systemState;
    }

    public String getSystemState() {
        return systemState;
    }

    public void setSystemState(String state) {
        systemState = state;
    }
}