mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Cleaned up demo component.
This commit is contained in:
parent
f497c5e932
commit
0c59c675be
@ -2,11 +2,6 @@
|
|||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
IcingaApplication::Ptr DemoComponent::GetIcingaApplication(void)
|
|
||||||
{
|
|
||||||
return static_pointer_cast<IcingaApplication>(GetApplication());
|
|
||||||
}
|
|
||||||
|
|
||||||
string DemoComponent::GetName(void) const
|
string DemoComponent::GetName(void) const
|
||||||
{
|
{
|
||||||
return "democomponent";
|
return "democomponent";
|
||||||
|
@ -4,14 +4,12 @@
|
|||||||
namespace icinga
|
namespace icinga
|
||||||
{
|
{
|
||||||
|
|
||||||
class DemoComponent : public Component
|
class DemoComponent : public IcingaComponent
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
Timer::Ptr m_DemoTimer;
|
Timer::Ptr m_DemoTimer;
|
||||||
VirtualEndpoint::Ptr m_DemoEndpoint;
|
VirtualEndpoint::Ptr m_DemoEndpoint;
|
||||||
|
|
||||||
IcingaApplication::Ptr GetIcingaApplication(void);
|
|
||||||
|
|
||||||
int DemoTimerHandler(const TimerEventArgs& tea);
|
int DemoTimerHandler(const TimerEventArgs& tea);
|
||||||
int NewEndpointHandler(const NewEndpointEventArgs& neea);
|
int NewEndpointHandler(const NewEndpointEventArgs& neea);
|
||||||
int HelloWorldRequestHandler(const NewRequestEventArgs& nrea);
|
int HelloWorldRequestHandler(const NewRequestEventArgs& nrea);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user