adams.core.net
Class InetUtils

java.lang.Object
  extended by adams.core.net.InetUtils

public class InetUtils
extends Object

Utility class for internet-related stuff.

Version:
$Revision: 4584 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Constructor Summary
InetUtils()
           
 
Method Summary
static boolean hasConnection(String host, int timeout)
          Checks whether a connection is available to the specified host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InetUtils

public InetUtils()
Method Detail

hasConnection

public static boolean hasConnection(String host,
                                    int timeout)
Checks whether a connection is available to the specified host.

Parameters:
host - the host to ping
timeout - the timeout in milli-seconds
Returns:
true if successfully pinged


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.