@Test public void testAddServiceTCP() throws Exception { expectUpdateEvent(); m_mocks.replayAll(); m_provisioner.addServiceTCP("MyTCP", 4, 44, 444, 4444, 44444, 404, "HELO"); checkTCPConfiguration("MyTCP", "MyTCP", 4, 44, 444, 4444, 44444, 404, "HELO"); m_mocks.verifyAll(); verifyEvents(); }
public boolean addServiceTCP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String banner) { validateSchedule(retry, timeout, interval, downTimeInterval, downTimeDuration); checkPort(port); checkContentCheck(banner); final Parm[] parm = new Parm[] { new Parm("port", port), new Parm("banner", banner), }; return addService(serviceId, retry, timeout, interval, downTimeInterval, downTimeDuration, TCP_MONITOR, TCP_PLUGIN, parm); }
OpenNMSProvisioner implements Provisioner { public boolean addServiceTCP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String banner) { validateSchedule(retry, timeout, interval, downTimeInterval, downTimeDuration); checkPort(port); checkContentCheck(banner); final Parm[] parm = new Parm[] { new Parm("port", port), new Parm("banner", banner), }; return addService(serviceId, retry, timeout, interval, downTimeInterval, downTimeDuration, TCP_MONITOR, TCP_PLUGIN, parm); } }
OpenNMSProvisioner implements Provisioner { public boolean addServiceTCP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String banner) { validateSchedule(retry, timeout, interval, downTimeInterval, downTimeDuration); checkPort(port); checkContentCheck(banner); final Parm[] parm = new Parm[] { new Parm("port", port), new Parm("banner", banner), }; return addService(serviceId, retry, timeout, interval, downTimeInterval, downTimeDuration, TCP_MONITOR, TCP_PLUGIN, parm); }  }
OpenNMSProvisioner implements Provisioner { public boolean addServiceTCP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String banner) { validateSchedule(retry, timeout, interval, downTimeInterval, downTimeDuration); checkPort(port); checkContentCheck(banner); final Parm[] parm = new Parm[] { new Parm("port", port), new Parm("banner", banner), }; return addService(serviceId, retry, timeout, interval, downTimeInterval, downTimeDuration, TCP_MONITOR, TCP_PLUGIN, parm); }  boolean addServiceICMP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration); Parameter findParamterWithKey(final Service svc, final String key); boolean addServiceDNS(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String lookup); boolean addServiceTCP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String banner); boolean addServiceHTTP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final String hostName, final int port, final String response, final String responseText, final String url, final String user, final String passwd, final String agent); boolean addServiceHTTPS(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final String hostName, final int port, final String response, final String responseText, final String url, final String user, final String passwd, final String agent); boolean addServiceDatabase(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final String user, final String password, final String driver, final String url); Map<String, Object> getServiceConfiguration(final String pkgName, final String serviceId); void setCapsdConfig(final CapsdConfig capsdConfig); void setPollerConfig(final PollerConfig pollerConfig); void setEventManager(final EventIpcManager eventManager); void setCapsdDbSyncer(final CapsdDbSyncer capsdDbSyncer); }
OpenNMSProvisioner implements Provisioner { public boolean addServiceTCP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String banner) { validateSchedule(retry, timeout, interval, downTimeInterval, downTimeDuration); checkPort(port); checkContentCheck(banner); final Parm[] parm = new Parm[] { new Parm("port", port), new Parm("banner", banner), }; return addService(serviceId, retry, timeout, interval, downTimeInterval, downTimeDuration, TCP_MONITOR, TCP_PLUGIN, parm); }  boolean addServiceICMP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration); Parameter findParamterWithKey(final Service svc, final String key); boolean addServiceDNS(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String lookup); boolean addServiceTCP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final int port, final String banner); boolean addServiceHTTP(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final String hostName, final int port, final String response, final String responseText, final String url, final String user, final String passwd, final String agent); boolean addServiceHTTPS(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final String hostName, final int port, final String response, final String responseText, final String url, final String user, final String passwd, final String agent); boolean addServiceDatabase(final String serviceId, final int retry, final int timeout, final int interval, final int downTimeInterval, final int downTimeDuration, final String user, final String password, final String driver, final String url); Map<String, Object> getServiceConfiguration(final String pkgName, final String serviceId); void setCapsdConfig(final CapsdConfig capsdConfig); void setPollerConfig(final PollerConfig pollerConfig); void setEventManager(final EventIpcManager eventManager); void setCapsdDbSyncer(final CapsdDbSyncer capsdDbSyncer);  }