public Home getHomeInUse() { if (homeInUse != null || isMultihome()) return homeInUse; return new Home(host, port); }
/** * Connect to the remote invoker. */ public synchronized void connect() throws ConnectionFailedException { if (!connected) { log.debug(this + " connecting"); // In single home case, locator's connect homes list consists // locator's host:port. In multihome case, connect homes list // is empty unless explicitly defined. connectHomes = locator.getConnectHomeList(); if (locator.isMultihome() && connectHomes.isEmpty()) { connectHomes = locator.getHomeList(); } handleConnect(); connected = true; log.debug(this + " connected"); } }
if (getLocator().isMultihome())
if (newLocator.isMultihome())
protected void setupHomes(Map config) throws Exception if (locator.isMultihome())