@Test public void find_client_with_non_rmi_in_port() throws Exception { generate_port_spawn(5); @SuppressWarnings("unused") RandomService rs = new RandomService(m_pmin); assertNull(RmiClientDiscovery.find_rmi_client("localhost", m_pmin, RIntf.class)); }
public static <T> T find_rmi_client(String host, int port, Class<T> iface) { try { Client c = new Client(host, port); return iface.cast(c.lookup(iface)); } catch (Exception e) { } return null; }
RmiClientDiscovery { public static <T> T find_rmi_client(String host, int port, Class<T> iface) { try { Client c = new Client(host, port); return iface.cast(c.lookup(iface)); } catch (Exception e) { } return null; } }
RmiClientDiscovery { public static <T> T find_rmi_client(String host, int port, Class<T> iface) { try { Client c = new Client(host, port); return iface.cast(c.lookup(iface)); } catch (Exception e) { } return null; }  }
RmiClientDiscovery { public static <T> T find_rmi_client(String host, int port, Class<T> iface) { try { Client c = new Client(host, port); return iface.cast(c.lookup(iface)); } catch (Exception e) { } return null; }  static void find_open_ports(String host, int min_port, int max_port,
			PortFoundListener listener, PortScanListener scan_listener); static T find_rmi_client(String host, int port,
			Class<T> iface); static void find_rmi_client(final String host, int min_port,
			int max_port, final Class<?> iface,
			final ClientFoundListener listener,
			PortScanListener scan_listener); static void find_rmi_client(String host, Class<?> iface,
			ClientFoundListener listener, PortScanListener scan_listener); }
RmiClientDiscovery { public static <T> T find_rmi_client(String host, int port, Class<T> iface) { try { Client c = new Client(host, port); return iface.cast(c.lookup(iface)); } catch (Exception e) { } return null; }  static void find_open_ports(String host, int min_port, int max_port,
			PortFoundListener listener, PortScanListener scan_listener); static T find_rmi_client(String host, int port,
			Class<T> iface); static void find_rmi_client(final String host, int min_port,
			int max_port, final Class<?> iface,
			final ClientFoundListener listener,
			PortScanListener scan_listener); static void find_rmi_client(String host, Class<?> iface,
			ClientFoundListener listener, PortScanListener scan_listener);  }