| 1923 | } |
| 1924 | |
| 1925 | void ExternalCommandProcessor::EnableSvcEventHandler(double, const std::vector<String>& arguments) |
| 1926 | { |
| 1927 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 1928 | |
| 1929 | if (!service) |
| 1930 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot enable event handler for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 1931 | |
| 1932 | Log(LogNotice, "ExternalCommandProcessor") |
| 1933 | << "Enabling event handler for service '" << arguments[1] << "'"; |
| 1934 | |
| 1935 | service->ModifyAttribute("enable_event_handler", true); |
| 1936 | } |
| 1937 | |
| 1938 | void ExternalCommandProcessor::DisableSvcEventHandler(double, const std::vector<String>& arguments) |
| 1939 | { |
nothing calls this directly
no test coverage detected