@Test public void testShouldGetEndPointsForSdcAndARegionNameUsingCache() throws OpenStackException { OpenStackRegionImpl openStackRegion = new OpenStackRegionImpl(); String regionName = "RegionOne"; RegionCache regionCache = new RegionCache(); regionCache.putUrl("RegionOne", "sdc", "https: String resultURL = openStackRegion.getSdcEndPoint(regionName); assertNotNull(resultURL); assertEquals("https: }
public String getSdcEndPoint(String regionName) throws OpenStackException { log.debug("Get url for sdc in region " + regionName); String url; try { url = getEndPointByNameAndRegionName("sdc", regionName); } catch (OpenStackException e) { String msn = "It is not possible to obtain the SDC endpoint"; log.error(msn); throw new OpenStackException(msn); } return url; }
OpenStackRegionImpl implements OpenStackRegion { public String getSdcEndPoint(String regionName) throws OpenStackException { log.debug("Get url for sdc in region " + regionName); String url; try { url = getEndPointByNameAndRegionName("sdc", regionName); } catch (OpenStackException e) { String msn = "It is not possible to obtain the SDC endpoint"; log.error(msn); throw new OpenStackException(msn); } return url; } }
OpenStackRegionImpl implements OpenStackRegion { public String getSdcEndPoint(String regionName) throws OpenStackException { log.debug("Get url for sdc in region " + regionName); String url; try { url = getEndPointByNameAndRegionName("sdc", regionName); } catch (OpenStackException e) { String msn = "It is not possible to obtain the SDC endpoint"; log.error(msn); throw new OpenStackException(msn); } return url; } OpenStackRegionImpl(); }
OpenStackRegionImpl implements OpenStackRegion { public String getSdcEndPoint(String regionName) throws OpenStackException { log.debug("Get url for sdc in region " + regionName); String url; try { url = getEndPointByNameAndRegionName("sdc", regionName); } catch (OpenStackException e) { String msn = "It is not possible to obtain the SDC endpoint"; log.error(msn); throw new OpenStackException(msn); } return url; } OpenStackRegionImpl(); @Override String getEndPointByNameAndRegionName(String type, String regionName); OpenStackAccess getTokenAdmin(); @Override String getNovaEndPoint(String regionName); @Override String getPuppetMasterEndPoint(String regionName); @Override String getQuantumEndPoint(String regionName); String getSdcEndPoint(String regionName); String getDefaultRegion(); String getSupportEndPoint(); SystemPropertiesProvider getSystemPropertiesProvider(); void setSystemPropertiesProvider(SystemPropertiesProvider systemPropertiesProvider); Client getClient(); void setClient(Client client); String getFederatedQuantumEndPoint(); String getChefServerEndPoint(String regionName); HttpClientConnectionManager getHttpConnectionManager(); void setHttpConnectionManager(HttpClientConnectionManager httpConnectionManager); RegionCache getRegionCache(); }
OpenStackRegionImpl implements OpenStackRegion { public String getSdcEndPoint(String regionName) throws OpenStackException { log.debug("Get url for sdc in region " + regionName); String url; try { url = getEndPointByNameAndRegionName("sdc", regionName); } catch (OpenStackException e) { String msn = "It is not possible to obtain the SDC endpoint"; log.error(msn); throw new OpenStackException(msn); } return url; } OpenStackRegionImpl(); @Override String getEndPointByNameAndRegionName(String type, String regionName); OpenStackAccess getTokenAdmin(); @Override String getNovaEndPoint(String regionName); @Override String getPuppetMasterEndPoint(String regionName); @Override String getQuantumEndPoint(String regionName); String getSdcEndPoint(String regionName); String getDefaultRegion(); String getSupportEndPoint(); SystemPropertiesProvider getSystemPropertiesProvider(); void setSystemPropertiesProvider(SystemPropertiesProvider systemPropertiesProvider); Client getClient(); void setClient(Client client); String getFederatedQuantumEndPoint(); String getChefServerEndPoint(String regionName); HttpClientConnectionManager getHttpConnectionManager(); void setHttpConnectionManager(HttpClientConnectionManager httpConnectionManager); RegionCache getRegionCache();  }