diff --git a/core/src/main/java/org/jclouds/http/HttpRequestFilter.java b/core/src/main/java/org/jclouds/http/HttpRequestFilter.java index 950796859d..149bd8e1c1 100644 --- a/core/src/main/java/org/jclouds/http/HttpRequestFilter.java +++ b/core/src/main/java/org/jclouds/http/HttpRequestFilter.java @@ -20,7 +20,14 @@ package org.jclouds.http; /** * // TODO: Adrian: Document this! - * + * + * NOTE: {@link #filter} must be idempotent in a sense that + * multiple calls to it with the same request yield in the + * same output. + * Example: this is required for request retrial + * ({@link org.jclouds.http.internal.BaseHttpCommandExecutorService}, + * so that signatures can be updated. + * * @author Adrian Cole */ public interface HttpRequestFilter { diff --git a/gogrid/src/main/java/org/jclouds/gogrid/config/GoGridComputeServiceContextModule.java b/gogrid/src/main/java/org/jclouds/gogrid/config/GoGridComputeServiceContextModule.java index 9ea215a9aa..1203753496 100644 --- a/gogrid/src/main/java/org/jclouds/gogrid/config/GoGridComputeServiceContextModule.java +++ b/gogrid/src/main/java/org/jclouds/gogrid/config/GoGridComputeServiceContextModule.java @@ -287,7 +287,7 @@ public class GoGridComputeServiceContextModule extends GoGridContextModule { * one can get with different instance types. The # of cores and disk sizes are purely empyrical * and aren't guaranteed. However, these are the matches found: Ram: 512MB, CPU: 1 core, HDD: 28 * GB Ram: 1GB, CPU: 1 core, HDD: 57 GB Ram: 2GB, CPU: 1 core, HDD: 113 GB Ram: 4GB, CPU: 3 - * cores, HDD: 233 GB Ram: 8GB, CPU: 6 cores, HDD: 462 GB + * cores, HDD: 233 GB Ram: 8GB, CPU: 6 cores, HDD: 462 GB (as of March 2010) * * @return matched size */ diff --git a/gogrid/src/main/java/org/jclouds/gogrid/domain/Option.java b/gogrid/src/main/java/org/jclouds/gogrid/domain/Option.java index cf79a208b1..28152c7b08 100644 --- a/gogrid/src/main/java/org/jclouds/gogrid/domain/Option.java +++ b/gogrid/src/main/java/org/jclouds/gogrid/domain/Option.java @@ -23,10 +23,12 @@ */ package org.jclouds.gogrid.domain; +import com.google.common.primitives.Longs; + /** * @author Oleksiy Yarmula */ -public class Option { +public class Option implements Comparable