mirror of https://github.com/Icinga/icinga2.git
parent
39ded04e1a
commit
980ba42825
|
@ -46,10 +46,5 @@ Dictionary::Ptr CommandDbObject::GetConfigFields(void) const
|
||||||
|
|
||||||
Dictionary::Ptr CommandDbObject::GetStatusFields(void) const
|
Dictionary::Ptr CommandDbObject::GetStatusFields(void) const
|
||||||
{
|
{
|
||||||
return Empty;
|
return Dictionary::Ptr();
|
||||||
}
|
|
||||||
|
|
||||||
void CommandDbObject::OnConfigUpdate(void)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,9 +40,6 @@ public:
|
||||||
|
|
||||||
virtual Dictionary::Ptr GetConfigFields(void) const override;
|
virtual Dictionary::Ptr GetConfigFields(void) const override;
|
||||||
virtual Dictionary::Ptr GetStatusFields(void) const override;
|
virtual Dictionary::Ptr GetStatusFields(void) const override;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual void OnConfigUpdate(void) override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -269,11 +269,6 @@ double DbObject::GetLastStatusUpdate(void) const
|
||||||
return m_LastStatusUpdate;
|
return m_LastStatusUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DbObject::IsStatusAttribute(const String&) const
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DbObject::OnConfigUpdate(void)
|
void DbObject::OnConfigUpdate(void)
|
||||||
{
|
{
|
||||||
/* Default handler does nothing. */
|
/* Default handler does nothing. */
|
||||||
|
|
|
@ -92,8 +92,6 @@ public:
|
||||||
protected:
|
protected:
|
||||||
DbObject(const intrusive_ptr<DbType>& type, const String& name1, const String& name2);
|
DbObject(const intrusive_ptr<DbType>& type, const String& name1, const String& name2);
|
||||||
|
|
||||||
virtual bool IsStatusAttribute(const String& attribute) const;
|
|
||||||
|
|
||||||
virtual void OnConfigUpdate(void);
|
virtual void OnConfigUpdate(void);
|
||||||
virtual void OnStatusUpdate(void);
|
virtual void OnStatusUpdate(void);
|
||||||
|
|
||||||
|
|
|
@ -48,5 +48,5 @@ Dictionary::Ptr HostGroupDbObject::GetConfigFields(void) const
|
||||||
|
|
||||||
Dictionary::Ptr HostGroupDbObject::GetStatusFields(void) const
|
Dictionary::Ptr HostGroupDbObject::GetStatusFields(void) const
|
||||||
{
|
{
|
||||||
return Empty;
|
return Dictionary::Ptr();
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,11 +171,6 @@ Dictionary::Ptr ServiceDbObject::GetStatusFields(void) const
|
||||||
return fields;
|
return fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ServiceDbObject::IsStatusAttribute(const String& attribute) const
|
|
||||||
{
|
|
||||||
return (attribute == "last_result");
|
|
||||||
}
|
|
||||||
|
|
||||||
void ServiceDbObject::OnConfigUpdate(void)
|
void ServiceDbObject::OnConfigUpdate(void)
|
||||||
{
|
{
|
||||||
Service::Ptr service = static_pointer_cast<Service>(GetObject());
|
Service::Ptr service = static_pointer_cast<Service>(GetObject());
|
||||||
|
|
|
@ -45,8 +45,6 @@ public:
|
||||||
virtual Dictionary::Ptr GetStatusFields(void) const override;
|
virtual Dictionary::Ptr GetStatusFields(void) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool IsStatusAttribute(const String& attribute) const override;
|
|
||||||
|
|
||||||
virtual void OnConfigUpdate(void) override;
|
virtual void OnConfigUpdate(void) override;
|
||||||
virtual void OnStatusUpdate(void) override;
|
virtual void OnStatusUpdate(void) override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -47,5 +47,5 @@ Dictionary::Ptr ServiceGroupDbObject::GetConfigFields(void) const
|
||||||
|
|
||||||
Dictionary::Ptr ServiceGroupDbObject::GetStatusFields(void) const
|
Dictionary::Ptr ServiceGroupDbObject::GetStatusFields(void) const
|
||||||
{
|
{
|
||||||
return Empty;
|
return Dictionary::Ptr();
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,8 +140,3 @@ void UserDbObject::OnConfigUpdate(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool UserDbObject::IsStatusAttribute(const String& attribute) const
|
|
||||||
{
|
|
||||||
return (attribute == "last_notification");
|
|
||||||
}
|
|
||||||
|
|
|
@ -42,8 +42,6 @@ public:
|
||||||
virtual Dictionary::Ptr GetStatusFields(void) const override;
|
virtual Dictionary::Ptr GetStatusFields(void) const override;
|
||||||
|
|
||||||
virtual void OnConfigUpdate(void) override;
|
virtual void OnConfigUpdate(void) override;
|
||||||
|
|
||||||
virtual bool IsStatusAttribute(const String& attribute) const override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,5 +45,5 @@ Dictionary::Ptr UserGroupDbObject::GetConfigFields(void) const
|
||||||
|
|
||||||
Dictionary::Ptr UserGroupDbObject::GetStatusFields(void) const
|
Dictionary::Ptr UserGroupDbObject::GetStatusFields(void) const
|
||||||
{
|
{
|
||||||
return Empty;
|
return Dictionary::Ptr();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue