| 1882 | } |
| 1883 | |
| 1884 | void ExternalCommandProcessor::ChangeRetryHostCheckInterval(double, const std::vector<String>& arguments) |
| 1885 | { |
| 1886 | Host::Ptr host = Host::GetByName(arguments[0]); |
| 1887 | |
| 1888 | if (!host) |
| 1889 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot update retry interval for non-existent host '" + arguments[0] + "'")); |
| 1890 | |
| 1891 | Log(LogNotice, "ExternalCommandProcessor") |
| 1892 | << "Updating retry interval for host '" << arguments[0] << "'"; |
| 1893 | |
| 1894 | double interval = Convert::ToDouble(arguments[1]); |
| 1895 | |
| 1896 | host->ModifyAttribute("retry_interval", interval * 60); |
| 1897 | } |
| 1898 | |
| 1899 | void ExternalCommandProcessor::EnableHostEventHandler(double, const std::vector<String>& arguments) |
| 1900 | { |
nothing calls this directly
no test coverage detected