| 1477 | } |
| 1478 | |
| 1479 | int DbEvents::GetHostState(const Host::Ptr& host) |
| 1480 | { |
| 1481 | int currentState = host->GetState(); |
| 1482 | |
| 1483 | if (currentState != HostUp && !host->IsReachable()) |
| 1484 | currentState = 2; /* hardcoded compat state */ |
| 1485 | |
| 1486 | return currentState; |
| 1487 | } |
| 1488 | |
| 1489 | String DbEvents::GetHostStateString(const Host::Ptr& host) |
| 1490 | { |
nothing calls this directly
no test coverage detected