|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.util.NetUtils
public class NetUtils
| Constructor Summary | |
|---|---|
NetUtils()
|
|
| Method Summary | |
|---|---|
java.net.InetAddress |
getInetAddress()
|
static NetUtils |
getInstance()
|
boolean |
isPortAvailable(java.lang.String host,
int port)
Call to determine if a port is available to be opened. |
static java.net.InetAddress |
resolveHostByName(java.lang.String hostName)
Resolves the given host name into InetAddress; if host name can not be resolved then it will throw UnknownHostException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetUtils()
| Method Detail |
|---|
public static NetUtils getInstance()
public java.net.InetAddress getInetAddress()
throws java.net.UnknownHostException
java.net.UnknownHostException
public static java.net.InetAddress resolveHostByName(java.lang.String hostName)
throws java.net.UnknownHostException
UnknownHostException
hostName -
java.net.UnknownHostException
public boolean isPortAvailable(java.lang.String host,
int port)
throws java.net.UnknownHostException
host - port -
java.net.UnknownHostException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||