From 5c315686e8e48c8798b14b20607ab749c7a378e0 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Tue, 29 Nov 2011 14:59:51 -0500 Subject: [PATCH] added skeleton for Ip features --- .../src/main/java/org/jclouds/glesys/GleSYSAsyncClient.java | 6 ++++++ .../src/main/java/org/jclouds/glesys/GleSYSClient.java | 6 ++++++ .../org/jclouds/glesys/config/GleSYSRestClientModule.java | 3 +++ .../test/java/org/jclouds/glesys/GleSYSAsyncClientTest.java | 2 ++ .../org/jclouds/glesys/features/ServerAsyncClientTest.java | 2 +- 5 files changed, 18 insertions(+), 1 deletion(-) diff --git a/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/GleSYSAsyncClient.java b/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/GleSYSAsyncClient.java index e622c43515..328b29bf57 100644 --- a/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/GleSYSAsyncClient.java +++ b/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/GleSYSAsyncClient.java @@ -18,6 +18,7 @@ */ package org.jclouds.glesys; +import org.jclouds.glesys.features.IpAsyncClient; import org.jclouds.glesys.features.ServerAsyncClient; import org.jclouds.rest.annotations.Delegate; @@ -37,4 +38,9 @@ public interface GleSYSAsyncClient { @Delegate ServerAsyncClient getServerClient(); + /** + * Provides asynchronous access to Ip Address features. + */ + @Delegate + IpAsyncClient getIpClient(); } diff --git a/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/GleSYSClient.java b/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/GleSYSClient.java index 8d283eac19..aef4903f13 100644 --- a/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/GleSYSClient.java +++ b/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/GleSYSClient.java @@ -21,6 +21,7 @@ package org.jclouds.glesys; import java.util.concurrent.TimeUnit; import org.jclouds.concurrent.Timeout; +import org.jclouds.glesys.features.IpClient; import org.jclouds.glesys.features.ServerClient; import org.jclouds.rest.annotations.Delegate; @@ -41,4 +42,9 @@ public interface GleSYSClient { @Delegate ServerClient getServerClient(); + /** + * Provides synchronous access to Ip Address features. + */ + @Delegate + IpClient getIpClient(); } diff --git a/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/config/GleSYSRestClientModule.java b/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/config/GleSYSRestClientModule.java index db3a5069bf..6bc36e6e30 100644 --- a/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/config/GleSYSRestClientModule.java +++ b/sandbox-providers/glesys/src/main/java/org/jclouds/glesys/config/GleSYSRestClientModule.java @@ -22,6 +22,8 @@ import java.util.Map; import org.jclouds.glesys.GleSYSAsyncClient; import org.jclouds.glesys.GleSYSClient; +import org.jclouds.glesys.features.IpAsyncClient; +import org.jclouds.glesys.features.IpClient; import org.jclouds.glesys.features.ServerAsyncClient; import org.jclouds.glesys.features.ServerClient; import org.jclouds.glesys.handlers.GleSYSErrorHandler; @@ -48,6 +50,7 @@ public class GleSYSRestClientModule extends RestClientModule, Class> DELEGATE_MAP = ImmutableMap., Class> builder()// .put(ServerClient.class, ServerAsyncClient.class)// + .put(IpClient.class, IpAsyncClient.class)// .build(); public GleSYSRestClientModule() { diff --git a/sandbox-providers/glesys/src/test/java/org/jclouds/glesys/GleSYSAsyncClientTest.java b/sandbox-providers/glesys/src/test/java/org/jclouds/glesys/GleSYSAsyncClientTest.java index 21ab81cbe4..d69c8c887e 100644 --- a/sandbox-providers/glesys/src/test/java/org/jclouds/glesys/GleSYSAsyncClientTest.java +++ b/sandbox-providers/glesys/src/test/java/org/jclouds/glesys/GleSYSAsyncClientTest.java @@ -44,10 +44,12 @@ public class GleSYSAsyncClientTest extends BaseGleSYSAsyncClientTest { public void testListServers() throws SecurityException, NoSuchMethodException, IOException {