public synchronized boolean isLocal() { if (!checkedIsLocal) { checkedIsLocal = true; String host = proftemp.getPrimaryAddress().getHost(); cachedIsLocal = orb.isLocalHost(host) && orb.isLocalServerId(oktemp.getSubcontractId(), oktemp.getServerId()) && orb.getLegacyServerSocketManager().legacyIsLocalServerPort( proftemp.getPrimaryAddress().getPort()); } return cachedIsLocal; }
public synchronized boolean isLocal() { if (!checkedIsLocal) { checkedIsLocal = true; String host = proftemp.getPrimaryAddress().getHost(); cachedIsLocal = orb.isLocalHost(host) && orb.isLocalServerId(oktemp.getSubcontractId(), oktemp.getServerId()) && orb.getLegacyServerSocketManager().legacyIsLocalServerPort( proftemp.getPrimaryAddress().getPort()); } return cachedIsLocal; }