Searched refs:NetUtils (Results 1 - 25 of 31) sorted by relevance

12

/glassfish-3.1.2/common/common-util/src/test/java/com/sun/enterprise/util/net/
H A DNetUtilsTest.java43 import com.sun.enterprise.util.net.NetUtils.PortAvailability;
102 * Test of hostIsLocal method, of class NetUtils.
107 String[] hostnames = new String[]{null, "", unlikelyName, "oracle.com", "localhost", NetUtils.getHostName()};
113 boolean result = NetUtils.isThisHostLocal(hostname);
123 assertTrue(NetUtils.isEqual(null, null));
124 assertTrue(NetUtils.isEqual(null, ""));
125 assertTrue(NetUtils.isEqual("", ""));
126 assertTrue(NetUtils.isEqual("localhost", "localhost"));
127 assertFalse(NetUtils.isEqual(null, "localhost"));
128 assertTrue(NetUtils
[all...]
/glassfish-3.1.2/admin/server-mgmt/src/main/java/com/sun/enterprise/admin/servermgmt/
H A DPortValidator.java51 import com.sun.enterprise.util.net.NetUtils;
75 if (!NetUtils.isPortFree(((Integer)obj).intValue())) {
H A DKeystoreManager.java61 import com.sun.enterprise.util.net.NetUtils;
184 cn = NetUtils.getCanonicalHostName();
/glassfish-3.1.2/admin/config-api/src/main/java/com/sun/enterprise/config/util/
H A DPortUtils.java45 import com.sun.enterprise.util.net.NetUtils;
48 import static com.sun.enterprise.util.net.NetUtils.MAX_PORT;
103 if (!NetUtils.isPortValid(port))
H A DPortManager.java84 isLocal = NetUtils.isThisHostLocal(host);
192 else if (NetUtils.isThisHostLocal(server.getAdminHost())) {
207 return NetUtils.isEqual(server.getAdminHost(), host);
271 return NetUtils.isPortFree(num);
273 return NetUtils.isPortFree(host, num);
H A DServerPorts.java49 import com.sun.enterprise.util.net.NetUtils;
140 if (NetUtils.isPortValid(port))
H A DPortBaseHelper.java49 import com.sun.enterprise.util.net.NetUtils;
200 if (checkPorts && !NetUtils.isPortFree(portNum)) {
H A DServerHelper.java52 import com.sun.enterprise.util.net.NetUtils;
150 return NetUtils.isRunning(getAdminHost(), getAdminPort());
/glassfish-3.1.2/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/
H A DCreateLocalInstanceFilesystemCommand.java54 import com.sun.enterprise.util.net.NetUtils;
201 String thisHost = NetUtils.getHostName();
208 if (! NetUtils.isRunning(DASHost, DASPort)) {
210 String thisHost = NetUtils.getHostName();
H A DUninstallNodeDcomCommand.java44 import com.sun.enterprise.util.net.NetUtils;
73 if (NetUtils.isThisHostLocal(host))
H A DLocalInstanceCommand.java57 import com.sun.enterprise.util.net.NetUtils;
314 if (NetUtils.isEqual(host1, host2)) {
319 if (NetUtils.isThisHostLocal(host1) && NetUtils.isThisHostLocal(host2)) {
595 if (hostname.equals(dashost) || NetUtils.isThisHostLocal(dashost)) {
H A DInstallNodeDcomCommand.java48 import com.sun.enterprise.util.net.NetUtils;
81 if (NetUtils.isThisHostLocal(host))
/glassfish-3.1.2/cluster/admin/src/main/java/com/sun/enterprise/v3/admin/cluster/
H A DCreateNodeConfigCommand.java57 import com.sun.enterprise.util.net.NetUtils;
94 if (NetUtils.isThisHostLocal(nodehost) && StringUtils.ok(installdir)){
H A DValidateNodeCommand.java50 import com.sun.enterprise.util.net.NetUtils;
298 // "sidewinder" and "sidewinder.us.oracle.com". NetUtils
300 if (! NetUtils.isEqual(value, configValue)) {
303 if ( ! (NetUtils.isThisHostLocal(value) &&
304 NetUtils.isThisHostLocal(configValue)) ) {
H A DUpdateNodeCommand.java55 import com.sun.enterprise.util.net.NetUtils;
135 if (NetUtils.isThisHostLocal(nodehost) && StringUtils.ok(installdir)){
H A DValidateDcom.java56 import com.sun.enterprise.util.net.NetUtils;
348 if (NetUtils.isThisHostLocal(host)) {
H A DNodeUtils.java54 import com.sun.enterprise.util.net.NetUtils;
417 if (NetUtils.isThisHostLocal(host))
483 if (!NetUtils.isPortStringValid(resolver.resolve(sshport))) {
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/universal/glassfish/
H A DGFLauncherUtils.java43 import com.sun.enterprise.util.net.NetUtils;
150 return NetUtils.getCanonicalHostName();
H A DASenvPropertyReader.java45 import com.sun.enterprise.util.net.NetUtils;
310 hostname = NetUtils.getCanonicalHostName();
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/
H A DChangeAdminPasswordCommand.java57 import com.sun.enterprise.util.net.NetUtils;
276 if(host != null && (NetUtils.isThisHostLocal(host) || NetUtils.isLocal(host))) {
H A DStartServerHelper.java56 import com.sun.enterprise.util.net.NetUtils;
123 if (NetUtils.isRunning(addr.getHost(), addr.getPort())) {
296 if (!NetUtils.isPortFree(addr.getHost(), addr.getPort()))
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/server/
H A DSystemTasks.java57 import com.sun.enterprise.util.net.NetUtils;
146 hostname = NetUtils.getCanonicalHostName();
/glassfish-3.1.2/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/
H A DCreateDomainCommand.java65 import com.sun.enterprise.util.net.NetUtils;
382 if (!NetUtils.isPortValid(portToVerify))
391 NetUtils.PortAvailability avail = NetUtils.checkPort(portToVerify);
451 if (checkPorts && !NetUtils.isPortFree(portNum)) {
653 if (checkPorts && !NetUtils.isPortFree(port)) {
654 int newport = NetUtils.getFreePort();
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/net/
H A DNetUtils.java47 public class NetUtils { class
62 private NetUtils() { method in class:NetUtils
643 synchronized (NetUtils.class) {
/glassfish-3.1.2/admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/
H A DNode.java45 import com.sun.enterprise.util.net.NetUtils;
321 return NetUtils.isThisHostLocal(nodeHost);

Completed in 2051 milliseconds

12