187188189190191192193194
} catch (TTransportException e) { LOG.error(e.getMessage(), e); throw Throwables.propagate(e); } mWorkerAddress = new NetAddress(workerAddress.getAddress().getCanonicalHostName(), mPort, mDataPort); mWorkerStorage.initialize(mWorkerAddress); }
216217218219220221222223224225226
} @Override public NetAddress user_getWorker(boolean random, String host) throws NoWorkerException, TException { NetAddress ret = null; try { ret = mMasterInfo.getWorker(random, host); } catch (UnknownHostException e) { throw new NoWorkerException(e.getMessage()); }