public class S3JobArchiverImpl extends java.lang.Object implements JobArchiver
JobArchiveService
for S3 destinations.Constructor and Description |
---|
S3JobArchiverImpl(S3ClientFactory s3ClientFactory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
archiveDirectory(@NotNull java.nio.file.Path directory,
@NotNull java.net.URI target)
Attempt to archive a directory located at
directory to the target . |
public S3JobArchiverImpl(S3ClientFactory s3ClientFactory)
s3ClientFactory
- The factory to use to get S3 client instances for a given S3 bucket.public boolean archiveDirectory(@NotNull @NotNull java.nio.file.Path directory, @NotNull @NotNull java.net.URI target) throws JobArchiveException
directory
to the target
. All existing data "under"
target
should be assumed to be overwritten/replaced.archiveDirectory
in interface JobArchiver
directory
- The directory to archivetarget
- The root of a writable location to archive to.false
if this implementation doesn't support archiving to target
. true
if does
support archiving to target
and the archival was successfulJobArchiveException
- If an exception happened during archival