Added a module that automatically deals with rate limits in the
ProfitBricks REST api and throttles the requests as needed.

The module is configured by default in the live tests, since I've
observed several failures due to rate limits when using my account, but
not added by default. Users that want jclouds to deal automatically with
this will have to register the module when creating the context.
You can view, comment on, or merge this pull request online at:

  https://github.com/jclouds/jclouds-labs/pull/331

-- Commit Summary --

  * RateLimit module for ProfitBricks REST

-- File Changes --

    A 
profitbricks-rest/src/main/java/org/apache/jclouds/profitbricks/rest/config/ProfitBricksRateLimitModule.java
 (30)
    A 
profitbricks-rest/src/main/java/org/apache/jclouds/profitbricks/rest/exceptions/ProfitBricksRateLimitExceededException.java
 (79)
    M 
profitbricks-rest/src/main/java/org/apache/jclouds/profitbricks/rest/handlers/ProfitBricksHttpErrorHandler.java
 (7)
    A 
profitbricks-rest/src/main/java/org/apache/jclouds/profitbricks/rest/handlers/ProfitBricksRateLimitRetryHandler.java
 (39)
    M 
profitbricks-rest/src/test/java/org/apache/jclouds/profitbricks/rest/compute/ProfitBricksComputeServiceLiveTest.java
 (10)
    M 
profitbricks-rest/src/test/java/org/apache/jclouds/profitbricks/rest/compute/ProfitBricksTemplateBuilderLiveTest.java
 (11)
    M 
profitbricks-rest/src/test/java/org/apache/jclouds/profitbricks/rest/internal/BaseProfitBricksLiveTest.java
 (8)

-- Patch Links --

https://github.com/jclouds/jclouds-labs/pull/331.patch
https://github.com/jclouds/jclouds-labs/pull/331.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/331

Reply via email to