@Test @Ignore public void testIsReachablePort80() { final Reachability r = new DefaultInetAddressReachability(); assertTrue(r.isReachable( new Host(new TestProtocol(), "cyberduck.ch", 80) )); }
@Override public boolean isReachable(final Host host) { try { return InetAddress.getByName(host.getHostname()).isReachable( preferences.getInteger("connection.timeout.seconds") * 1000 ); } catch(IOException e) { return false; } }
DefaultInetAddressReachability implements Reachability { @Override public boolean isReachable(final Host host) { try { return InetAddress.getByName(host.getHostname()).isReachable( preferences.getInteger("connection.timeout.seconds") * 1000 ); } catch(IOException e) { return false; } } }
DefaultInetAddressReachability implements Reachability { @Override public boolean isReachable(final Host host) { try { return InetAddress.getByName(host.getHostname()).isReachable( preferences.getInteger("connection.timeout.seconds") * 1000 ); } catch(IOException e) { return false; } }  }
DefaultInetAddressReachability implements Reachability { @Override public boolean isReachable(final Host host) { try { return InetAddress.getByName(host.getHostname()).isReachable( preferences.getInteger("connection.timeout.seconds") * 1000 ); } catch(IOException e) { return false; } }  @Override boolean isReachable(final Host host); @Override void diagnose(final Host host); @Override Monitor monitor(final Host host, final Callback callback); }
DefaultInetAddressReachability implements Reachability { @Override public boolean isReachable(final Host host) { try { return InetAddress.getByName(host.getHostname()).isReachable( preferences.getInteger("connection.timeout.seconds") * 1000 ); } catch(IOException e) { return false; } }  @Override boolean isReachable(final Host host); @Override void diagnose(final Host host); @Override Monitor monitor(final Host host, final Callback callback);  }