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 ( |
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.
|
Method | Description | |
---|---|---|
addQueuePermission ( String queueUrl ) : void | ||
deleteWithRetry ( |
||
listFiles ( |
||
putWithRetry ( |
||
setMaximumMessageSize ( String queueUrl ) : void | ||
setS3Permission ( String bucketName, String key ) : void | ||
setS3PermissionsWithRetry ( String bucketName, String key ) : void |
public CompressFile ( String inputFileName ) : String | ||
inputFileName | String | /// The path to and file name to be compressed. /// |
return | String |
public static CopyStream ( Stream input, Stream output ) : void | ||
input | Stream | |
output | Stream | |
return | void |
public CreateQueue ( String queueName ) : String | ||
queueName | String | /// The name of the queue to be created. /// |
return | String |
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 |
public MessageGearsAwsClient ( |
||
props |
/// Contains the credentials needed to access MessageGears, Amazon S3, and Amazon SQS. |
|
return | System |
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 |
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 |