| java.lang.Object com.sun.portal.fabric.util.NetworkUtil
NetworkUtil | public class NetworkUtil (Code) | | |
getNextAvailablePort | public static String getNextAvailablePort(String server, String port)(Code) | | Return the next available unused port.
Take 50 tries, if not return error.
Parameters: server - server name Parameters: port - port number String version of next availabe unused port. On error return null. |
isHostValid | public static boolean isHostValid(String host)(Code) | | Checks whether the given host is a valid host or not
- true if the host is valid- false if the host is not valid |
isLocalHost | public static boolean isLocalHost(String host)(Code) | | Checks whether the given host is a local host or not
- true if it is a local host- false if it is not a local host |
isPortUsed | public static boolean isPortUsed(String host, int port)(Code) | | |
isPortValid | public static boolean isPortValid(String host, String port)(Code) | | check if port is alive
Parameters: server - server name Parameters: portno - port number true if port is alive |
validateIPAddressAndHost | public static boolean validateIPAddressAndHost(String host, String ipaddress)(Code) | | Check if IPAddress and HostName are in sync
|
|
|