1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef SERVICEDBOBJECT_H
4 #define SERVICEDBOBJECT_H
6 #include "db_ido/dbobject.hpp"
7 #include "base/configobject.hpp"
8 #include "icinga/service.hpp"
14 * A Service database object.
18 class ServiceDbObject final : public DbObject
21 DECLARE_PTR_TYPEDEFS(ServiceDbObject);
23 ServiceDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
25 static void StaticInitialize();
27 Dictionary::Ptr GetConfigFields() const override;
28 Dictionary::Ptr GetStatusFields() const override;
30 void OnConfigUpdateHeavy() override;
31 void OnConfigUpdateLight() override;
33 String CalculateConfigHash(const Dictionary::Ptr& configFields) const override;
36 void DoCommonConfigUpdate();
41 #endif /* SERVICEDBOBJECT_H */