You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by na...@apache.org on 2016/07/11 09:25:58 UTC

[2/2] jclouds-labs-aws git commit: Add a system setting for Glacier's initial wait.

Add a system setting for Glacier's initial wait.

Glacier has an initial wait parameter, which is used to check on the
progress of a job. By default, it is set to 3 hours. This may work
well against existing AWS Glacier interface, however, against a
Glacier emulator the timeout should be overriden. The change allows
setting the timeout to an arbitrary shorter value with
-Dtest.glacier.initial-wait.


Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/commit/aeecbbb9
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/tree/aeecbbb9
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/diff/aeecbbb9

Branch: refs/heads/master
Commit: aeecbbb96bfbf2e66cadc9542ab706f962cb9e8e
Parents: 3d7b875
Author: Timur Alperovich <ti...@gmail.com>
Authored: Mon Jul 4 16:26:35 2016 -0700
Committer: Ignasi Barrera <na...@apache.org>
Committed: Mon Jul 11 11:23:08 2016 +0200

----------------------------------------------------------------------
 .../glacier/blobstore/strategy/internal/BasePollingStrategy.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/blob/aeecbbb9/glacier/src/main/java/org/jclouds/glacier/blobstore/strategy/internal/BasePollingStrategy.java
----------------------------------------------------------------------
diff --git a/glacier/src/main/java/org/jclouds/glacier/blobstore/strategy/internal/BasePollingStrategy.java b/glacier/src/main/java/org/jclouds/glacier/blobstore/strategy/internal/BasePollingStrategy.java
index d02137b..eeb179f 100644
--- a/glacier/src/main/java/org/jclouds/glacier/blobstore/strategy/internal/BasePollingStrategy.java
+++ b/glacier/src/main/java/org/jclouds/glacier/blobstore/strategy/internal/BasePollingStrategy.java
@@ -48,7 +48,8 @@ public class BasePollingStrategy implements PollingStrategy {
 
    @Inject
    public BasePollingStrategy(GlacierClient client) {
-      this(client, DEFAULT_INITIAL_WAIT, DEFAULT_TIME_BETWEEN_POLLS);
+      this(client, Long.parseLong(System.getProperty("test.glacier.initial-wait",
+              Long.toString(DEFAULT_INITIAL_WAIT))), DEFAULT_TIME_BETWEEN_POLLS);
    }
 
    private boolean inProgress(String job, String vault) {