aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/reconfig_params.h
blob: b01c5b95e8046e31b350d3dd1cf7b6fed3fdee32 (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 Vespa.ai. 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;
};

}