aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/reconfig_params.h
blob: 58b7f808114df056b42eb1099aad9d7013f58911 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "documentdbconfig.h"

namespace proton {

/**
 * Class specifying which components that should change after a reconfig.
 */
class ReconfigParams {
private:
    const DocumentDBConfig::ComparisonResult _res;

public:
    ReconfigParams(const DocumentDBConfig::ComparisonResult &res);
    bool configHasChanged() const;
    bool shouldSchemaChange() const;
    bool shouldMatchersChange() const;
    bool shouldIndexManagerChange() const;
    bool shouldAttributeManagerChange() const;
    bool shouldSummaryManagerChange() const;
    bool shouldSubDbsChange() const;
    bool shouldMaintenanceControllerChange() const;
    bool shouldAttributeWriterChange() const;
};

}