Module RightAws::ActiveSdb::ActiveSdbConnect
In: lib/sdb/active_sdb.rb
RuntimeError AwsError AwsNoChange RightAWSParser RightErrorResponseParser RightHttp2xxParser AcfInterface SqsInterface SqsGen2Interface S3Interface Ec2 SdbInterface RightAwsBase ActiveSdbConnect ActiveSdb SqsGen2 S3 S3Generator Sqs RightDummyParser AWSErrorHandler AwsBenchmarkingBlock AwsUtils RightSaxParserCallback lib/sqs/right_sqs_interface.rb lib/sqs/right_sqs_gen2.rb lib/s3/right_s3.rb lib/acf/right_acf_interface.rb lib/sqs/right_sqs_gen2_interface.rb lib/sqs/right_sqs.rb lib/sdb/right_sdb_interface.rb lib/sdb/active_sdb.rb lib/ec2/right_ec2.rb lib/s3/right_s3_interface.rb lib/awsbase/right_awsbase.rb RightAwsBaseInterface VERSION RightAws dot/m_13_0.png

Methods

Public Instance methods

[Source]

     # File lib/sdb/active_sdb.rb, line 98
 98:       def connection
 99:         @connection || raise(ActiveSdbError.new('Connection to SDB is not established'))
100:       end

Create a new handle to an Sdb account. All handles share the same per process or per thread HTTP connection to Amazon Sdb. Each handle is for a specific account. The params are passed through as-is to RightAws::SdbInterface.new Params:

   { :server       => 'sdb.amazonaws.com'  # Amazon service host: 'sdb.amazonaws.com'(default)
     :port         => 443                  # Amazon service port: 80 or 443(default)
     :protocol     => 'https'              # Amazon service protocol: 'http' or 'https'(default)
     :signature_version => '0'             # The signature version : '0' or '1'(default)
     :multi_thread => true|false           # Multi-threaded (connection per each thread): true or false(default)
     :logger       => Logger Object        # Logger instance: logs to STDOUT if omitted
     :nil_representation => 'mynil'}       # interpret Ruby nil as this string value; i.e. use this string in SDB to represent Ruby nils (default is the string 'nil')

[Source]

     # File lib/sdb/active_sdb.rb, line 113
113:       def establish_connection(aws_access_key_id=nil, aws_secret_access_key=nil, params={})
114:         @connection = RightAws::SdbInterface.new(aws_access_key_id, aws_secret_access_key, params)
115:       end

[Validate]