| 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).
|
List<com.amazonaws.services.s3.model.S3VersionSummary> |
listVersions(S3FileTransferRequestParamsDto params)
Lists all S3 versions matching the S3 key prefix in the given bucket (S3 bucket name).
|
void |
restoreObjects(S3FileTransferRequestParamsDto params,
int expirationInDays,
String archiveRetrievalOption)
Requests to restore a list of keys in the specified bucket.
|
void |
tagObjects(S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto,
S3FileTransferRequestParamsDto s3ObjectTaggerParamsDto,
List<com.amazonaws.services.s3.model.S3ObjectSummary> s3ObjectSummaries,
com.amazonaws.services.s3.model.Tag tag)
Tags S3 objects with the specified S3 object tag.
|
void |
tagVersions(S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto,
S3FileTransferRequestParamsDto s3ObjectTaggerParamsDto,
List<com.amazonaws.services.s3.model.S3VersionSummary> s3VersionSummaries,
com.amazonaws.services.s3.model.Tag tag)
Tags S3 versions with the specified S3 object tag.
|
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 S3FileTransferResultsDto copyFile(S3FileCopyRequestParamsDto params)
throws InterruptedException
S3ServicecopyFile in interface S3Serviceparams - the S3 file copy request parameters.InterruptedException - if any problems were encountered.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 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 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 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.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 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 List<com.amazonaws.services.s3.model.S3VersionSummary> listVersions(S3FileTransferRequestParamsDto params)
S3ServicelistVersions in interface S3Serviceparams - the S3 file transfer request parameters. The S3 bucket name and S3 key prefix identify the S3 versions to get
listed.public void restoreObjects(S3FileTransferRequestParamsDto params,
int expirationInDays,
String archiveRetrievalOption)
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 expiresarchiveRetrievalOption - the archive retrieval option when restoring an archived objectpublic void tagObjects(S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto,
S3FileTransferRequestParamsDto s3ObjectTaggerParamsDto,
List<com.amazonaws.services.s3.model.S3ObjectSummary> s3ObjectSummaries,
com.amazonaws.services.s3.model.Tag tag)
S3ServicetagObjects in interface S3Services3FileTransferRequestParamsDto - the S3 file transfer request parameters. This set of parameters contains the S3 bucket names3ObjectTaggerParamsDto - the S3 file transfer request parameters to be used for tagging S3 objectss3ObjectSummaries - the list of S3 objects to be taggedtag - the S3 object tagpublic void tagVersions(S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto,
S3FileTransferRequestParamsDto s3ObjectTaggerParamsDto,
List<com.amazonaws.services.s3.model.S3VersionSummary> s3VersionSummaries,
com.amazonaws.services.s3.model.Tag tag)
S3ServicetagVersions in interface S3Services3FileTransferRequestParamsDto - the S3 file transfer request parameterss3ObjectTaggerParamsDto - the S3 file transfer request parameters to be used for tagging S3 objectss3VersionSummaries - the list of S3 versions to be taggedtag - the S3 object tagpublic 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 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 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 failsCopyright © 2019. All rights reserved.