Updated test config.

This commit is contained in:
Gunnar Beutner 2012-04-23 14:06:13 +02:00
parent ab0a37142a
commit a60c7cd2a3
2 changed files with 3 additions and 4 deletions

View File

@ -15,7 +15,8 @@ string DemoComponent::GetName(void) const
void DemoComponent::Start(void)
{
m_DemoEndpoint = make_shared<VirtualEndpoint>();
m_DemoEndpoint->RegisterMethodHandler("demo::HelloWorld", bind_weak(&DemoComponent::HelloWorldRequestHAndler, shared_from_this()));
m_DemoEndpoint->RegisterMethodHandler("demo::HelloWorld",
bind_weak(&DemoComponent::HelloWorldRequestHAndler, shared_from_this()));
m_DemoEndpoint->RegisterMethodSource("demo::HelloWorld");
EndpointManager::Ptr endpointManager = GetIcingaApplication()->GetEndpointManager();
@ -42,6 +43,7 @@ void DemoComponent::Stop(void)
int DemoComponent::NewEndpointHandler(const NewEndpointEventArgs& neea)
{
/* Allow sending/receiving demo messages without authentication */
neea.Endpoint->AddAllowedMethodSinkPrefix("demo::");
neea.Endpoint->AddAllowedMethodSourcePrefix("demo::");

View File

@ -6,9 +6,6 @@
"rpclistener": {
"kekslistener": { "replicate": "0", "port": "7777" }
},
"rpcconnection": {
"keksclient": { "replicate": "0", "hostname": "localhost", "port": "7777" }
},
"host": {
"localhost": { "ipaddr": "127.0.0.1" }
}