blob: 9fff10ad51fe21edce7df362e6b225316305f66a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#ifndef HOSTDBOBJECT_H
#define HOSTDBOBJECT_H
#include "db_ido/dbobject.hpp"
#include "base/configobject.hpp"
namespace icinga
{
/**
* A Host database object.
*
* @ingroup ido
*/
class HostDbObject final : public DbObject
{
public:
DECLARE_PTR_TYPEDEFS(HostDbObject);
HostDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
Dictionary::Ptr GetConfigFields() const override;
Dictionary::Ptr GetStatusFields() const override;
void OnConfigUpdateHeavy() override;
void OnConfigUpdateLight() override;
String CalculateConfigHash(const Dictionary::Ptr& configFields) const override;
private:
void DoCommonConfigUpdate();
};
}
#endif /* HOSTDBOBJECT_H */
|