Module Rightscale::RightGogridInterface
In: lib/gogrid_base.rb

Methods

Constants

DEFAULT_GOGRID_URL = 'https://api.gogrid.com/api'
DEFAULT_VERSION = '1.0'
DEFAULT_FORMAT = 'json'
GOGRID_PROBLEMS = [ #'Forbidden', 'internal service error', 'is currently unavailable', 'no response from', 'Please try again', 'InternalError', 'ServiceUnavailable', 'Unavailable', 'This application is not currently available', 'InsufficientInstanceCapacity'   If found in an error message returned by Gogrid, these phrases indicate a transient error. Transient errors are automatically retried with exponential back-off.

Attributes

cache  [R]  Cache
connection  [R]  RightHttpConnection instance
gogrid_api_key  [R]  Current Gogrid API key
gogrid_secret  [R]  Current Gogrid secret key
last_errors  [RW]  Last Gogrid errors list (used by GogridErrorHandler)
last_request  [R]  Last HTTP request object
last_response  [R]  Last HTTP response object
logger  [RW]  Logger object
params  [RW]  Initial params hash

Public Class methods

Returns a list of Gogrid responses which are known to be transient problems. We have to re-request if we get any of them, because the problem will probably disappear. By default this method returns the same value as the GOGRID_PROBLEMS const.

Public Instance methods

Returns true if the describe_xxx responses are being cached

Return true if this instance works in multi_thread mode and false otherwise.

[Validate]