@Test public void testRefresh() { _addressRepository.refresh(); Assert.assertNotNull(_addressRepository.get()); }
protected void refresh() { try { _logger.info("start refresh service urls"); String domainUrl = _domainUrl.typedValue(); if (StringValues.isNullOrWhitespace(domainUrl)) { _logger.error("domain url should not be null or empty for artemis client"); return; } final List<String> urls = getUrlsFromService(domainUrl); if (!CollectionUtils.isEmpty(urls)) { _avlSvcUrls.set(urls); } } catch (final Throwable e) { _logger.warn("refesh service urls failed", e); } finally { _logger.info("end refresh service urls"); } }
AddressRepository { protected void refresh() { try { _logger.info("start refresh service urls"); String domainUrl = _domainUrl.typedValue(); if (StringValues.isNullOrWhitespace(domainUrl)) { _logger.error("domain url should not be null or empty for artemis client"); return; } final List<String> urls = getUrlsFromService(domainUrl); if (!CollectionUtils.isEmpty(urls)) { _avlSvcUrls.set(urls); } } catch (final Throwable e) { _logger.warn("refesh service urls failed", e); } finally { _logger.info("end refresh service urls"); } } }
AddressRepository { protected void refresh() { try { _logger.info("start refresh service urls"); String domainUrl = _domainUrl.typedValue(); if (StringValues.isNullOrWhitespace(domainUrl)) { _logger.error("domain url should not be null or empty for artemis client"); return; } final List<String> urls = getUrlsFromService(domainUrl); if (!CollectionUtils.isEmpty(urls)) { _avlSvcUrls.set(urls); } } catch (final Throwable e) { _logger.warn("refesh service urls failed", e); } finally { _logger.info("end refresh service urls"); } } AddressRepository(final String clientId, final ArtemisClientManagerConfig managerConfig, final String path); }
AddressRepository { protected void refresh() { try { _logger.info("start refresh service urls"); String domainUrl = _domainUrl.typedValue(); if (StringValues.isNullOrWhitespace(domainUrl)) { _logger.error("domain url should not be null or empty for artemis client"); return; } final List<String> urls = getUrlsFromService(domainUrl); if (!CollectionUtils.isEmpty(urls)) { _avlSvcUrls.set(urls); } } catch (final Throwable e) { _logger.warn("refesh service urls failed", e); } finally { _logger.info("end refresh service urls"); } } AddressRepository(final String clientId, final ArtemisClientManagerConfig managerConfig, final String path); String get(); }
AddressRepository { protected void refresh() { try { _logger.info("start refresh service urls"); String domainUrl = _domainUrl.typedValue(); if (StringValues.isNullOrWhitespace(domainUrl)) { _logger.error("domain url should not be null or empty for artemis client"); return; } final List<String> urls = getUrlsFromService(domainUrl); if (!CollectionUtils.isEmpty(urls)) { _avlSvcUrls.set(urls); } } catch (final Throwable e) { _logger.warn("refesh service urls failed", e); } finally { _logger.info("end refresh service urls"); } } AddressRepository(final String clientId, final ArtemisClientManagerConfig managerConfig, final String path); String get();  }