Skip to content
Browse files

Upgrade client to 2.0.0 and update affected code.

  • Loading branch information...
1 parent 298ca2c commit 6ea4f3de5868b740d0fee87d4b93438ff7a19ee4 @Kami Kami committed Mar 26, 2013
View
2 service-registry-archaius/pom.xml
@@ -62,7 +62,7 @@
<dependency>
<groupId>com.rackspacecloud</groupId>
<artifactId>service-registry-client</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>2.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
View
4 ...stry-archaius/src/main/java/com/netflix/config/sources/ServiceRegistryClientProvider.java
@@ -14,11 +14,11 @@ public ServiceRegistryClientProvider(String user, String key, String region) {
}
@Override
public List<Service> getServices(String tag) throws Exception {
- return client.services.list(null, tag);
+ return client.getServicesClient().list(null, tag);
}
@Override
public List<ConfigurationValue> getConfiguration() throws Exception {
- return client.configuration.list(null);
+ return client.getConfigurationClient().list(null);
}
}
View
4 ...c/test/java/com/netflix/config/sources/test/ServiceRegistryConfigurationProviderTest.java
@@ -86,7 +86,7 @@ public void testPolling() throws Exception {
testInstance.addService(tag, ServiceRegistryConfigurationProvider.setHostPortPair(
host,
port,
- new Service("faux" + i, "fauxSession", Collections.singletonList(tag), new HashMap<String, String>())));
+ new Service("faux" + i, 15, Collections.singletonList(tag), new HashMap<String, String>())));
}
String key = ServiceRegistryConfigurationProvider.PREFIX + "." + tag + ".addresses";
pollOnce();
@@ -110,7 +110,7 @@ public void testPollingChanging() throws Exception {
testInstance.addService(tags[i], ServiceRegistryConfigurationProvider.setHostPortPair(
host + i + j,
port,
- new Service("faux" + i + j, "fauxSession", Collections.singletonList(tags[i]), new HashMap<String, String>())));
+ new Service("faux" + i + j, 15, Collections.singletonList(tags[i]), new HashMap<String, String>())));
Integer score = scoreboard.get(tags[i]);

0 comments on commit 6ea4f3d

Please sign in to comment.
Something went wrong with that request. Please try again.