Rename redis to icingadb

This commit is contained in:
Alexander Aleksandrovič Klimov 2019-10-29 18:36:16 +01:00 committed by Michael Friedrich
parent f51454af65
commit 13ab7eb609
13 changed files with 27 additions and 36 deletions

View File

@ -0,0 +1,5 @@
object IcingaDB "icingadb" {
//host = "127.0.0.1"
//port = 6379
//password = "xxx"
}

View File

@ -1,14 +0,0 @@
/**
* The redis library implements functionality for putting Icinga
* event data into a redis database.
*
* NOTE: This is experimental and may change without further notice.
*/
library "redis"
object IcingaDB "redis" {
//host = "127.0.0.1"
//port = 6379
//password = "xxx"
}

View File

@ -54,7 +54,7 @@ if(ICINGA2_WITH_PERFDATA)
endif()
if(ICINGA2_WITH_REDIS)
list(APPEND icinga_app_SOURCES $<TARGET_OBJECTS:redis>)
list(APPEND icinga_app_SOURCES $<TARGET_OBJECTS:icingadb>)
endif()
add_executable(icinga-app

View File

@ -54,7 +54,7 @@ if(ICINGA2_WITH_PERFDATA)
endif()
if(ICINGA2_WITH_REDIS)
add_subdirectory(redis)
add_subdirectory(icingadb)
endif()
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}" PARENT_SCOPE)

View File

@ -15,29 +15,29 @@
# along with this program; if not, write to the Free Software Foundation
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
mkclass_target(rediswriter.ti rediswriter-ti.cpp rediswriter-ti.hpp)
mkclass_target(icingadb.ti icingadb-ti.cpp icingadb-ti.hpp)
set(redis_SOURCES
rediswriter.cpp rediswriter-objects.cpp rediswriter-stats.cpp rediswriter-utility.cpp redisconnection.cpp rediswriter-ti.hpp
set(icingadb_SOURCES
icingadb.cpp icingadb-objects.cpp icingadb-stats.cpp icingadb-utility.cpp redisconnection.cpp icingadb-ti.hpp
)
if(ICINGA2_UNITY_BUILD)
mkunity_target(redis redis redis_SOURCES)
mkunity_target(icingadb icingadb icingadb_SOURCES)
endif()
add_library(redis OBJECT ${redis_SOURCES})
add_library(icingadb OBJECT ${icingadb_SOURCES})
include_directories(${icinga2_SOURCE_DIR}/third-party)
add_dependencies(redis base config icinga remote)
add_dependencies(icingadb base config icinga remote)
set_target_properties (
redis PROPERTIES
icingadb PROPERTIES
FOLDER Components
)
install_if_not_exists(
${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/redis.conf
${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/icingadb.conf
${CMAKE_INSTALL_SYSCONFDIR}/icinga2/features-available
)

View File

@ -17,8 +17,8 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
#include "redis/rediswriter.hpp"
#include "redis/redisconnection.hpp"
#include "icingadb/icingadb.hpp"
#include "icingadb/redisconnection.hpp"
#include "icinga/command.hpp"
#include "icinga/compatutility.hpp"
#include "base/configtype.hpp"

View File

@ -17,7 +17,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
#include "redis/rediswriter.hpp"
#include "icingadb/icingadb.hpp"
#include "base/json.hpp"
#include "base/logger.hpp"
#include "base/serializer.hpp"

View File

@ -17,7 +17,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
#include "redis/rediswriter.hpp"
#include "icingadb/icingadb.hpp"
#include "icinga/customvarobject.hpp"
#include "icinga/checkcommand.hpp"
#include "icinga/notificationcommand.hpp"

View File

@ -17,9 +17,9 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
#include "redis/rediswriter.hpp"
#include "redis/rediswriter-ti.cpp"
#include "redis/redisconnection.hpp"
#include "icingadb/icingadb.hpp"
#include "icingadb/icingadb-ti.cpp"
#include "icingadb/redisconnection.hpp"
#include "remote/eventqueue.hpp"
#include "base/json.hpp"
#include "icinga/checkable.hpp"

View File

@ -20,12 +20,12 @@
#ifndef REDISWRITER_H
#define REDISWRITER_H
#include "redis/rediswriter-ti.hpp"
#include "icingadb/icingadb-ti.hpp"
#include "icinga/customvarobject.hpp"
#include "remote/messageorigin.hpp"
#include "base/timer.hpp"
#include "base/workqueue.hpp"
#include "redis/redisconnection.hpp"
#include "icingadb/redisconnection.hpp"
#include "icinga/checkable.hpp"
#include "icinga/service.hpp"
#include "icinga/downtime.hpp"
@ -40,7 +40,7 @@ struct RedisSubscriptionInfo
};
/**
* @ingroup redis
* @ingroup icingadb
*/
class IcingaDB : public ObjectImpl<IcingaDB>
{

View File

@ -17,7 +17,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
#include "redis/redisconnection.hpp"
#include "icingadb/redisconnection.hpp"
#include "base/array.hpp"
#include "base/convert.hpp"
#include "base/defer.hpp"

View File

@ -55,7 +55,7 @@ namespace icinga
/**
* An Async Redis connection.
*
* @ingroup redis
* @ingroup icingadb
*/
class RedisConnection final : public Object
{