module Rightscale::RightSlicehostInterface

Constants

DEFAULT_SLICEHOST_URL
SLICEHOST_PROBLEMS

Text, if found in an error message returned by Slicehost, indicates that this may be a transient error. Transient errors are automatically retried with exponential back-off. TODO: gather Slicehost errors here

Attributes

cache[R]

Cache

connection[R]

RightHttpConnection instance

last_errors[RW]

Last Slicehost errors list (used by SlicehostErrorHandler)

last_request[R]

Last HTTP request object

last_response[R]

Last HTTP response object

logger[RW]

Logger object

params[RW]

Initial params hash

slicehost_pasword[R]

Current Slicehost API key

Public Class Methods

bench_parser() click to toggle source
# File lib/slicehost_base.rb, line 63
def self.bench_parser
  @@bench.parser
end
bench_slicehost() click to toggle source
# File lib/slicehost_base.rb, line 66
def self.bench_slicehost
  @@bench.service
end
caching() click to toggle source
# File lib/slicehost_base.rb, line 55
def self.caching
  @@caching
end
caching=(caching) click to toggle source
# File lib/slicehost_base.rb, line 58
def self.caching=(caching)
  @@caching = caching
end
slicehost_problems() click to toggle source

Returns a list of Slicehost 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 SLICEHOST_PROBLEMS const.

# File lib/slicehost_base.rb, line 50
def self.slicehost_problems
  @@slicehost_problems
end

Public Instance Methods

caching?() click to toggle source

Returns true if the describe_xxx responses are being cached

# File lib/slicehost_base.rb, line 219
def caching?
  @params.key?(:cache) ? @params[:cache] : @@caching
end
multi_thread() click to toggle source

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

# File lib/slicehost_base.rb, line 125
def multi_thread
  @params[:multi_thread]
end