use of org.opennms.netmgt.config.poller.CriticalService in project opennms by OpenNMS.
the class PollerConfigManager method getCriticalService.
/**
* This method returns the configured critical service name.
*
* @return the name of the configured critical service, or null if none is
* present
*/
@Override
public String getCriticalService() {
try {
getReadLock().lock();
CriticalService service = m_config.getNodeOutage().getCriticalService();
return service == null ? null : service.getName();
} finally {
getReadLock().unlock();
}
}
Aggregations