blob: 733c5834d23f30240f2489d2c4f4f4e7b933ec01 [file] [log] [blame]
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <string>
#include <utility>
#include <vector>
#include "core/state/nodes/MetricsBase.h"
#include "utils/ChecksumCalculator.h"
#include "utils/gsl.h"
namespace org::apache::nifi::minifi::state::response {
class ConfigurationChecksums : public ResponseNode {
public:
ConfigurationChecksums() = default;
explicit ConfigurationChecksums(std::string name, const utils::Identifier& uuid = {}) : ResponseNode(std::move(name), uuid) {}
MINIFIAPI static constexpr const char* Description = "Metric node that defines checksums of configuration files in the C2 protocol";
void addChecksumCalculator(utils::ChecksumCalculator& checksum_calculator);
std::string getName() const override { return "configurationChecksums"; }
std::vector<SerializedResponseNode> serialize() override;
private:
std::vector<gsl::not_null<utils::ChecksumCalculator*>> checksum_calculators_;
};
} // namespace org::apache::nifi::minifi::state::response