diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackAsyncClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackAsyncClient.java
index 714cdd364c..a519295aab 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackAsyncClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackAsyncClient.java
@@ -18,112 +18,128 @@
*/
package org.jclouds.cloudstack;
-import org.jclouds.cloudstack.features.*;
+import org.jclouds.cloudstack.features.AccountAsyncClient;
+import org.jclouds.cloudstack.features.AddressAsyncClient;
+import org.jclouds.cloudstack.features.AsyncJobAsyncClient;
+import org.jclouds.cloudstack.features.ConfigurationAsyncClient;
+import org.jclouds.cloudstack.features.FirewallAsyncClient;
+import org.jclouds.cloudstack.features.GuestOSAsyncClient;
+import org.jclouds.cloudstack.features.HypervisorAsyncClient;
+import org.jclouds.cloudstack.features.LoadBalancerAsyncClient;
+import org.jclouds.cloudstack.features.NATAsyncClient;
+import org.jclouds.cloudstack.features.NetworkAsyncClient;
+import org.jclouds.cloudstack.features.OfferingAsyncClient;
+import org.jclouds.cloudstack.features.SSHKeyPairAsyncClient;
+import org.jclouds.cloudstack.features.SecurityGroupAsyncClient;
+import org.jclouds.cloudstack.features.TemplateAsyncClient;
+import org.jclouds.cloudstack.features.VirtualMachineAsyncClient;
+import org.jclouds.cloudstack.features.ZoneAsyncClient;
import org.jclouds.rest.annotations.Delegate;
/**
* Provides asynchronous access to CloudStack via their REST API.
*
- *
+ *
* @author Adrian Cole
* @see CloudStackClient
* @see
*/
public interface CloudStackAsyncClient {
- /**
- * Provides asynchronous access to Zone features.
- */
- @Delegate
- ZoneAsyncClient getZoneClient();
+ /**
+ * Provides asynchronous access to Zone features.
+ */
+ @Delegate
+ ZoneAsyncClient getZoneClient();
- /**
- * Provides asynchronous access to Template features.
- */
- @Delegate
- TemplateAsyncClient getTemplateClient();
+ /**
+ * Provides asynchronous access to Template features.
+ */
+ @Delegate
+ TemplateAsyncClient getTemplateClient();
- /**
- * Provides asynchronous access to Service, Disk, and Network Offering features.
- */
- @Delegate
- OfferingAsyncClient getOfferingClient();
+ /**
+ * Provides asynchronous access to Service, Disk, and Network Offering
+ * features.
+ */
+ @Delegate
+ OfferingAsyncClient getOfferingClient();
- /**
- * Provides asynchronous access to Network features.
- */
- @Delegate
- NetworkAsyncClient getNetworkClient();
+ /**
+ * Provides asynchronous access to Network features.
+ */
+ @Delegate
+ NetworkAsyncClient getNetworkClient();
- /**
- * Provides asynchronous access to VirtualMachine features.
- */
- @Delegate
- VirtualMachineAsyncClient getVirtualMachineClient();
+ /**
+ * Provides asynchronous access to VirtualMachine features.
+ */
+ @Delegate
+ VirtualMachineAsyncClient getVirtualMachineClient();
- /**
- * Provides asynchronous access to SecurityGroup features.
- */
- @Delegate
- SecurityGroupAsyncClient getSecurityGroupClient();
+ /**
+ * Provides asynchronous access to SecurityGroup features.
+ */
+ @Delegate
+ SecurityGroupAsyncClient getSecurityGroupClient();
- /**
- * Provides asynchronous access to AsyncJob features.
- */
- @Delegate
- AsyncJobAsyncClient getAsyncJobClient();
+ /**
+ * Provides asynchronous access to AsyncJob features.
+ */
+ @Delegate
+ AsyncJobAsyncClient getAsyncJobClient();
- /**
- * Provides asynchronous access to Address features.
- */
- @Delegate
- AddressAsyncClient getAddressClient();
+ /**
+ * Provides asynchronous access to Address features.
+ */
+ @Delegate
+ AddressAsyncClient getAddressClient();
- /**
- * Provides asynchronous access to NAT features.
- */
- @Delegate
- NATAsyncClient getNATClient();
+ /**
+ * Provides asynchronous access to NAT features.
+ */
+ @Delegate
+ NATAsyncClient getNATClient();
- /**
- * Provides asynchronous access to Firewall features.
- */
- @Delegate
- FirewallAsyncClient getFirewallClient();
+ /**
+ * Provides asynchronous access to Firewall features.
+ */
+ @Delegate
+ FirewallAsyncClient getFirewallClient();
- /**
- * Provides asynchronous access to LoadBalancer features.
- */
- @Delegate
- LoadBalancerAsyncClient getLoadBalancerClient();
+ /**
+ * Provides asynchronous access to LoadBalancer features.
+ */
+ @Delegate
+ LoadBalancerAsyncClient getLoadBalancerClient();
- /**
- * Provides asynchronous access to GuestOS features.
- */
- @Delegate
- GuestOSAsyncClient getGuestOSClient();
+ /**
+ * Provides asynchronous access to GuestOS features.
+ */
+ @Delegate
+ GuestOSAsyncClient getGuestOSClient();
- /**
- * Provides asynchronous access to Hypervisor features.
- */
- @Delegate
- HypervisorAsyncClient getHypervisorClient();
+ /**
+ * Provides asynchronous access to Hypervisor features.
+ */
+ @Delegate
+ HypervisorAsyncClient getHypervisorClient();
- /**
- * Provides asynchronous access to Configuration features.
- */
- @Delegate
- ConfigurationAsyncClient getConfigurationClient();
+ /**
+ * Provides asynchronous access to Configuration features.
+ */
+ @Delegate
+ ConfigurationAsyncClient getConfigurationClient();
- /**
- * Provides asynchronous access to Account features.
- */
- @Delegate
- AccountAsyncClient getAccountClient();
+ /**
+ * Provides asynchronous access to Account features.
+ */
+ @Delegate
+ AccountAsyncClient getAccountClient();
- /**
- * Provides asynchronous access to SSH Keypairs
- */
- @Delegate
- SSHKeyPairAsyncClient getSSHKeyPairClient();
+ /**
+ * Provides asynchronous access to SSH Keypairs
+ */
+ @Delegate
+ SSHKeyPairAsyncClient getSSHKeyPairClient();
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackClient.java
index 338336a0e8..37763331fd 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackClient.java
@@ -18,12 +18,27 @@
*/
package org.jclouds.cloudstack;
-import org.jclouds.cloudstack.features.*;
+import java.util.concurrent.TimeUnit;
+
+import org.jclouds.cloudstack.features.AccountClient;
+import org.jclouds.cloudstack.features.AddressClient;
+import org.jclouds.cloudstack.features.AsyncJobClient;
+import org.jclouds.cloudstack.features.ConfigurationClient;
+import org.jclouds.cloudstack.features.FirewallClient;
+import org.jclouds.cloudstack.features.GuestOSClient;
+import org.jclouds.cloudstack.features.HypervisorClient;
+import org.jclouds.cloudstack.features.LoadBalancerClient;
+import org.jclouds.cloudstack.features.NATClient;
+import org.jclouds.cloudstack.features.NetworkClient;
+import org.jclouds.cloudstack.features.OfferingClient;
+import org.jclouds.cloudstack.features.SSHKeyPairClient;
+import org.jclouds.cloudstack.features.SecurityGroupClient;
+import org.jclouds.cloudstack.features.TemplateClient;
+import org.jclouds.cloudstack.features.VirtualMachineClient;
+import org.jclouds.cloudstack.features.ZoneClient;
import org.jclouds.concurrent.Timeout;
import org.jclouds.rest.annotations.Delegate;
-import java.util.concurrent.TimeUnit;
-
/**
* Provides synchronous access to CloudStack.
*
@@ -47,7 +62,8 @@ public interface CloudStackClient {
TemplateClient getTemplateClient();
/**
- * Provides synchronous access to Service, Disk, and Network Offering features.
+ * Provides synchronous access to Service, Disk, and Network Offering
+ * features.
*/
@Delegate
OfferingClient getOfferingClient();
@@ -124,10 +140,10 @@ public interface CloudStackClient {
@Delegate
AccountClient getAccountClient();
- /**
- * Provides synchronous access to SSH Keypairs
- */
- @Delegate
- SSHKeyPairClient getSSHKeyPairClient();
+ /**
+ * Provides synchronous access to SSH Keypairs
+ */
+ @Delegate
+ SSHKeyPairClient getSSHKeyPairClient();
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackContextBuilder.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackContextBuilder.java
index a048fd35dc..bd28432462 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackContextBuilder.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/CloudStackContextBuilder.java
@@ -30,8 +30,7 @@ import com.google.inject.Module;
*
* @author Adrian Cole
*/
-public class CloudStackContextBuilder extends
- RestContextBuilder {
+public class CloudStackContextBuilder extends RestContextBuilder {
public CloudStackContextBuilder(Properties props) {
super(CloudStackClient.class, CloudStackAsyncClient.class, props);
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/binders/BindAccountSecurityGroupPairsToIndexedQueryParams.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/binders/BindAccountSecurityGroupPairsToIndexedQueryParams.java
index 2d8e0f3efe..3427a394cb 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/binders/BindAccountSecurityGroupPairsToIndexedQueryParams.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/binders/BindAccountSecurityGroupPairsToIndexedQueryParams.java
@@ -33,8 +33,8 @@ import org.jclouds.http.utils.ModifyRequest;
import org.jclouds.rest.Binder;
import com.google.common.collect.ImmutableMultimap;
-import com.google.common.collect.Multimap;
import com.google.common.collect.ImmutableMultimap.Builder;
+import com.google.common.collect.Multimap;
/**
*
@@ -58,11 +58,11 @@ public class BindAccountSecurityGroupPairsToIndexedQueryParams implements Binder
UriBuilder builder = uriBuilderProvider.get();
builder.uri(request.getEndpoint());
Builder map = ImmutableMultimap. builder().putAll(
- ModifyRequest.parseQueryToMap(request.getEndpoint().getQuery()));
+ ModifyRequest.parseQueryToMap(request.getEndpoint().getQuery()));
int i = 0;
for (Entry entry : pairs.entries())
map.put(String.format("usersecuritygrouplist[%d].account", i), entry.getKey()).put(
- String.format("usersecuritygrouplist[%d].group", i++), entry.getValue());
+ String.format("usersecuritygrouplist[%d].group", i++), entry.getValue());
builder.replaceQuery(ModifyRequest.makeQueryLine(map.build(), null));
return (R) request.toBuilder().endpoint(builder.build()).build();
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/config/CloudStackRestClientModule.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/config/CloudStackRestClientModule.java
index 8f165a456a..3269a9a089 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/config/CloudStackRestClientModule.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/config/CloudStackRestClientModule.java
@@ -18,10 +18,42 @@
*/
package org.jclouds.cloudstack.config;
-import com.google.common.collect.ImmutableMap;
+import java.util.Map;
+
import org.jclouds.cloudstack.CloudStackAsyncClient;
import org.jclouds.cloudstack.CloudStackClient;
-import org.jclouds.cloudstack.features.*;
+import org.jclouds.cloudstack.features.AccountAsyncClient;
+import org.jclouds.cloudstack.features.AccountClient;
+import org.jclouds.cloudstack.features.AddressAsyncClient;
+import org.jclouds.cloudstack.features.AddressClient;
+import org.jclouds.cloudstack.features.AsyncJobAsyncClient;
+import org.jclouds.cloudstack.features.AsyncJobClient;
+import org.jclouds.cloudstack.features.ConfigurationAsyncClient;
+import org.jclouds.cloudstack.features.ConfigurationClient;
+import org.jclouds.cloudstack.features.FirewallAsyncClient;
+import org.jclouds.cloudstack.features.FirewallClient;
+import org.jclouds.cloudstack.features.GuestOSAsyncClient;
+import org.jclouds.cloudstack.features.GuestOSClient;
+import org.jclouds.cloudstack.features.HypervisorAsyncClient;
+import org.jclouds.cloudstack.features.HypervisorClient;
+import org.jclouds.cloudstack.features.LoadBalancerAsyncClient;
+import org.jclouds.cloudstack.features.LoadBalancerClient;
+import org.jclouds.cloudstack.features.NATAsyncClient;
+import org.jclouds.cloudstack.features.NATClient;
+import org.jclouds.cloudstack.features.NetworkAsyncClient;
+import org.jclouds.cloudstack.features.NetworkClient;
+import org.jclouds.cloudstack.features.OfferingAsyncClient;
+import org.jclouds.cloudstack.features.OfferingClient;
+import org.jclouds.cloudstack.features.SSHKeyPairAsyncClient;
+import org.jclouds.cloudstack.features.SSHKeyPairClient;
+import org.jclouds.cloudstack.features.SecurityGroupAsyncClient;
+import org.jclouds.cloudstack.features.SecurityGroupClient;
+import org.jclouds.cloudstack.features.TemplateAsyncClient;
+import org.jclouds.cloudstack.features.TemplateClient;
+import org.jclouds.cloudstack.features.VirtualMachineAsyncClient;
+import org.jclouds.cloudstack.features.VirtualMachineClient;
+import org.jclouds.cloudstack.features.ZoneAsyncClient;
+import org.jclouds.cloudstack.features.ZoneClient;
import org.jclouds.cloudstack.handlers.CloudStackErrorHandler;
import org.jclouds.http.HttpErrorHandler;
import org.jclouds.http.RequiresHttp;
@@ -35,7 +67,7 @@ import org.jclouds.predicates.SocketOpen;
import org.jclouds.rest.ConfiguresRestClient;
import org.jclouds.rest.config.RestClientModule;
-import java.util.Map;
+import com.google.common.collect.ImmutableMap;
/**
* Configures the cloudstack connection.
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/AsyncJob.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/AsyncJob.java
index 1051c16bb6..898309249c 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/AsyncJob.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/AsyncJob.java
@@ -114,13 +114,13 @@ public class AsyncJob {
public AsyncJob build() {
return new AsyncJob(accountId, cmd, created, id, instanceId, instanceType, progress, result, resultCode,
- resultType, status, userId, error);
+ resultType, status, userId, error);
}
public static Builder fromAsyncJobUntyped(AsyncJob in) {
- return new Builder().accountId(in.accountId).cmd(in.cmd).created(in.created).id(in.id).instanceId(
- in.instanceId).instanceType(in.instanceType).progress(in.progress).result(in.result).resultCode(
- in.resultCode).resultType(in.resultType).status(in.status).userId(in.userId).error(in.error);
+ return new Builder().accountId(in.accountId).cmd(in.cmd).created(in.created).id(in.id)
+ .instanceId(in.instanceId).instanceType(in.instanceType).progress(in.progress).result(in.result)
+ .resultCode(in.resultCode).resultType(in.resultType).status(in.status).userId(in.userId).error(in.error);
}
}
@@ -149,7 +149,7 @@ public class AsyncJob {
private AsyncJobError error;
public AsyncJob(long accountId, String cmd, Date created, long id, long instanceId, String instanceType,
- int progress, T result, int resultCode, String resultType, int status, int userId, AsyncJobError error) {
+ int progress, T result, int resultCode, String resultType, int status, int userId, AsyncJobError error) {
this.accountId = accountId;
this.cmd = cmd;
this.created = created;
@@ -260,7 +260,8 @@ public class AsyncJob {
/**
*
*
- * @return the error related to this command, or null if no error or error not yet encountered.
+ * @return the error related to this command, or null if no error or error
+ * not yet encountered.
*/
public AsyncJobError getError() {
return error;
@@ -345,9 +346,9 @@ public class AsyncJob {
@Override
public String toString() {
return "[accountId=" + accountId + ", cmd=" + cmd + ", created=" + created + ", id=" + id + ", instanceId="
- + instanceId + ", instanceType=" + instanceType + ", error=" + error + ", progress=" + progress
- + ", result=" + result + ", resultCode=" + resultCode + ", resultType=" + resultType + ", status="
- + status + ", userId=" + userId + "]";
+ + instanceId + ", instanceType=" + instanceType + ", error=" + error + ", progress=" + progress
+ + ", result=" + result + ", resultCode=" + resultCode + ", resultType=" + resultType + ", status=" + status
+ + ", userId=" + userId + "]";
}
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Capabilities.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Capabilities.java
index 2c18bea24d..1ccee5cfd0 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Capabilities.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Capabilities.java
@@ -94,7 +94,8 @@ public class Capabilities {
/**
*
- * @return true if user and domain admins can set templates to be shared, false otherwise
+ * @return true if user and domain admins can set templates to be shared,
+ * false otherwise
*/
public boolean isSharedTemplatesEnabled() {
return canShareTemplates;
@@ -134,6 +135,6 @@ public class Capabilities {
@Override
public String toString() {
return "[cloudStackVersion=" + cloudStackVersion + ", canShareTemplates=" + canShareTemplates
- + ", securityGroupsEnabled=" + securityGroupsEnabled + "]";
+ + ", securityGroupsEnabled=" + securityGroupsEnabled + "]";
}
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/GuestIPType.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/GuestIPType.java
index 04b7a34ab7..40a37186f6 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/GuestIPType.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/GuestIPType.java
@@ -30,13 +30,13 @@ import com.google.common.base.CaseFormat;
public enum GuestIPType {
/**
- * guest IP address will be issued by Dhcp server in the guest virtual network. Dhcp role is
- * played by domain router.
+ * guest IP address will be issued by Dhcp server in the guest virtual
+ * network. Dhcp role is played by domain router.
*/
VIRTUAL,
/**
- * traffic directly to the network and VMs created here are assigned an IP directly from the
- * network as configured
+ * traffic directly to the network and VMs created here are assigned an IP
+ * directly from the network as configured
*/
DIRECT,
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/IPForwardingRule.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/IPForwardingRule.java
index 7ef087b1ef..bf0db08ba6 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/IPForwardingRule.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/IPForwardingRule.java
@@ -93,7 +93,7 @@ public class IPForwardingRule implements Comparable {
public IPForwardingRule build() {
return new IPForwardingRule(id, IPAddress, IPAddressId, startPort, protocol, endPort, state,
- virtualMachineDisplayName, virtualMachineId, virtualMachineName);
+ virtualMachineDisplayName, virtualMachineId, virtualMachineName);
}
}
@@ -121,7 +121,7 @@ public class IPForwardingRule implements Comparable {
}
public IPForwardingRule(long id, String iPAddress, long iPAddressId, int startPort, String protocol, int endPort,
- String state, String virtualMachineDisplayName, long virtualMachineId, String virtualMachineName) {
+ String state, String virtualMachineDisplayName, long virtualMachineId, String virtualMachineName) {
this.id = id;
this.IPAddress = iPAddress;
this.IPAddressId = iPAddressId;
@@ -286,9 +286,9 @@ public class IPForwardingRule implements Comparable {
@Override
public String toString() {
return "[IPAddress=" + IPAddress + ", IPAddressId=" + IPAddressId + ", id=" + id + ", startPort=" + startPort
- + ", protocol=" + protocol + ", endPort=" + endPort + ", state=" + state
- + ", virtualMachineDisplayName=" + virtualMachineDisplayName + ", virtualMachineId=" + virtualMachineId
- + ", virtualMachineName=" + virtualMachineName + "]";
+ + ", protocol=" + protocol + ", endPort=" + endPort + ", state=" + state + ", virtualMachineDisplayName="
+ + virtualMachineDisplayName + ", virtualMachineId=" + virtualMachineId + ", virtualMachineName="
+ + virtualMachineName + "]";
}
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/IngressRule.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/IngressRule.java
index cb57960026..016d39a5b3 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/IngressRule.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/IngressRule.java
@@ -115,13 +115,13 @@ public class IngressRule implements Comparable {
}
public IngressRule(String account, String CIDR, int endPort, int iCMPCode, int iCMPType, String protocol, long id,
- String securityGroupName, int startPort) {
+ String securityGroupName, int startPort) {
if (account == null)
checkArgument(securityGroupName == null && CIDR != null,
- "if you do not specify an account and security group, you must specify a CIDR range");
+ "if you do not specify an account and security group, you must specify a CIDR range");
if (CIDR == null)
checkArgument(account != null && securityGroupName != null,
- "if you do not specify an account and security group, you must specify a CIDR range");
+ "if you do not specify an account and security group, you must specify a CIDR range");
this.account = account;
this.CIDR = CIDR;
this.endPort = endPort;
@@ -257,8 +257,8 @@ public class IngressRule implements Comparable {
@Override
public String toString() {
return "[id=" + id + ", securityGroupName=" + securityGroupName + ", account=" + account + ", startPort="
- + startPort + ", endPort=" + endPort + ", protocol=" + protocol + ", CIDR=" + CIDR + ", ICMPCode="
- + ICMPCode + ", ICMPType=" + ICMPType + "]";
+ + startPort + ", endPort=" + endPort + ", protocol=" + protocol + ", CIDR=" + CIDR + ", ICMPCode="
+ + ICMPCode + ", ICMPType=" + ICMPType + "]";
}
@Override
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/LoadBalancerRule.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/LoadBalancerRule.java
index 866945787f..201983d65e 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/LoadBalancerRule.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/LoadBalancerRule.java
@@ -142,7 +142,7 @@ public class LoadBalancerRule implements Comparable {
public LoadBalancerRule build() {
return new LoadBalancerRule(id, account, algorithm, description, domain, domainId, name, privatePort,
- publicIP, publicIPId, publicPort, state);
+ publicIP, publicIPId, publicPort, state);
}
}
@@ -170,7 +170,7 @@ public class LoadBalancerRule implements Comparable {
}
public LoadBalancerRule(long id, String account, Algorithm algorithm, String description, String domain,
- long domainId, String name, int privatePort, String publicIP, long publicIPId, int publicPort, State state) {
+ long domainId, String name, int privatePort, String publicIP, long publicIPId, int publicPort, State state) {
this.id = id;
this.account = account;
this.algorithm = algorithm;
@@ -353,9 +353,9 @@ public class LoadBalancerRule implements Comparable {
@Override
public String toString() {
return "[account=" + account + ", algorithm=" + algorithm + ", description=" + description + ", domain=" + domain
- + ", domainId=" + domainId + ", id=" + id + ", name=" + name + ", privatePort=" + privatePort
- + ", publicIP=" + publicIP + ", publicIPId=" + publicIPId + ", publicPort=" + publicPort + ", state="
- + state + "]";
+ + ", domainId=" + domainId + ", id=" + id + ", name=" + name + ", privatePort=" + privatePort
+ + ", publicIP=" + publicIP + ", publicIPId=" + publicIPId + ", publicPort=" + publicPort + ", state="
+ + state + "]";
}
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Network.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Network.java
index f337422c97..0ed1f64c33 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Network.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Network.java
@@ -18,21 +18,21 @@
*/
package org.jclouds.cloudstack.domain;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.ImmutableSortedSet;
-import com.google.gson.annotations.SerializedName;
+import static com.google.common.base.Preconditions.checkNotNull;
-import javax.annotation.Nullable;
import java.net.URI;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
-import static com.google.common.base.Preconditions.checkNotNull;
+import javax.annotation.Nullable;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.ImmutableSortedSet;
+import com.google.gson.annotations.SerializedName;
/**
- *
* @author Adrian Cole
*/
public class Network implements Comparable {
@@ -244,7 +244,8 @@ public class Network implements Comparable {
@SerializedName("issystem")
private boolean isSystem;
private String netmask;
- @SerializedName("domain")
+ @Nullable
+ @SerializedName("networkdomain")
private String networkDomain;
@SerializedName("networkofferingavailability")
private String networkOfferingAvailability;
@@ -273,7 +274,6 @@ public class Network implements Comparable {
/**
* present only for serializer
- *
*/
Network() {
@@ -317,7 +317,6 @@ public class Network implements Comparable {
}
/**
- *
* @return network id
*/
public long getId() {
@@ -325,7 +324,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the name of the account to which the template beLongs
*/
public String getAccount() {
@@ -333,7 +331,6 @@ public class Network implements Comparable {
}
/**
- *
* @return Broadcast domain type of the network
*/
public String getBroadcastDomainType() {
@@ -341,7 +338,6 @@ public class Network implements Comparable {
}
/**
- *
* @return broadcast uri of the network
*/
public URI getBroadcastURI() {
@@ -349,7 +345,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the display text of the zone
*/
public String getDisplayText() {
@@ -357,7 +352,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the external DNS for the network
*/
public List getDNS() {
@@ -370,7 +364,6 @@ public class Network implements Comparable {
}
/**
- *
* @return Domain name for the Vms in the zone
*/
public String getDomain() {
@@ -378,7 +371,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the ID of the containing domain, null for public zones
*/
@Nullable
@@ -387,7 +379,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the end ip of the network
*/
public String getEndIP() {
@@ -395,7 +386,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the network's gateway
*/
public String getGateway() {
@@ -403,7 +393,6 @@ public class Network implements Comparable {
}
/**
- *
* @return true if network offering is default, false otherwise
*/
public boolean isDefault() {
@@ -411,7 +400,6 @@ public class Network implements Comparable {
}
/**
- *
* @return true if network offering is shared, false otherwise
*/
public boolean isShared() {
@@ -419,7 +407,6 @@ public class Network implements Comparable {
}
/**
- *
* @return true if network offering is system, false otherwise
*/
public boolean isSystem() {
@@ -427,7 +414,6 @@ public class Network implements Comparable {
}
/**
- *
* @return network name
*/
public String getName() {
@@ -435,7 +421,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the GuestIPType of the network
*/
public GuestIPType getGuestIPType() {
@@ -443,7 +428,6 @@ public class Network implements Comparable {
}
/**
- *
* @return state of the network
*/
public String getState() {
@@ -451,7 +435,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the vlan range of the zone
*/
public String getVLAN() {
@@ -459,7 +442,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the traffic type for this network offering
*/
public TrafficType getTrafficType() {
@@ -467,7 +449,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the network's netmask
*/
public String getNetmask() {
@@ -475,7 +456,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the network domain
*/
public String getNetworkDomain() {
@@ -483,7 +463,6 @@ public class Network implements Comparable {
}
/**
- *
* @return availability of the network offering the network is created from
*/
public String getNetworkOfferingAvailability() {
@@ -491,7 +470,6 @@ public class Network implements Comparable {
}
/**
- *
* @return display text of the network offering the network is created from
*/
public String getNetworkOfferingDisplayText() {
@@ -499,7 +477,6 @@ public class Network implements Comparable {
}
/**
- *
* @return network offering id the network is created from
*/
public long getNetworkOfferingId() {
@@ -507,7 +484,6 @@ public class Network implements Comparable {
}
/**
- *
* @return name of the network offering the network is created from
*/
public String getNetworkOfferingName() {
@@ -515,7 +491,6 @@ public class Network implements Comparable {
}
/**
- *
* @return related to what other network configuration
*/
public long getRelated() {
@@ -523,7 +498,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the start ip of the network
*/
public String getStartIP() {
@@ -531,7 +505,6 @@ public class Network implements Comparable {
}
/**
- *
* @return zone id of the network
*/
public long getZoneId() {
@@ -539,7 +512,6 @@ public class Network implements Comparable {
}
/**
- *
* @return the list of services
*/
public Set extends NetworkService> getServices() {
@@ -716,7 +688,7 @@ public class Network implements Comparable {
+ account + ", startIP=" + startIP + ", endIP=" + endIP + ", netmask=" + netmask + ", gateway=" + gateway
+ ", broadcastDomainType=" + broadcastDomainType + ", broadcastURI=" + broadcastURI + ", services="
+ services + ", domain=" + domain + ", domainId=" + domainId + ", isDefault=" + isDefault + ", isShared="
- + isShared + ", isSystem=" + isSystem + ", related=" + related + ", zoneId=" + zoneId + ", networkDomain="
+ + isShared + ", isSystem=" + isSystem + ", related=" + related + ", zoneId=" + zoneId + ", domain="
+ networkDomain + ", networkOfferingAvailability=" + networkOfferingAvailability
+ ", networkOfferingDisplayText=" + networkOfferingDisplayText + ", networkOfferingId=" + networkOfferingId
+ ", networkOfferingName=" + networkOfferingName + "]";
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/PortForwardingRule.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/PortForwardingRule.java
index 61def29291..2ac82d58e3 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/PortForwardingRule.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/PortForwardingRule.java
@@ -93,7 +93,7 @@ public class PortForwardingRule implements Comparable {
public PortForwardingRule build() {
return new PortForwardingRule(id, IPAddress, IPAddressId, privatePort, protocol, publicPort, state,
- virtualMachineDisplayName, virtualMachineId, virtualMachineName);
+ virtualMachineDisplayName, virtualMachineId, virtualMachineName);
}
}
@@ -121,14 +121,14 @@ public class PortForwardingRule implements Comparable {
}
public PortForwardingRule(long id, String iPAddress, long iPAddressId, int privatePort, String protocol,
- int publicPort, String state, String virtualMachineDisplayName, long virtualMachineId,
- String virtualMachineName) {
+ int publicPort, String state, String virtualMachineDisplayName, long virtualMachineId,
+ String virtualMachineName) {
this.id = id;
this.IPAddress = iPAddress;
this.IPAddressId = iPAddressId;
this.privatePort = privatePort;
this.protocol = protocol;
- this.publicPort = publicPort+"";
+ this.publicPort = publicPort + "";
this.state = state;
this.virtualMachineDisplayName = virtualMachineDisplayName;
this.virtualMachineId = virtualMachineId;
@@ -290,9 +290,9 @@ public class PortForwardingRule implements Comparable {
@Override
public String toString() {
return "[IPAddress=" + IPAddress + ", IPAddressId=" + IPAddressId + ", id=" + id + ", privatePort=" + privatePort
- + ", protocol=" + protocol + ", publicPort=" + publicPort + ", state=" + state
- + ", virtualMachineDisplayName=" + virtualMachineDisplayName + ", virtualMachineId=" + virtualMachineId
- + ", virtualMachineName=" + virtualMachineName + "]";
+ + ", protocol=" + protocol + ", publicPort=" + publicPort + ", state=" + state
+ + ", virtualMachineDisplayName=" + virtualMachineDisplayName + ", virtualMachineId=" + virtualMachineId
+ + ", virtualMachineName=" + virtualMachineName + "]";
}
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/PublicIPAddress.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/PublicIPAddress.java
index f9da9224a5..3fba1ad166 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/PublicIPAddress.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/PublicIPAddress.java
@@ -153,8 +153,8 @@ public class PublicIPAddress implements Comparable {
public PublicIPAddress build() {
return new PublicIPAddress(id, account, allocated, associatedNetworkId, domain, domainId, usesVirtualNetwork,
- IPAddress, isSourceNAT, isStaticNAT, networkId, state, virtualMachineDisplayName, virtualMachineId,
- virtualMachineName, VLANId, VLANName, zoneId, zoneName);
+ IPAddress, isSourceNAT, isStaticNAT, networkId, state, virtualMachineDisplayName, virtualMachineId,
+ virtualMachineName, VLANId, VLANName, zoneId, zoneName);
}
}
@@ -215,9 +215,9 @@ public class PublicIPAddress implements Comparable {
}
public PublicIPAddress(long id, String account, Date allocated, long associatedNetworkId, String domain,
- long domainId, boolean usesVirtualNetwork, String iPAddress, boolean isSourceNAT, boolean isStaticNAT,
- long networkId, State state, String virtualMachineDisplayName, long virtualMachineId,
- String virtualMachineName, long VLANId, String VLANName, long zoneId, String zoneName) {
+ long domainId, boolean usesVirtualNetwork, String iPAddress, boolean isSourceNAT, boolean isStaticNAT,
+ long networkId, State state, String virtualMachineDisplayName, long virtualMachineId,
+ String virtualMachineName, long VLANId, String VLANName, long zoneId, String zoneName) {
this.id = id;
this.account = account;
this.allocated = allocated;
@@ -333,7 +333,8 @@ public class PublicIPAddress implements Comparable {
/**
*
- * @return State of the ip address. Can be: Allocating, Allocated and Releasing
+ * @return State of the ip address. Can be: Allocating, Allocated and
+ * Releasing
*/
public State getState() {
return state;
@@ -341,8 +342,8 @@ public class PublicIPAddress implements Comparable {
/**
*
- * @return virtual machine display name the ip address is assigned to (not null only for static
- * nat Ip)
+ * @return virtual machine display name the ip address is assigned to (not
+ * null only for static nat Ip)
*/
public String getVirtualMachineDisplayName() {
return virtualMachineDisplayName;
@@ -350,7 +351,8 @@ public class PublicIPAddress implements Comparable {
/**
*
- * @return virtual machine id the ip address is assigned to (not null only for static nat Ip)
+ * @return virtual machine id the ip address is assigned to (not null only
+ * for static nat Ip)
*/
public long getVirtualMachineId() {
return virtualMachineId;
@@ -358,7 +360,8 @@ public class PublicIPAddress implements Comparable {
/**
*
- * @return virtual machine name the ip address is assigned to (not null only for static nat Ip)
+ * @return virtual machine name the ip address is assigned to (not null only
+ * for static nat Ip)
*/
public String getVirtualMachineName() {
return virtualMachineName;
@@ -502,11 +505,11 @@ public class PublicIPAddress implements Comparable {
@Override
public String toString() {
return "[id=" + id + ", IPAddress=" + IPAddress + ", VLANId=" + VLANId + ", VLANName=" + VLANName + ", account="
- + account + ", allocated=" + allocated + ", associatedNetworkId=" + associatedNetworkId + ", domain="
- + domain + ", domainId=" + domainId + ", usesVirtualNetwork=" + usesVirtualNetwork + ", isSourceNAT="
- + isSourceNAT + ", isStaticNAT=" + isStaticNAT + ", networkId=" + networkId + ", state=" + state
- + ", virtualMachineDisplayName=" + virtualMachineDisplayName + ", virtualMachineId=" + virtualMachineId
- + ", virtualMachineName=" + virtualMachineName + ", zoneId=" + zoneId + ", zoneName=" + zoneName + "]";
+ + account + ", allocated=" + allocated + ", associatedNetworkId=" + associatedNetworkId + ", domain="
+ + domain + ", domainId=" + domainId + ", usesVirtualNetwork=" + usesVirtualNetwork + ", isSourceNAT="
+ + isSourceNAT + ", isStaticNAT=" + isStaticNAT + ", networkId=" + networkId + ", state=" + state
+ + ", virtualMachineDisplayName=" + virtualMachineDisplayName + ", virtualMachineId=" + virtualMachineId
+ + ", virtualMachineName=" + virtualMachineName + ", zoneId=" + zoneId + ", zoneName=" + zoneName + "]";
}
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/SshKeyPair.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/SshKeyPair.java
index b400479989..ca181ea0e7 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/SshKeyPair.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/SshKeyPair.java
@@ -4,113 +4,111 @@ import com.google.gson.annotations.SerializedName;
public class SSHKeyPair implements Comparable {
- public static Builder builder() {
- return new Builder();
- }
+ public static Builder builder() {
+ return new Builder();
+ }
- public static class Builder {
+ public static class Builder {
- private String fingerprint;
- private String name;
- private String privateKey;
+ private String fingerprint;
+ private String name;
+ private String privateKey;
- public Builder fingerprint(String fingerprint) {
- this.fingerprint = fingerprint;
- return this;
- }
+ public Builder fingerprint(String fingerprint) {
+ this.fingerprint = fingerprint;
+ return this;
+ }
- public Builder name(String name) {
- this.name = name;
- return this;
- }
+ public Builder name(String name) {
+ this.name = name;
+ return this;
+ }
- public Builder privateKey(String privateKey) {
- this.privateKey = privateKey;
- return this;
- }
+ public Builder privateKey(String privateKey) {
+ this.privateKey = privateKey;
+ return this;
+ }
+ public SSHKeyPair build() {
+ return new SSHKeyPair(fingerprint, name, privateKey);
+ }
+ }
- public SSHKeyPair build() {
- return new SSHKeyPair(fingerprint, name, privateKey);
- }
- }
+ // for deserialization
+ SSHKeyPair() {
- // for deserialization
- SSHKeyPair() {
+ }
- }
+ private String fingerprint;
+ private String name;
+ @SerializedName("privatekey")
+ private String privateKey;
- private String fingerprint;
- private String name;
- @SerializedName("privatekey")
- private String privateKey;
+ public SSHKeyPair(String fingerprint, String name, String privateKey) {
+ this.fingerprint = fingerprint;
+ this.name = name;
+ this.privateKey = privateKey;
+ }
- public SSHKeyPair(String fingerprint, String name, String privateKey) {
- this.fingerprint = fingerprint;
- this.name = name;
- this.privateKey = privateKey;
- }
+ public String getFingerprint() {
+ return fingerprint;
+ }
- public String getFingerprint() {
- return fingerprint;
- }
+ public String getName() {
+ return name;
+ }
- public String getName() {
- return name;
- }
+ public String getPrivateKey() {
+ return privateKey;
+ }
- public String getPrivateKey() {
- return privateKey;
- }
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((fingerprint == null) ? 0 : fingerprint.hashCode());
+ result = prime * result + ((name == null) ? 0 : name.hashCode());
+ result = prime * result + ((privateKey == null) ? 0 : privateKey.hashCode());
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((fingerprint == null) ? 0 : fingerprint.hashCode());
- result = prime * result + ((name == null) ? 0 : name.hashCode());
- result = prime * result + ((privateKey == null) ? 0 : privateKey.hashCode());
+ return result;
+ }
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ SSHKeyPair other = (SSHKeyPair) obj;
+ if (fingerprint == null) {
+ if (other.fingerprint != null)
return false;
- if (getClass() != obj.getClass())
+ } else if (!fingerprint.equals(other.fingerprint))
+ return false;
+ if (name == null) {
+ if (other.name != null)
return false;
- SSHKeyPair other = (SSHKeyPair) obj;
- if (fingerprint == null) {
- if (other.fingerprint != null)
- return false;
- } else if (!fingerprint.equals(other.fingerprint))
- return false;
- if (name == null) {
- if (other.name != null)
- return false;
- } else if (!name.equals(other.name))
- return false;
- if (privateKey == null) {
- if (other.privateKey != null)
- return false;
- } else if (!privateKey.equals(other.privateKey))
+ } else if (!name.equals(other.name))
+ return false;
+ if (privateKey == null) {
+ if (other.privateKey != null)
return false;
+ } else if (!privateKey.equals(other.privateKey))
+ return false;
- return true;
- }
+ return true;
+ }
- @Override
- public String toString() {
- return "[fingerprint=" + fingerprint + ", name=" + name + "]";
- }
-
- @Override
- public int compareTo(SSHKeyPair arg0) {
- return fingerprint.compareTo(arg0.getFingerprint());
- }
+ @Override
+ public String toString() {
+ return "[fingerprint=" + fingerprint + ", name=" + name + "]";
+ }
+ @Override
+ public int compareTo(SSHKeyPair arg0) {
+ return fingerprint.compareTo(arg0.getFingerprint());
+ }
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java
index 91ff266e74..a1af5bdb7d 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java
@@ -523,8 +523,8 @@ public class Template implements Comparable {
/**
*
- * @return shows the current pending asynchronous job ID, or null if current pending jobs are
- * acting on the template
+ * @return shows the current pending asynchronous job ID, or null if current
+ * pending jobs are acting on the template
*/
@Nullable
public Long getJobId() {
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TemplateFilter.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TemplateFilter.java
index 0dd8f00b7d..4dab69e0cb 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TemplateFilter.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TemplateFilter.java
@@ -37,7 +37,8 @@ public enum TemplateFilter {
*/
SELF,
/**
- * templates that have been registered/created by the owner that can be used to deploy a new VM
+ * templates that have been registered/created by the owner that can be used
+ * to deploy a new VM
*/
SELF_EXECUTABLE,
/**
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TrafficType.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TrafficType.java
index 670f532ce8..2a30fec0fb 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TrafficType.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TrafficType.java
@@ -38,15 +38,18 @@ public enum TrafficType {
*/
GUEST,
/**
- * System network that only Admin can view, and only when isSystem is specified.
+ * System network that only Admin can view, and only when isSystem is
+ * specified.
*/
STORAGE,
/**
- * System network that only Admin can view, and only when isSystem is specified.
+ * System network that only Admin can view, and only when isSystem is
+ * specified.
*/
MANAGEMENT,
/**
- * System network that only Admin can view, and only when isSystem is specified.
+ * System network that only Admin can view, and only when isSystem is
+ * specified.
*/
CONTROL,
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/User.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/User.java
index a1e932a6f9..326f44f833 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/User.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/User.java
@@ -122,7 +122,7 @@ public class User implements Comparable {
public User build() {
return new User(id, name, firstName, lastName, email, created, state, account, accountType, domain, domainId,
- timeZone, apiKey, secretKey);
+ timeZone, apiKey, secretKey);
}
}
@@ -158,8 +158,8 @@ public class User implements Comparable {
private String secretKey;
public User(long id, String name, String firstname, String lastname, String email, Date created, String state,
- String account, Type accountType, String domain, long domainId, String timeZone, String apiKey,
- String secretKey) {
+ String account, Type accountType, String domain, long domainId, String timeZone, String apiKey,
+ String secretKey) {
this.id = id;
this.name = name;
this.firstName = firstname;
@@ -327,10 +327,10 @@ public class User implements Comparable {
@Override
public String toString() {
return String
- .format(
- "[id=%s, name=%s, state=%s, created=%s, account=%s, accountType=%s, domain=%s, domainId=%s, email=%s, firstName=%s, lastName=%s, apiKey=%s, secretKey=%s, timeZone=%s]",
- id, name, state, created, account, accountType, domain, domainId, email, firstName, lastName,
- apiKey, secretKey, timeZone);
+ .format(
+ "[id=%s, name=%s, state=%s, created=%s, account=%s, accountType=%s, domain=%s, domainId=%s, email=%s, firstName=%s, lastName=%s, apiKey=%s, secretKey=%s, timeZone=%s]",
+ id, name, state, created, account, accountType, domain, domainId, email, firstName, lastName, apiKey,
+ secretKey, timeZone);
}
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/VirtualMachine.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/VirtualMachine.java
index 730a63d32e..b5a22d9e8f 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/VirtualMachine.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/VirtualMachine.java
@@ -289,11 +289,10 @@ public class VirtualMachine implements Comparable {
public VirtualMachine build() {
return new VirtualMachine(id, account, cpuCount, cpuSpeed, cpuUsed, displayName, created, domain, domainId,
- usesVirtualNetwork, group, groupId, guestOSId, HAEnabled, hostId, hostname, IPAddress,
- ISODisplayText, ISOId, ISOName, jobId, jobStatus, memory, name, networkKbsRead, networkKbsWrite,
- password, passwordEnabled, rootDeviceId, rootDeviceType, securityGroups, serviceOfferingId,
- serviceOfferingName, state, templateDisplayText, templateId, templateName, zoneId, zoneName, nics,
- hypervisor);
+ usesVirtualNetwork, group, groupId, guestOSId, HAEnabled, hostId, hostname, IPAddress, ISODisplayText,
+ ISOId, ISOName, jobId, jobStatus, memory, name, networkKbsRead, networkKbsWrite, password,
+ passwordEnabled, rootDeviceId, rootDeviceType, securityGroups, serviceOfferingId, serviceOfferingName,
+ state, templateDisplayText, templateId, templateName, zoneId, zoneName, nics, hypervisor);
}
}
@@ -390,13 +389,13 @@ public class VirtualMachine implements Comparable {
private Set securityGroups = ImmutableSet. of();
public VirtualMachine(long id, String account, long cpuCount, long cpuSpeed, Long cpuUsed, String displayName,
- Date created, String domain, long domainId, boolean usesVirtualNetwork, String group, long groupId,
- long guestOSId, boolean hAEnabled, long hostId, String hostname, String iPAddress, String iSODisplayText,
- long iSOId, String iSOName, Long jobId, Integer jobStatus, long memory, String name, Long networkKbsRead,
- Long networkKbsWrite, String password, boolean passwordEnabled, long rootDeviceId, String rootDeviceType,
- Set securityGroups, long serviceOfferingId, String serviceOfferingName, State state,
- String templateDisplayText, long templateId, String templateName, long zoneId, String zoneName,
- Set nics, String hypervisor) {
+ Date created, String domain, long domainId, boolean usesVirtualNetwork, String group, long groupId,
+ long guestOSId, boolean hAEnabled, long hostId, String hostname, String iPAddress, String iSODisplayText,
+ long iSOId, String iSOName, Long jobId, Integer jobStatus, long memory, String name, Long networkKbsRead,
+ Long networkKbsWrite, String password, boolean passwordEnabled, long rootDeviceId, String rootDeviceType,
+ Set securityGroups, long serviceOfferingId, String serviceOfferingName, State state,
+ String templateDisplayText, long templateId, String templateName, long zoneId, String zoneName, Set nics,
+ String hypervisor) {
this.id = id;
this.account = account;
this.cpuCount = cpuCount;
@@ -483,8 +482,8 @@ public class VirtualMachine implements Comparable {
}
/**
- * @return user generated name. The name of the virtual machine is returned if no displayname
- * exists.
+ * @return user generated name. The name of the virtual machine is returned
+ * if no displayname exists.
*/
public String getDisplayName() {
return displayName;
@@ -574,7 +573,8 @@ public class VirtualMachine implements Comparable {
}
/**
- * @return an alternate display text of the ISO attached to the virtual machine
+ * @return an alternate display text of the ISO attached to the virtual
+ * machine
*/
public String getISODisplayText() {
return ISODisplayText;
@@ -595,8 +595,9 @@ public class VirtualMachine implements Comparable {
}
/**
- * @return shows the current pending asynchronous job ID. This tag is not returned if no current
- * pending jobs are acting on the virtual machine
+ * @return shows the current pending asynchronous job ID. This tag is not
+ * returned if no current pending jobs are acting on the virtual
+ * machine
*/
@Nullable
public Long getJobId() {
@@ -704,8 +705,8 @@ public class VirtualMachine implements Comparable {
}
/**
- * @return the ID of the template for the virtual machine. A -1 is returned if the virtual
- * machine was created from an ISO file.
+ * @return the ID of the template for the virtual machine. A -1 is returned
+ * if the virtual machine was created from an ISO file.
*/
public long getTemplateId() {
return templateId;
@@ -955,18 +956,17 @@ public class VirtualMachine implements Comparable {
@Override
public String toString() {
return "[id=" + id + ", account=" + account + ", cpuCount=" + cpuCount + ", cpuSpeed=" + cpuSpeed + ", cpuUsed="
- + cpuUsed + ", displayName=" + displayName + ", created=" + created + ", domain=" + domain
- + ", domainId=" + domainId + ", usesVirtualNetwork=" + usesVirtualNetwork + ", group=" + group
- + ", groupId=" + groupId + ", guestOSId=" + guestOSId + ", HAEnabled=" + HAEnabled + ", hostId="
- + hostId + ", hostname=" + hostname + ", IPAddress=" + IPAddress + ", ISODisplayText=" + ISODisplayText
- + ", ISOId=" + ISOId + ", ISOName=" + ISOName + ", jobId=" + jobId + ", jobStatus=" + jobStatus
- + ", memory=" + memory + ", name=" + name + ", networkKbsRead=" + networkKbsRead + ", networkKbsWrite="
- + networkKbsWrite + ", password=" + password + ", passwordEnabled=" + passwordEnabled
- + ", rootDeviceId=" + rootDeviceId + ", rootDeviceType=" + rootDeviceType + ", serviceOfferingId="
- + serviceOfferingId + ", serviceOfferingName=" + serviceOfferingName + ", state=" + state
- + ", templateDisplayText=" + templateDisplayText + ", templateId=" + templateId + ", templateName="
- + templateName + ", zoneId=" + zoneId + ", zoneName=" + zoneName + ", nics=" + nics + ", hypervisor="
- + hypervisor + ", securityGroups=" + securityGroups + "]";
+ + cpuUsed + ", displayName=" + displayName + ", created=" + created + ", domain=" + domain + ", domainId="
+ + domainId + ", usesVirtualNetwork=" + usesVirtualNetwork + ", group=" + group + ", groupId=" + groupId
+ + ", guestOSId=" + guestOSId + ", HAEnabled=" + HAEnabled + ", hostId=" + hostId + ", hostname=" + hostname
+ + ", IPAddress=" + IPAddress + ", ISODisplayText=" + ISODisplayText + ", ISOId=" + ISOId + ", ISOName="
+ + ISOName + ", jobId=" + jobId + ", jobStatus=" + jobStatus + ", memory=" + memory + ", name=" + name
+ + ", networkKbsRead=" + networkKbsRead + ", networkKbsWrite=" + networkKbsWrite + ", password=" + password
+ + ", passwordEnabled=" + passwordEnabled + ", rootDeviceId=" + rootDeviceId + ", rootDeviceType="
+ + rootDeviceType + ", serviceOfferingId=" + serviceOfferingId + ", serviceOfferingName="
+ + serviceOfferingName + ", state=" + state + ", templateDisplayText=" + templateDisplayText
+ + ", templateId=" + templateId + ", templateName=" + templateName + ", zoneId=" + zoneId + ", zoneName="
+ + zoneName + ", nics=" + nics + ", hypervisor=" + hypervisor + ", securityGroups=" + securityGroups + "]";
}
@Override
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Zone.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Zone.java
index 5f3b38ad4f..db48df5cb1 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Zone.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Zone.java
@@ -118,7 +118,7 @@ public class Zone implements Comparable {
public Zone build() {
return new Zone(id, description, displayText, DNS, domain, domainId, guestCIDRAddress, internalDNS, name,
- networkType, status, VLAN, securityGroupsEnabled);
+ networkType, status, VLAN, securityGroupsEnabled);
}
}
@@ -158,8 +158,8 @@ public class Zone implements Comparable {
}
public Zone(long id, String description, String displayText, List DNS, String domain, long domainId,
- String guestCIDRAddress, List internalDNS, String name, NetworkType networkType, String status,
- String vLAN, boolean securityGroupsEnabled) {
+ String guestCIDRAddress, List internalDNS, String name, NetworkType networkType, String status,
+ String vLAN, boolean securityGroupsEnabled) {
this.id = id;
this.description = description;
this.displayText = displayText;
@@ -389,9 +389,9 @@ public class Zone implements Comparable {
@Override
public String toString() {
return "[id=" + id + ", status=" + status + ", name=" + name + ", description=" + description + ", displayText="
- + displayText + ", domain=" + domain + ", domainId=" + domainId + ", networkType=" + networkType
- + ", guestCIDRAddress=" + guestCIDRAddress + ", VLAN=" + VLAN + ", DNS=" + getDNS()
- + ", securityGroupsEnabled=" + isSecurityGroupsEnabled() + ", internalDNS=" + getInternalDNS() + "]";
+ + displayText + ", domain=" + domain + ", domainId=" + domainId + ", networkType=" + networkType
+ + ", guestCIDRAddress=" + guestCIDRAddress + ", VLAN=" + VLAN + ", DNS=" + getDNS()
+ + ", securityGroupsEnabled=" + isSecurityGroupsEnabled() + ", internalDNS=" + getInternalDNS() + "]";
}
@Override
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/AddressAsyncClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/AddressAsyncClient.java
index afcdaffbc5..d60a045760 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/AddressAsyncClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/AddressAsyncClient.java
@@ -83,7 +83,7 @@ public interface AddressAsyncClient {
@Unwrap
@Consumes(MediaType.APPLICATION_JSON)
ListenableFuture associateIPAddressInZone(@QueryParam("zoneid") long zoneId,
- AssociateIPAddressOptions... options);
+ AssociateIPAddressOptions... options);
/**
* @see AddressClient#disassociateIPAddress
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/AddressClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/AddressClient.java
index 046f3e31dc..0fd5ccdd3c 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/AddressClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/AddressClient.java
@@ -42,7 +42,8 @@ public interface AddressClient {
*
* @param options
* if present, how to constrain the list.
- * @return IPAddresses matching query, or empty set, if no IPAddresses are found
+ * @return IPAddresses matching query, or empty set, if no IPAddresses are
+ * found
*/
Set listPublicIPAddresses(ListPublicIPAddressesOptions... options);
@@ -59,7 +60,8 @@ public interface AddressClient {
* Acquires and associates a public IP to an account.
*
* @param zoneId
- * the ID of the availability zone you want to acquire an public IP address from
+ * the ID of the availability zone you want to acquire an public IP
+ * address from
* @return IPAddress
*/
AsyncCreateResponse associateIPAddressInZone(long zoneId, AssociateIPAddressOptions... options);
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/FirewallAsyncClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/FirewallAsyncClient.java
index 3bf559b713..3cc819c60e 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/FirewallAsyncClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/FirewallAsyncClient.java
@@ -69,9 +69,9 @@ public interface FirewallAsyncClient {
@Unwrap
@Consumes(MediaType.APPLICATION_JSON)
ListenableFuture createPortForwardingRuleForVirtualMachine(
- @QueryParam("virtualmachineid") long virtualMachineId, @QueryParam("ipaddressid") long IPAddressId,
- @QueryParam("protocol") String protocol, @QueryParam("privateport") int privatePort,
- @QueryParam("publicport") int publicPort);
+ @QueryParam("virtualmachineid") long virtualMachineId, @QueryParam("ipaddressid") long IPAddressId,
+ @QueryParam("protocol") String protocol, @QueryParam("privateport") int privatePort,
+ @QueryParam("publicport") int publicPort);
/**
* @see FirewallClient#deletePortForwardingRule
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/FirewallClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/FirewallClient.java
index aa2373a64d..ff78b3c781 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/FirewallClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/FirewallClient.java
@@ -41,8 +41,8 @@ public interface FirewallClient {
*
* @param options
* if present, how to constrain the list.
- * @return PortForwardingRules matching query, or empty set, if no PortForwardingRulees are
- * found
+ * @return PortForwardingRules matching query, or empty set, if no
+ * PortForwardingRulees are found
*/
Set listPortForwardingRules(ListPortForwardingRulesOptions... options);
@@ -52,8 +52,8 @@ public interface FirewallClient {
* @param virtualMachineId
* the ID of the virtual machine for the port forwarding rule
* @param IPAddressId
- * the public IP address id of the forwarding rule, already associated via
- * associatePort
+ * the public IP address id of the forwarding rule, already
+ * associated via associatePort
* @param protocol
* the protocol for the rule. Valid values are TCP or UDP.
* @param privatePort
@@ -63,7 +63,7 @@ public interface FirewallClient {
* @return response used to track creation
*/
AsyncCreateResponse createPortForwardingRuleForVirtualMachine(long virtualMachineId, long IPAddressId,
- String protocol, int privatePort, int publicPort);
+ String protocol, int privatePort, int publicPort);
/**
* Deletes an port forwarding rule
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/GuestOSClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/GuestOSClient.java
index 6972c1593c..e204c7fe16 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/GuestOSClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/GuestOSClient.java
@@ -57,7 +57,8 @@ public interface GuestOSClient {
/**
* Lists all supported OS categories for this cloud.
*
- * @return os categories matching query, or empty set, if no categories are found
+ * @return os categories matching query, or empty set, if no categories are
+ * found
*/
Map listOSCategories();
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/LoadBalancerAsyncClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/LoadBalancerAsyncClient.java
index 15c0f76513..ff1d4aadec 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/LoadBalancerAsyncClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/LoadBalancerAsyncClient.java
@@ -26,8 +26,8 @@ import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.jclouds.cloudstack.domain.LoadBalancerRule;
-import org.jclouds.cloudstack.domain.VirtualMachine;
import org.jclouds.cloudstack.domain.LoadBalancerRule.Algorithm;
+import org.jclouds.cloudstack.domain.VirtualMachine;
import org.jclouds.cloudstack.filters.QuerySigner;
import org.jclouds.cloudstack.options.ListLoadBalancerRulesOptions;
import org.jclouds.functions.JoinOnComma;
@@ -81,8 +81,8 @@ public interface LoadBalancerAsyncClient {
@Unwrap(depth = 2)
@Consumes(MediaType.APPLICATION_JSON)
ListenableFuture createLoadBalancerRuleForPublicIP(@QueryParam("publicipid") long publicIPId,
- @QueryParam("algorithm") Algorithm algorithm, @QueryParam("name") String name,
- @QueryParam("privateport") int privatePort, @QueryParam("publicport") int publicPort);
+ @QueryParam("algorithm") Algorithm algorithm, @QueryParam("name") String name,
+ @QueryParam("privateport") int privatePort, @QueryParam("publicport") int publicPort);
/**
* @see LoadBalancerClient#deleteLoadBalancerRule
@@ -103,7 +103,7 @@ public interface LoadBalancerAsyncClient {
@Unwrap(depth = 2)
@Consumes(MediaType.APPLICATION_JSON)
ListenableFuture assignVirtualMachinesToLoadBalancerRule(@QueryParam("id") long id,
- @QueryParam("virtualmachineids") @ParamParser(JoinOnComma.class) Iterable virtualMachineIds);
+ @QueryParam("virtualmachineids") @ParamParser(JoinOnComma.class) Iterable virtualMachineIds);
/**
* @see LoadBalancerClient#assignVirtualMachinesToLoadBalancerRule(long,long[])
@@ -114,7 +114,7 @@ public interface LoadBalancerAsyncClient {
@Unwrap(depth = 2)
@Consumes(MediaType.APPLICATION_JSON)
ListenableFuture assignVirtualMachinesToLoadBalancerRule(@QueryParam("id") long id,
- @QueryParam("virtualmachineids") @ParamParser(JoinOnComma.class) long... virtualMachineIds);
+ @QueryParam("virtualmachineids") @ParamParser(JoinOnComma.class) long... virtualMachineIds);
/**
* @see LoadBalancerClient#removeVirtualMachinesFromLoadBalancerRule(long,Iterable)
@@ -125,7 +125,7 @@ public interface LoadBalancerAsyncClient {
@Unwrap(depth = 2)
@Consumes(MediaType.APPLICATION_JSON)
ListenableFuture removeVirtualMachinesFromLoadBalancerRule(@QueryParam("id") long id,
- @QueryParam("virtualmachineids") @ParamParser(JoinOnComma.class) Iterable virtualMachineIds);
+ @QueryParam("virtualmachineids") @ParamParser(JoinOnComma.class) Iterable virtualMachineIds);
/**
* @see LoadBalancerClient#removeVirtualMachinesFromLoadBalancerRule(long,long[])
@@ -136,7 +136,7 @@ public interface LoadBalancerAsyncClient {
@Unwrap(depth = 2)
@Consumes(MediaType.APPLICATION_JSON)
ListenableFuture removeVirtualMachinesFromLoadBalancerRule(@QueryParam("id") long id,
- @QueryParam("virtualmachineids") @ParamParser(JoinOnComma.class) long... virtualMachineIds);
+ @QueryParam("virtualmachineids") @ParamParser(JoinOnComma.class) long... virtualMachineIds);
/**
* @see LoadBalancerClient#listVirtualMachinesAssignedToLoadBalancerRule
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/LoadBalancerClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/LoadBalancerClient.java
index d10dc41110..2cc9304fde 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/LoadBalancerClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/LoadBalancerClient.java
@@ -22,8 +22,8 @@ import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.jclouds.cloudstack.domain.LoadBalancerRule;
-import org.jclouds.cloudstack.domain.VirtualMachine;
import org.jclouds.cloudstack.domain.LoadBalancerRule.Algorithm;
+import org.jclouds.cloudstack.domain.VirtualMachine;
import org.jclouds.cloudstack.options.ListLoadBalancerRulesOptions;
import org.jclouds.concurrent.Timeout;
@@ -42,7 +42,8 @@ public interface LoadBalancerClient {
*
* @param options
* if present, how to constrain the list.
- * @return load balancer rules matching query, or empty set, if no load balancer rules are found
+ * @return load balancer rules matching query, or empty set, if no load
+ * balancer rules are found
*/
Set listLoadBalancerRules(ListLoadBalancerRulesOptions... options);
@@ -59,20 +60,22 @@ public interface LoadBalancerClient {
* Creates a load balancer rule.
*
* @param publicIPId
- * the public port from where the network traffic will be load balanced from
+ * the public port from where the network traffic will be load
+ * balanced from
* @param algorithm
* load balancer algorithm (source, roundrobin, leastconn)
* @param name
* name of the load balancer rule
* @param privatePort
- * the private port of the private ip address/virtual machine where the network traffic
- * will be load balanced to
+ * the private port of the private ip address/virtual machine where
+ * the network traffic will be load balanced to
* @param publicPort
- * public ip address id from where the network traffic will be load balanced from
+ * public ip address id from where the network traffic will be load
+ * balanced from
* @return newly created rule
*/
LoadBalancerRule createLoadBalancerRuleForPublicIP(long publicIPId, Algorithm algorithm, String name,
- int privatePort, int publicPort);
+ int privatePort, int publicPort);
/**
*
@@ -80,63 +83,70 @@ public interface LoadBalancerClient {
*
* @param id
* id of the rule to delete
- * @return async job id of the job completing or null, if the load balancer rule was not found.
+ * @return async job id of the job completing or null, if the load balancer
+ * rule was not found.
*/
Long deleteLoadBalancerRule(long id);
/**
- * List all virtual machine instances that are assigned to a load balancer rule.
+ * List all virtual machine instances that are assigned to a load balancer
+ * rule.
*
* @param id
* id of the rule
- * @return VirtualMachines matching query, or empty set, if no VirtualMachines are assigned
+ * @return VirtualMachines matching query, or empty set, if no
+ * VirtualMachines are assigned
*/
Set listVirtualMachinesAssignedToLoadBalancerRule(long id);
/**
- * Assigns virtual machine or a list of virtual machines to a load balancer rule.
+ * Assigns virtual machine or a list of virtual machines to a load balancer
+ * rule.
*
* @param id
* the ID of the load balancer rule
* @param virtualMachineIds
- * the list of IDs of the virtual machine that are being assigned to the load balancer
- * rule
+ * the list of IDs of the virtual machine that are being assigned
+ * to the load balancer rule
* @return job id related to the operation
*/
long assignVirtualMachinesToLoadBalancerRule(long id, Iterable virtualMachineIds);
/**
- * Assigns virtual machine or a list of virtual machines to a load balancer rule.
+ * Assigns virtual machine or a list of virtual machines to a load balancer
+ * rule.
*
* @param id
* the ID of the load balancer rule
* @param virtualMachineIds
- * the list of IDs of the virtual machine that are being assigned to the load balancer
- * rule
+ * the list of IDs of the virtual machine that are being assigned
+ * to the load balancer rule
* @return job id related to the operation
*/
long assignVirtualMachinesToLoadBalancerRule(long id, long... virtualMachineIds);
/**
- * Removes a virtual machine or a list of virtual machines from a load balancer rule.
+ * Removes a virtual machine or a list of virtual machines from a load
+ * balancer rule.
*
* @param id
* the ID of the load balancer rule
* @param virtualMachineIds
- * the list of IDs of the virtual machine that are being removed from the load balancer
- * rule
+ * the list of IDs of the virtual machine that are being removed
+ * from the load balancer rule
* @return job id related to the operation
*/
long removeVirtualMachinesFromLoadBalancerRule(long id, Iterable virtualMachineIds);
/**
- * Removes a virtual machine or a list of virtual machines from a load balancer rule.
+ * Removes a virtual machine or a list of virtual machines from a load
+ * balancer rule.
*
* @param id
* the ID of the load balancer rule
* @param virtualMachineIds
- * the list of IDs of the virtual machine that are being removed from the load balancer
- * rule
+ * the list of IDs of the virtual machine that are being removed
+ * from the load balancer rule
* @return job id related to the operation
*/
long removeVirtualMachinesFromLoadBalancerRule(long id, long... virtualMachineIds);
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/NATClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/NATClient.java
index 4874ecd52f..93c36c1d8e 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/NATClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/NATClient.java
@@ -42,7 +42,8 @@ public interface NATClient {
*
* @param options
* if present, how to constrain the list.
- * @return IPForwardingRulees matching query, or empty set, if no IPForwardingRulees are found
+ * @return IPForwardingRulees matching query, or empty set, if no
+ * IPForwardingRulees are found
*/
Set listIPForwardingRules(ListIPForwardingRulesOptions... options);
@@ -59,7 +60,8 @@ public interface NATClient {
* Creates an ip forwarding rule
*
* @param IPAddressId
- * the public IP address id of the forwarding rule, already associated via associateIp
+ * the public IP address id of the forwarding rule, already
+ * associated via associateIp
* @param protocol
* the protocol for the rule. Valid values are TCP or UDP.
* @param startPort
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/NetworkClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/NetworkClient.java
index 44a7a6a793..d103707897 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/NetworkClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/NetworkClient.java
@@ -77,8 +77,8 @@ public interface NetworkClient {
*
* @param id
* the ID of the network
- * @return job id related to destroying the network, or null if resource was not
- * found
+ * @return job id related to destroying the network, or null if resource was
+ * not found
*/
Long deleteNetwork(long id);
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/OfferingClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/OfferingClient.java
index f05d37b9af..a0d5cf809c 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/OfferingClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/OfferingClient.java
@@ -44,7 +44,8 @@ public interface OfferingClient {
*
* @param options
* if present, how to constrain the list.
- * @return service offerings matching query, or empty set, if no service offerings are found
+ * @return service offerings matching query, or empty set, if no service
+ * offerings are found
*/
Set listServiceOfferings(ListServiceOfferingsOptions... options);
@@ -62,7 +63,8 @@ public interface OfferingClient {
*
* @param options
* if present, how to constrain the list.
- * @return disk offerings matching query, or empty set, if no disk offerings are found
+ * @return disk offerings matching query, or empty set, if no disk offerings
+ * are found
*/
Set listDiskOfferings(ListDiskOfferingsOptions... options);
@@ -80,7 +82,8 @@ public interface OfferingClient {
*
* @param options
* if present, how to constrain the list.
- * @return service offerings matching query, or empty set, if no service offerings are found
+ * @return service offerings matching query, or empty set, if no service
+ * offerings are found
*/
Set listNetworkOfferings(ListNetworkOfferingsOptions... options);
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java
index c15b2c0121..13869828a8 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java
@@ -18,30 +18,51 @@
*/
package org.jclouds.cloudstack.features;
-import com.google.common.util.concurrent.ListenableFuture;
-import org.jclouds.cloudstack.filters.QuerySigner;
-import org.jclouds.rest.annotations.QueryParams;
-import org.jclouds.rest.annotations.RequestFilters;
+import java.util.Set;
+import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
+
+import org.jclouds.cloudstack.domain.SSHKeyPair;
+import org.jclouds.cloudstack.filters.QuerySigner;
+import org.jclouds.cloudstack.options.ListSSHKeyPairsOptions;
+import org.jclouds.rest.annotations.ExceptionParser;
+import org.jclouds.rest.annotations.OnlyElement;
+import org.jclouds.rest.annotations.QueryParams;
+import org.jclouds.rest.annotations.RequestFilters;
+import org.jclouds.rest.annotations.SelectJson;
+import org.jclouds.rest.functions.ReturnEmptySetOnNotFoundOr404;
+import org.jclouds.rest.functions.ReturnNullOnNotFoundOr404;
+
+import com.google.common.util.concurrent.ListenableFuture;
@RequestFilters(QuerySigner.class)
@QueryParams(keys = "response", values = "json")
public interface SSHKeyPairAsyncClient {
- /**
- * @see AccountClient#listAccounts
- */
- @GET
- @QueryParams(keys = "command", values = "listSSHKeyPairs")
-// @SelectJson("")
-// @Consumes(MediaType.APPLICATION_JSON)
-// @ExceptionParser(ReturnEmptySetOnNotFoundOr404.class)
-// ListenableFuture> listSSHKeyPairs();
- ListenableFuture listSSHKeyPairs();
+ /**
+ * @see org.jclouds.cloudstack.features.SSHKeyPairClient#listSSHKeyPairs
+ */
+ @GET
+ @QueryParams(keys = "command", values = "listSSHKeyPairs")
+ @SelectJson("keypair")
+ @Consumes(MediaType.APPLICATION_JSON)
+ @ExceptionParser(ReturnEmptySetOnNotFoundOr404.class)
+ ListenableFuture> listSSHKeyPairs(ListSSHKeyPairsOptions... options);
- @GET
- @QueryParams(keys = "command", values="createSSHKeyPair")
- ListenableFuture createSSHKeyPair(@QueryParam("name") String name);
+ @GET
+ @QueryParams(keys = "command", values = "createSSHKeyPair")
+ @SelectJson("keypair")
+ @Consumes(MediaType.APPLICATION_JSON)
+ ListenableFuture createSSHKeyPair(@QueryParam("name") String name);
+
+ @GET
+ @QueryParams(keys = "command", values = "listSSHKeyPairs")
+ @SelectJson("keypair")
+ @OnlyElement()
+ @Consumes(MediaType.APPLICATION_JSON)
+ @ExceptionParser(ReturnNullOnNotFoundOr404.class)
+ ListenableFuture getSSHKeyPair(@QueryParam("name") String name);
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java
index 8b85f0edaa..a6d768fab2 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java
@@ -1,22 +1,27 @@
package org.jclouds.cloudstack.features;
-import org.jclouds.concurrent.Timeout;
-
+import java.util.Set;
import java.util.concurrent.TimeUnit;
+import org.jclouds.cloudstack.domain.SSHKeyPair;
+import org.jclouds.cloudstack.options.ListSSHKeyPairsOptions;
+import org.jclouds.concurrent.Timeout;
+
/**
* Provides synchronous access to CloudStack SSHKeyPair features.
*
- *
+ *
* @author Adrian Cole
- * @see
+ * @see
*/
@Timeout(duration = 60, timeUnit = TimeUnit.SECONDS)
-
public interface SSHKeyPairClient {
- String listSSHKeyPairs();
+ Set listSSHKeyPairs(ListSSHKeyPairsOptions... options);
- String createSSHKeyPair(String name);
+ SSHKeyPair createSSHKeyPair(String name);
-}
+ SSHKeyPair getSSHKeyPair(String name);
+}
\ No newline at end of file
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SecurityGroupAsyncClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SecurityGroupAsyncClient.java
index 7364953c91..1427118dd6 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SecurityGroupAsyncClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SecurityGroupAsyncClient.java
@@ -95,10 +95,10 @@ public interface SecurityGroupAsyncClient {
@Unwrap(depth = 2)
@Consumes(MediaType.APPLICATION_JSON)
ListenableFuture authorizeIngressPortsToCIDRs(@QueryParam("securitygroupid") long securityGroupId,
- @QueryParam("protocol") String protocol, @QueryParam("startport") int startPort,
- @QueryParam("endport") int endPort,
- @BinderParam(BindCIDRsToCommaDelimitedQueryParam.class) Iterable cidrList,
- AccountInDomainOptions... options);
+ @QueryParam("protocol") String protocol, @QueryParam("startport") int startPort,
+ @QueryParam("endport") int endPort,
+ @BinderParam(BindCIDRsToCommaDelimitedQueryParam.class) Iterable cidrList,
+ AccountInDomainOptions... options);
/**
* @see SecurityGroupClient#authorizeIngressPortsToSecurityGroups
@@ -107,13 +107,11 @@ public interface SecurityGroupAsyncClient {
@QueryParams(keys = "command", values = "authorizeSecurityGroupIngress")
@Unwrap(depth = 2)
@Consumes(MediaType.APPLICATION_JSON)
- ListenableFuture authorizeIngressPortsToSecurityGroups(
- @QueryParam("securitygroupid") long securityGroupId,
- @QueryParam("protocol") String protocol,
- @QueryParam("startport") int startPort,
- @QueryParam("endport") int endPort,
- @BinderParam(BindAccountSecurityGroupPairsToIndexedQueryParams.class) Multimap accountToGroup,
- AccountInDomainOptions... options);
+ ListenableFuture authorizeIngressPortsToSecurityGroups(@QueryParam("securitygroupid") long securityGroupId,
+ @QueryParam("protocol") String protocol, @QueryParam("startport") int startPort,
+ @QueryParam("endport") int endPort,
+ @BinderParam(BindAccountSecurityGroupPairsToIndexedQueryParams.class) Multimap accountToGroup,
+ AccountInDomainOptions... options);
/**
* @see SecurityGroupClient#authorizeIngressICMPToCIDRs
@@ -123,9 +121,9 @@ public interface SecurityGroupAsyncClient {
@Unwrap(depth = 2)
@Consumes(MediaType.APPLICATION_JSON)
ListenableFuture authorizeIngressICMPToCIDRs(@QueryParam("securitygroupid") long securityGroupId,
- @QueryParam("icmpcode") int ICMPCode, @QueryParam("icmptype") int ICMPType,
- @BinderParam(BindCIDRsToCommaDelimitedQueryParam.class) Iterable cidrList,
- AccountInDomainOptions... options);
+ @QueryParam("icmpcode") int ICMPCode, @QueryParam("icmptype") int ICMPType,
+ @BinderParam(BindCIDRsToCommaDelimitedQueryParam.class) Iterable cidrList,
+ AccountInDomainOptions... options);
/**
* @see SecurityGroupClient#authorizeIngressICMPToSecurityGroups
@@ -134,12 +132,10 @@ public interface SecurityGroupAsyncClient {
@QueryParams(keys = { "command", "protocol" }, values = { "authorizeSecurityGroupIngress", "ICMP" })
@Unwrap(depth = 2)
@Consumes(MediaType.APPLICATION_JSON)
- ListenableFuture authorizeIngressICMPToSecurityGroups(
- @QueryParam("securitygroupid") long securityGroupId,
- @QueryParam("icmpcode") int ICMPCode,
- @QueryParam("icmptype") int ICMPType,
- @BinderParam(BindAccountSecurityGroupPairsToIndexedQueryParams.class) Multimap accountToGroup,
- AccountInDomainOptions... options);
+ ListenableFuture authorizeIngressICMPToSecurityGroups(@QueryParam("securitygroupid") long securityGroupId,
+ @QueryParam("icmpcode") int ICMPCode, @QueryParam("icmptype") int ICMPType,
+ @BinderParam(BindAccountSecurityGroupPairsToIndexedQueryParams.class) Multimap accountToGroup,
+ AccountInDomainOptions... options);
/**
* @see SecurityGroupClient#revokeIngressRule
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SecurityGroupClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SecurityGroupClient.java
index 71ed62be4a..0e320d7b25 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SecurityGroupClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SecurityGroupClient.java
@@ -43,7 +43,8 @@ public interface SecurityGroupClient {
*
* @param options
* if present, how to constrain the list.
- * @return security groups matching query, or empty set, if no security groups are found
+ * @return security groups matching query, or empty set, if no security
+ * groups are found
*/
Set listSecurityGroups(ListSecurityGroupsOptions... options);
@@ -63,7 +64,7 @@ public interface SecurityGroupClient {
* @return response relating to the creation of this ingress rule
*/
long authorizeIngressPortsToCIDRs(long securityGroupId, String protocol, int startPort, int endPort,
- Iterable cidrList, AccountInDomainOptions... options);
+ Iterable cidrList, AccountInDomainOptions... options);
/**
* Authorizes a particular TCP or UDP ingress rule for this security group
@@ -77,11 +78,12 @@ public interface SecurityGroupClient {
* @param endPort
* end port for this ingress rule
* @param accountToGroup
- * mapping of account names to security groups you wish to authorize
+ * mapping of account names to security groups you wish to
+ * authorize
* @return response relating to the creation of this ingress rule
*/
- long authorizeIngressPortsToSecurityGroups(long securityGroupId, String protocol, int startPort,
- int endPort, Multimap accountToGroup, AccountInDomainOptions... options);
+ long authorizeIngressPortsToSecurityGroups(long securityGroupId, String protocol, int startPort, int endPort,
+ Multimap accountToGroup, AccountInDomainOptions... options);
/**
* Authorizes a particular ICMP ingress rule for this security group
@@ -96,8 +98,8 @@ public interface SecurityGroupClient {
* the cidr list associated
* @return response relating to the creation of this ingress rule
*/
- long authorizeIngressICMPToCIDRs(long securityGroupId, int ICMPCode, int ICMPType,
- Iterable cidrList, AccountInDomainOptions... options);
+ long authorizeIngressICMPToCIDRs(long securityGroupId, int ICMPCode, int ICMPType, Iterable cidrList,
+ AccountInDomainOptions... options);
/**
* Authorizes a particular ICMP ingress rule for this security group
@@ -109,17 +111,20 @@ public interface SecurityGroupClient {
* @param ICMPType
* error code for this icmp message
* @param accountToGroup
- * mapping of account names to security groups you wish to authorize
+ * mapping of account names to security groups you wish to
+ * authorize
* @return response relating to the creation of this ingress rule
*/
long authorizeIngressICMPToSecurityGroups(long securityGroupId, int ICMPCode, int ICMPType,
- Multimap accountToGroup, AccountInDomainOptions... options);
-
+ Multimap accountToGroup, AccountInDomainOptions... options);
+
/**
* Deletes a particular ingress rule from this security group
*
- * @param id The ID of the ingress rule
- * @param options scope of the rule.
+ * @param id
+ * The ID of the ingress rule
+ * @param options
+ * scope of the rule.
*/
long revokeIngressRule(long id, AccountInDomainOptions... options);;
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/TemplateClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/TemplateClient.java
index 7687dc7754..156023376d 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/TemplateClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/TemplateClient.java
@@ -47,7 +47,8 @@ public interface TemplateClient {
* List all public, private, and privileged templates.
*
* @param options
- * if present, how to constrain the list, defaults to all executable templates
+ * if present, how to constrain the list, defaults to all
+ * executable templates
* @return templates matching query, or empty set, if no templates are found
* @see TemplateFilter
*/
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/VirtualMachineAsyncClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/VirtualMachineAsyncClient.java
index f1ad958931..44fd7c55d5 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/VirtualMachineAsyncClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/VirtualMachineAsyncClient.java
@@ -81,9 +81,9 @@ public interface VirtualMachineAsyncClient {
@QueryParams(keys = "command", values = "deployVirtualMachine")
@Unwrap
@Consumes(MediaType.APPLICATION_JSON)
- ListenableFuture deployVirtualMachineInZone( @QueryParam("zoneid") long zoneId, @QueryParam("serviceofferingid") long serviceOfferingId,
- @QueryParam("templateid") long templateId,
- DeployVirtualMachineOptions... options);
+ ListenableFuture deployVirtualMachineInZone(@QueryParam("zoneid") long zoneId,
+ @QueryParam("serviceofferingid") long serviceOfferingId, @QueryParam("templateid") long templateId,
+ DeployVirtualMachineOptions... options);
/**
* @see VirtualMachineClient#rebootVirtualMachine
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/VirtualMachineClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/VirtualMachineClient.java
index cf59df97b5..60e400be82 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/VirtualMachineClient.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/VirtualMachineClient.java
@@ -42,7 +42,8 @@ public interface VirtualMachineClient {
*
* @param options
* if present, how to constrain the list.
- * @return VirtualMachines matching query, or empty set, if no VirtualMachines are found
+ * @return VirtualMachines matching query, or empty set, if no
+ * VirtualMachines are found
*/
Set listVirtualMachines(ListVirtualMachinesOptions... options);
@@ -56,8 +57,8 @@ public interface VirtualMachineClient {
VirtualMachine getVirtualMachine(long id);
/**
- * Creates and automatically starts a virtual machine based on a service offering, disk offering,
- * and template.
+ * Creates and automatically starts a virtual machine based on a service
+ * offering, disk offering, and template.
*
* @param zoneId
* availability zone for the virtual machine
@@ -69,7 +70,7 @@ public interface VirtualMachineClient {
* @return virtual machine
*/
AsyncCreateResponse deployVirtualMachineInZone(long zoneId, long serviceOfferingId, long templateId,
- DeployVirtualMachineOptions... options);
+ DeployVirtualMachineOptions... options);
/**
* Reboots a virtual machine.
@@ -99,8 +100,9 @@ public interface VirtualMachineClient {
Long stopVirtualMachine(long id);
/**
- * Resets the password for virtual machine. The virtual machine must be in a "Stopped" state and
- * the template must already support this feature for this command to take effect.
+ * Resets the password for virtual machine. The virtual machine must be in a
+ * "Stopped" state and the template must already support this feature for
+ * this command to take effect.
*
* @param id
* The ID of the virtual machine
@@ -109,8 +111,8 @@ public interface VirtualMachineClient {
Long resetPasswordForVirtualMachine(long id);
/**
- * Changes the service offering for a virtual machine. The virtual machine must be in a "Stopped"
- * state for this command to take effect.
+ * Changes the service offering for a virtual machine. The virtual machine
+ * must be in a "Stopped" state for this command to take effect.
*
* @param id
* The ID of the virtual machine
@@ -128,11 +130,13 @@ public interface VirtualMachineClient {
Long updateVirtualMachine(long id);
/**
- * Destroys a virtual machine. Once destroyed, only the administrator can recover it.
+ * Destroys a virtual machine. Once destroyed, only the administrator can
+ * recover it.
*
* @param id
* vm to destroy
- * @return job id related to destroying the VM, or null if resource was not found
+ * @return job id related to destroying the VM, or null if resource was not
+ * found
*/
Long destroyVirtualMachine(long id);
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/filters/QuerySigner.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/filters/QuerySigner.java
index edf3c8bf8c..7789efdc91 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/filters/QuerySigner.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/filters/QuerySigner.java
@@ -126,7 +126,7 @@ public class QuerySigner implements HttpRequestFilter, RequestSigner {
ImmutableSortedSet.Builder builder = ImmutableSortedSet. naturalOrder();
for (Entry entry : decodedParams.entries())
builder.add(entry.getKey() + "=" + Strings2.urlEncode(entry.getValue()));
-
+
// then, lower case the entire query string
String stringToSign = Joiner.on('&').join(builder.build()).toLowerCase();
if (signatureWire.enabled())
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseAsyncJobFromHttpResponse.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseAsyncJobFromHttpResponse.java
index e824f93d76..4b21c9b66c 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseAsyncJobFromHttpResponse.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseAsyncJobFromHttpResponse.java
@@ -42,7 +42,8 @@ public class ParseAsyncJobFromHttpResponse implements Function>> parser) {
+ public ParseAsyncJobFromHttpResponse(ParseTypedAsyncJob parseTyped,
+ UnwrapOnlyJsonValue>> parser) {
this.parseTyped = checkNotNull(parseTyped, "parseTyped");
this.parser = checkNotNull(parser, "parser");
}
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseNamesFromHttpResponse.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseNamesFromHttpResponse.java
index ff94e10c41..e93898742c 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseNamesFromHttpResponse.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseNamesFromHttpResponse.java
@@ -74,8 +74,9 @@ public class ParseNamesFromHttpResponse implements Function>(checkNotNull(gsonWrapper, "gsonWrapper"), new TypeLiteral>(){},
- "hypervisor");
+ this.parser = new ParseFirstJsonValueNamed>(checkNotNull(gsonWrapper, "gsonWrapper"),
+ new TypeLiteral>() {
+ }, "hypervisor");
}
public Set apply(HttpResponse response) {
diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseTypedAsyncJob.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseTypedAsyncJob.java
index 5d1b34d924..b1cfba3514 100644
--- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseTypedAsyncJob.java
+++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/functions/ParseTypedAsyncJob.java
@@ -28,6 +28,7 @@ import javax.inject.Named;
import javax.inject.Singleton;
import org.jclouds.cloudstack.domain.AsyncJob;
+import org.jclouds.cloudstack.domain.AsyncJob.Builder;
import org.jclouds.cloudstack.domain.AsyncJobError;
import org.jclouds.cloudstack.domain.IPForwardingRule;
import org.jclouds.cloudstack.domain.Network;
@@ -36,7 +37,6 @@ import org.jclouds.cloudstack.domain.PublicIPAddress;
import org.jclouds.cloudstack.domain.SecurityGroup;
import org.jclouds.cloudstack.domain.Template;
import org.jclouds.cloudstack.domain.VirtualMachine;
-import org.jclouds.cloudstack.domain.AsyncJob.Builder;
import org.jclouds.domain.JsonBall;
import org.jclouds.json.Json;
import org.jclouds.logging.Logger;
@@ -60,9 +60,9 @@ public class ParseTypedAsyncJob implements Function> typeMap = ImmutableMap.> builder().put("securitygroup", SecurityGroup.class)
- .put("portforwardingrule", PortForwardingRule.class).put("ipforwardingrule", IPForwardingRule.class).put(
- "template", Template.class).put("network", Network.class).put("ipaddress", PublicIPAddress.class)
- .put("virtualmachine", VirtualMachine.class).build();
+ .put("portforwardingrule", PortForwardingRule.class).put("ipforwardingrule", IPForwardingRule.class)
+ .put("template", Template.class).put("network", Network.class).put("ipaddress", PublicIPAddress.class)
+ .put("virtualmachine", VirtualMachine.class).build();
private final Json json;
@Inject
@@ -74,7 +74,7 @@ public class ParseTypedAsyncJob implements Function result = toParse;
if (toParse.getResult() != null) {
if (toParse.getResult().size() == 1) {
- @SuppressWarnings( { "unchecked", "rawtypes" })
+ @SuppressWarnings({ "unchecked", "rawtypes" })
Builder