| Constructor and Description |
|---|
S3ServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
S3FileTransferResultsDto |
copyFile(S3FileCopyRequestParamsDto params)
Copies an S3 object from the source S3 bucket to the same path in target bucket.
|
void |
createDirectory(S3FileTransferRequestParamsDto params)
Creates an S3 object of 0 byte size that represents a directory.
|
void |
deleteDirectory(S3FileTransferRequestParamsDto params)
Deletes keys/key versions from specified bucket with matching prefix.
|
void |
deleteDirectoryIgnoreException(S3FileTransferRequestParamsDto params)
Deletes keys/objects from specified bucket with matching prefix.
|
void |
deleteFileList(S3FileTransferRequestParamsDto params)
Deletes a list of keys from specified bucket.
|
S3FileTransferResultsDto |
downloadDirectory(S3FileTransferRequestParamsDto params)
Downloads a directory from S3 to the local file system.
|
S3FileTransferResultsDto |
downloadFile(S3FileTransferRequestParamsDto params)
Downloads a file from S3 to the local file system.
|
List<com.amazonaws.services.s3.model.S3ObjectSummary> |
listDirectory(S3FileTransferRequestParamsDto params)
Lists all S3 objects matching the S3 key prefix in the given bucket (S3 bucket name).
|
List<com.amazonaws.services.s3.model.S3ObjectSummary> |
listDirectory(S3FileTransferRequestParamsDto params,
boolean ignoreZeroByteDirectoryMarkers)
Lists all S3 objects matching the S3 key prefix in the given bucket (S3 bucket name).
|
void |
restoreObjects(S3FileTransferRequestParamsDto params,
int expirationInDays)
Requests to restore a list of keys in the specified bucket.
|
S3FileTransferResultsDto |
uploadDirectory(S3FileTransferRequestParamsDto params)
Uploads a local directory of files into S3.
|
S3FileTransferResultsDto |
uploadFile(S3FileTransferRequestParamsDto params)
Uploads a local file into S3.
|
S3FileTransferResultsDto |
uploadFileList(S3FileTransferRequestParamsDto params)
Uploads a list of local files into S3.
|
void |
validateGlacierS3FilesRestored(S3FileTransferRequestParamsDto params)
Validates that all specified Glacier storage class files are restored.
|
public void createDirectory(S3FileTransferRequestParamsDto params)
S3ServicecreateDirectory in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 object to be
created.public List<com.amazonaws.services.s3.model.S3ObjectSummary> listDirectory(S3FileTransferRequestParamsDto params)
S3ServicelistDirectory in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 objects to get
listed.public List<com.amazonaws.services.s3.model.S3ObjectSummary> listDirectory(S3FileTransferRequestParamsDto params, boolean ignoreZeroByteDirectoryMarkers)
S3ServicelistDirectory in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 objects to get
listed.ignoreZeroByteDirectoryMarkers - specifies whether to ignore 0 byte objects that represent S3 directories.public S3FileTransferResultsDto uploadFile(S3FileTransferRequestParamsDto params) throws InterruptedException
S3ServiceuploadFile in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix are for the target of the copy. The
local path is the local file to be copied.InterruptedException - if any problems were encountered.public S3FileTransferResultsDto uploadFileList(S3FileTransferRequestParamsDto params) throws InterruptedException
S3ServiceuploadFileList in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name, S3 key prefix, and the file list (files) are for the
target of the copy. The local path and the file list (files) are the local files to be copied. The keys of the files are calculated relative to the
common parent directory (local path) and the S3 key prefix.InterruptedException - if any problems were encountered.public S3FileTransferResultsDto uploadDirectory(S3FileTransferRequestParamsDto params) throws InterruptedException
S3ServiceuploadDirectory in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix are for the target of the copy. The
local path is the local directory to be copied.InterruptedException - if any problems were encountered.public S3FileTransferResultsDto copyFile(S3FileCopyRequestParamsDto params) throws InterruptedException
S3ServicecopyFile in interface S3Serviceparams - the S3 file copy request parameters.InterruptedException - if any problems were encountered.public void restoreObjects(S3FileTransferRequestParamsDto params, int expirationInDays)
S3ServicerestoreObjects in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and the file list identify the S3 objects to be
restoredexpirationInDays - the time, in days, between when an object is restored to the bucket and when it expirespublic void validateGlacierS3FilesRestored(S3FileTransferRequestParamsDto params) throws RuntimeException
S3ServicevalidateGlacierS3FilesRestored in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and the file list identify the S3 objects to be
validatedRuntimeException - if file validation failspublic void deleteFileList(S3FileTransferRequestParamsDto params)
S3ServicedeleteFileList in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and the file list identify the S3 objects to be
deleted.public void deleteDirectory(S3FileTransferRequestParamsDto params)
S3ServicedeleteDirectory in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 objects to be
deleted.public void deleteDirectoryIgnoreException(S3FileTransferRequestParamsDto params)
S3ServicedeleteDirectoryIgnoreException in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 objects to be
deleted.public S3FileTransferResultsDto downloadFile(S3FileTransferRequestParamsDto params) throws InterruptedException
S3ServicedownloadFile in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix are for the source of the copy. The
local path is the local file name where the downloaded file will be copied into.InterruptedException - if any problems were encountered.public S3FileTransferResultsDto downloadDirectory(S3FileTransferRequestParamsDto params) throws InterruptedException
S3ServicedownloadDirectory in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix are for the source of the copy. The
local path is the local directory where the downloaded files will be copied into.InterruptedException - if any problems were encountered.Copyright © 2017. All rights reserved.