Class: RightAws::RightAwsBase
Direct Known Subclasses
AcfInterface, AcwInterface, AsInterface, Ec2, ElbInterface, RdsInterface, S3Interface, SdbInterface, SqsGen2Interface, SqsInterface
Constant Summary collapse
- AMAZON_PROBLEMS =
Text, if found in an error message returned by AWS, indicates that this may be a transient error. Transient errors are automatically retried with exponential back-off.
[ 'internal service error', 'is currently unavailable', 'no response from', 'Please try again', 'InternalError', 'Internal Server Error', 'ServiceUnavailable', #from SQS docs 'Unavailable', 'This application is not currently available', 'InsufficientInstanceCapacity' ]
- @@amazon_problems =
AMAZON_PROBLEMS
Class Method Summary collapse
-
.amazon_problems ⇒ Object
Returns a list of Amazon service responses which are known to be transient problems.
-
.amazon_problems=(problems_list) ⇒ Object
Sets the list of Amazon side problems.
Class Method Details
.amazon_problems ⇒ Object
Returns a list of Amazon service 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 AMAZON_PROBLEMS const.
175 176 177 |
# File 'lib/awsbase/right_awsbase.rb', line 175 def self.amazon_problems @@amazon_problems end |
.amazon_problems=(problems_list) ⇒ Object
Sets the list of Amazon side problems. Use in conjunction with the getter to append problems.
181 182 183 |
# File 'lib/awsbase/right_awsbase.rb', line 181 def self.amazon_problems=(problems_list) @@amazon_problems = problems_list end |