Search in sources :

Example 1 with DefaultServiceMonitorLocator

use of org.opennms.netmgt.config.DefaultServiceMonitorLocator in project opennms by OpenNMS.

the class PollerFrontEndTest method anticipatePollServiceSetMonitorLocators.

private void anticipatePollServiceSetMonitorLocators() {
    ServiceMonitorLocator locator = new DefaultServiceMonitorLocator("HTTP", ServiceMonitor.class);
    Set<ServiceMonitorLocator> locators = Collections.singleton(locator);
    expect(m_backEnd.getServiceMonitorLocators(DistributionContext.REMOTE_MONITOR)).andReturn(locators);
    m_pollService.setServiceMonitorLocators(locators);
}
Also used : ServiceMonitorLocator(org.opennms.netmgt.poller.ServiceMonitorLocator) DefaultServiceMonitorLocator(org.opennms.netmgt.config.DefaultServiceMonitorLocator) DefaultServiceMonitorLocator(org.opennms.netmgt.config.DefaultServiceMonitorLocator)

Aggregations

DefaultServiceMonitorLocator (org.opennms.netmgt.config.DefaultServiceMonitorLocator)1 ServiceMonitorLocator (org.opennms.netmgt.poller.ServiceMonitorLocator)1