MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetEndpoints

Method GetEndpoints

lib/remote/zone.cpp:55–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55std::vector<Endpoint::Ptr> Zone::GetEndpoints() const
56{
57 std::vector<Endpoint::Ptr> result;
58 Array::Ptr endpoints = GetEndpointsRaw();
59
60 if (endpoints) {
61 ObjectLock olock(endpoints);
62
63 for (String name : endpoints) {
64 Endpoint::Ptr endpoint = Endpoint::GetByName(name);
65
66 if (!endpoint)
67 continue;
68
69 result.emplace_back(std::move(endpoint));
70 }
71 }
72
73 return result;
74}
75
76std::vector<Zone::Ptr> Zone::GetAllParentsRaw() const
77{

Callers 9

UpdateObjectAuthorityMethod · 0.80
GetMasterMethod · 0.80
RelayMessageOneMethod · 0.80
GetStatusMethod · 0.80
ScriptFuncMethod · 0.80
EndpointsAccessorMethod · 0.80
ExecuteCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected