-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(broker/neb): instance_configuration not used
- Loading branch information
Showing
12 changed files
with
70 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
/* | ||
** Copyright 2009-2011,2015 Centreon | ||
** | ||
** Licensed 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. | ||
** | ||
** For more information : [email protected] | ||
*/ | ||
/** | ||
* Copyright 2009-2011,2015-2024 Centreon | ||
* | ||
* Licensed 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. | ||
* | ||
* For more information : [email protected] | ||
*/ | ||
|
||
#ifndef CCB_NEB_EVENTS_HH | ||
#define CCB_NEB_EVENTS_HH | ||
|
@@ -32,7 +32,6 @@ | |
#include "com/centreon/broker/neb/host_parent.hh" | ||
#include "com/centreon/broker/neb/host_status.hh" | ||
#include "com/centreon/broker/neb/instance.hh" | ||
#include "com/centreon/broker/neb/instance_configuration.hh" | ||
#include "com/centreon/broker/neb/instance_status.hh" | ||
#include "com/centreon/broker/neb/log_entry.hh" | ||
#include "com/centreon/broker/neb/responsive_instance.hh" | ||
|
64 changes: 0 additions & 64 deletions
64
broker/neb/inc/com/centreon/broker/neb/instance_configuration.hh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
/** | ||
* Copyright 2009-2022 Centreon | ||
* | ||
* Licensed 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. | ||
* | ||
* For more information : [email protected] | ||
*/ | ||
* Copyright 2009-2024 Centreon | ||
* | ||
* Licensed 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. | ||
* | ||
* For more information : [email protected] | ||
*/ | ||
|
||
#include "com/centreon/broker/neb/initial.hh" | ||
#include "com/centreon/broker/config/applier/state.hh" | ||
|
@@ -481,25 +481,6 @@ static void send_pb_service_list() { | |
send_service_list(neb::callback_pb_service); | ||
} | ||
|
||
/** | ||
* Send the instance configuration loaded event. | ||
*/ | ||
static void send_instance_configuration() { | ||
log_v2::neb()->info( | ||
"init: sending initial instance configuration loading event"); | ||
std::shared_ptr<neb::instance_configuration> ic( | ||
new neb::instance_configuration); | ||
ic->loaded = true; | ||
ic->poller_id = config::applier::state::instance().poller_id(); | ||
neb::gl_publisher.write(ic); | ||
} | ||
|
||
/************************************** | ||
* * | ||
* Global Functions * | ||
* * | ||
**************************************/ | ||
|
||
/** | ||
* Send initial configuration to the global publisher. | ||
*/ | ||
|
@@ -516,7 +497,6 @@ void neb::send_initial_configuration() { | |
send_service_group_list(); | ||
send_host_dependencies_list(); | ||
send_service_dependencies_list(); | ||
send_instance_configuration(); | ||
} | ||
|
||
/************************************** | ||
|
@@ -541,5 +521,4 @@ void neb::send_initial_pb_configuration() { | |
send_pb_service_group_list(); | ||
send_pb_host_dependencies_list(); | ||
send_pb_service_dependencies_list(); | ||
send_instance_configuration(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
/** | ||
* Copyright 2009-2016, 2018-2021 Centreon | ||
* | ||
* Licensed 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. | ||
* | ||
* For more information : [email protected] | ||
*/ | ||
* Copyright 2009-2016, 2018-2024 Centreon | ||
* | ||
* Licensed 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. | ||
* | ||
* For more information : [email protected] | ||
*/ | ||
|
||
#include <clocale> | ||
#include <csignal> | ||
|
||
#include "com/centreon/broker/config/applier/init.hh" | ||
#include "com/centreon/broker/config/applier/state.hh" | ||
#include "com/centreon/broker/config/parser.hh" | ||
#include "com/centreon/broker/log_v2.hh" | ||
#include "com/centreon/broker/neb/callbacks.hh" | ||
#include "com/centreon/broker/neb/instance_configuration.hh" | ||
#include "com/centreon/broker/neb/internal.hh" | ||
#include "com/centreon/engine/nebcallbacks.hh" | ||
#include "com/centreon/exceptions/msg_fmt.hh" | ||
|
||
|
@@ -183,18 +184,9 @@ int nebmodule_init(int flags, char const* args, void* handle) { | |
/** | ||
* @brief Reload module after configuration reload. | ||
* | ||
* This will effectively send an instance_configuration object to the | ||
* multiplexer. | ||
* | ||
* @return OK. | ||
*/ | ||
int nebmodule_reload() { | ||
std::shared_ptr<neb::instance_configuration> ic( | ||
new neb::instance_configuration); | ||
ic->loaded = true; | ||
ic->poller_id = config::applier::state::instance().poller_id(); | ||
multiplexing::publisher p; | ||
p.write(ic); | ||
return 0; | ||
} | ||
} |
Oops, something went wrong.
e7f9c56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Robot Results
Failed Tests
Rrd
Rrd