blob: 9250b5b507dd8c0be1967a0b8962b3b80095a494 [file] [log] [blame]
/**
* @file Configure.h
* Configure class declaration
*
* 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.
*/
#ifndef __CONFIGURE_H__
#define __CONFIGURE_H__
#include <mutex>
#include "properties/Properties.h"
namespace org {
namespace apache {
namespace nifi {
namespace minifi {
class Configure : public Properties {
public:
Configure() : Properties("MiNiFi configuration") {}
void setAgentIdentifier(const std::string &identifier) {
std::lock_guard<std::mutex> lock(mutex_);
agent_identifier_ = identifier;
}
std::string getAgentIdentifier() {
std::lock_guard<std::mutex> lock(mutex_);
return agent_identifier_;
}
// nifi.flow.configuration.file
static const char *nifi_default_directory;
static const char *nifi_flow_configuration_file;
static const char *nifi_flow_configuration_file_exit_failure;
static const char *nifi_flow_configuration_file_backup_update;
static const char *nifi_flow_engine_threads;
static const char *nifi_flow_engine_alert_period;
static const char *nifi_flow_engine_event_driven_time_slice;
static const char *nifi_administrative_yield_duration;
static const char *nifi_bored_yield_duration;
static const char *nifi_graceful_shutdown_seconds;
static const char *nifi_log_level;
static const char *nifi_server_name;
static const char *nifi_configuration_class_name;
static const char *nifi_flow_repository_class_name;
static const char *nifi_content_repository_class_name;
static const char *nifi_volatile_repository_options;
static const char *nifi_provenance_repository_class_name;
static const char *nifi_server_port;
static const char *nifi_server_report_interval;
static const char *nifi_provenance_repository_max_storage_time;
static const char *nifi_provenance_repository_max_storage_size;
static const char *nifi_provenance_repository_directory_default;
static const char *nifi_provenance_repository_enable;
static const char *nifi_flowfile_repository_max_storage_time;
static const char *nifi_dbcontent_repository_directory_default;
static const char *nifi_flowfile_repository_max_storage_size;
static const char *nifi_flowfile_repository_directory_default;
static const char *nifi_flowfile_repository_enable;
static const char *nifi_remote_input_secure;
static const char *nifi_remote_input_http;
static const char *nifi_security_need_ClientAuth;
// site2site security config
static const char *nifi_security_client_certificate;
static const char *nifi_security_client_private_key;
static const char *nifi_security_client_pass_phrase;
static const char *nifi_security_client_ca_certificate;
// nifi rest api user name and password
static const char *nifi_rest_api_user_name;
static const char *nifi_rest_api_password;
// c2 options
static const char *nifi_c2_enable;
static const char *nifi_c2_file_watch;
static const char *nifi_c2_flow_id;
static const char *nifi_c2_flow_url;
static const char *nifi_c2_flow_base_url;
private:
std::string agent_identifier_;
std::mutex mutex_;
};
} /* namespace minifi */
} /* namespace nifi */
} /* namespace apache */
} /* namespace org */
#endif