module Rightscale::RightGogridInterface
Constants
- DEFAULT_FORMAT
- DEFAULT_GOGRID_URL
- DEFAULT_VERSION
- GOGRID_PROBLEMS
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
RightHttpConnection instance
Current Gogrid API key
Current Gogrid secret key
Last Gogrid errors list (used by GogridErrorHandler)
Last HTTP request object
Last HTTP response object
Logger object
Initial params hash
Public Class Methods
# File lib/gogrid_base.rb, line 94 def self.bench_gogrid @@bench.service end
# File lib/gogrid_base.rb, line 91 def self.bench_parser @@bench.parser end
# File lib/gogrid_base.rb, line 83 def self.caching @@caching end
# File lib/gogrid_base.rb, line 86 def self.caching=(caching) @@caching = caching end
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.
# File lib/gogrid_base.rb, line 78 def self.gogrid_problems @@gogrid_problems end
Public Instance Methods
Returns true
if the describe_xxx responses are being cached
# File lib/gogrid_base.rb, line 267 def caching? @params.key?(:cache) ? @params[:cache] : @@caching end
Return true
if this instance works in #multi_thread
mode and false
otherwise.
# File lib/gogrid_base.rb, line 156 def multi_thread @params[:multi_thread] end