icinga2/icinga/endpoint.cpp
2012-04-16 16:27:41 +02:00

33 lines
620 B
C++

#include "i2-icinga.h"
using namespace icinga;
void Endpoint::RegisterMethodSink(string method)
{
m_MethodSinks.insert(method);
}
void Endpoint::UnregisterMethodSink(string method)
{
m_MethodSinks.erase(method);
}
bool Endpoint::IsMethodSink(string method)
{
return (m_MethodSinks.find(method) != m_MethodSinks.end());
}
void Endpoint::RegisterMethodSource(string method)
{
m_MethodSources.insert(method);
}
void Endpoint::UnregisterMethodSource(string method)
{
m_MethodSources.erase(method);
}
bool Endpoint::IsMethodSource(string method)
{
return (m_MethodSources.find(method) != m_MethodSinks.end());
}