C# Class MessageGears.EventQueue.MessageGearsAwsClient

MessageGears C# SDK main entry point.
Mostrar archivo Open project: messagegears/messagegears-csharp-sdk

Public Methods

Method Description
CompressFile ( String inputFileName ) : String

Used to compress a given file into a .gz file.

CopyStream ( Stream input, Stream output ) : void
CreateQueue ( String queueName ) : String

Creates a new queue in Amazon SQS and grants SendMessage only access to MessageGears.

DeleteS3File ( String bucketName, String key ) : void

Deletes a file from Amazon S3.

MessageGearsAwsClient ( MessageGearsAwsProperties props ) : System

Used to create a new instance of the MessageGears client.

PutS3File ( Stream stream, String bucketName, String key ) : void

Copies an InputStream to Amazon S3 and grants access to MessageGears.

PutS3File ( String fileName, String bucketName, String key ) : void

Copies a file to Amazon S3 and grants READ-ONLY access to MessageGears.

Private Methods

Method Description
addQueuePermission ( String queueUrl ) : void
deleteWithRetry ( DeleteObjectRequest request ) : void
listFiles ( ListObjectsRequest request ) : Amazon.S3.Model.ListObjectsResponse
putWithRetry ( PutObjectRequest request ) : void
setMaximumMessageSize ( String queueUrl ) : void
setS3Permission ( String bucketName, String key ) : void
setS3PermissionsWithRetry ( String bucketName, String key ) : void

Method Details

CompressFile() public method

Used to compress a given file into a .gz file.
public CompressFile ( String inputFileName ) : String
inputFileName String /// The path to and file name to be compressed. ///
return String

CopyStream() public static method

public static CopyStream ( Stream input, Stream output ) : void
input Stream
output Stream
return void

CreateQueue() public method

Creates a new queue in Amazon SQS and grants SendMessage only access to MessageGears.
public CreateQueue ( String queueName ) : String
queueName String /// The name of the queue to be created. ///
return String

DeleteS3File() public method

Deletes a file from Amazon S3.
public DeleteS3File ( String bucketName, String key ) : void
bucketName String /// The name of the bucket where the file resides. ///
key String /// The key of the file to be deleted. ///
return void

MessageGearsAwsClient() public method

Used to create a new instance of the MessageGears client.
public MessageGearsAwsClient ( MessageGearsAwsProperties props ) : System
props MessageGearsAwsProperties /// Contains the credentials needed to access MessageGears, Amazon S3, and Amazon SQS. ///
return System

PutS3File() public method

Copies an InputStream to Amazon S3 and grants access to MessageGears.
public PutS3File ( Stream stream, String bucketName, String key ) : void
stream Stream /// An input stream for the data to be copied to S3. ///
bucketName String /// The name of the S3 bucket where the file will be copied. ///
key String /// The S3 key of the file to be created. ///
return void

PutS3File() public method

Copies a file to Amazon S3 and grants READ-ONLY access to MessageGears.
public PutS3File ( String fileName, String bucketName, String key ) : void
fileName String /// The fully qualified name of the file to be copied to S3. ///
bucketName String /// The name of the S3 bucket where the file will be copied. ///
key String /// The S3 key of the file to be created. ///
return void