C# Class MessageGears.EventQueue.MessageGearsAwsClient

MessageGears C# SDK main entry point.
Afficher le fichier Open project: messagegears/messagegears-csharp-sdk

Méthodes publiques

Méthode 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

Méthode 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 méthode

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. ///
Résultat String

CopyStream() public static méthode

public static CopyStream ( Stream input, Stream output ) : void
input Stream
output Stream
Résultat void

CreateQueue() public méthode

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. ///
Résultat String

DeleteS3File() public méthode

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. ///
Résultat void

MessageGearsAwsClient() public méthode

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. ///
Résultat System

PutS3File() public méthode

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. ///
Résultat void

PutS3File() public méthode

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. ///
Résultat void