public class S3DataSegmentArchiver extends S3DataSegmentMover implements DataSegmentArchiver
| Constructor and Description |
|---|
S3DataSegmentArchiver(com.fasterxml.jackson.databind.ObjectMapper mapper,
org.jets3t.service.impl.rest.httpclient.RestS3Service s3Client,
S3DataSegmentArchiverConfig archiveConfig,
S3DataSegmentPusherConfig restoreConfig) |
| Modifier and Type | Method and Description |
|---|---|
DataSegment |
archive(DataSegment segment)
Perform an archive task on the segment and return the resulting segment or null if there was no action needed.
|
DataSegment |
restore(DataSegment segment)
Perform the restore from an archived segment and return the resulting segment or null if there was no action
|
move@Inject
public S3DataSegmentArchiver(com.fasterxml.jackson.databind.ObjectMapper mapper,
org.jets3t.service.impl.rest.httpclient.RestS3Service s3Client,
S3DataSegmentArchiverConfig archiveConfig,
S3DataSegmentPusherConfig restoreConfig)
public DataSegment archive(DataSegment segment) throws SegmentLoadingException
DataSegmentArchiverarchive in interface DataSegmentArchiversegment - The source segmentSegmentLoadingException - on errorpublic DataSegment restore(DataSegment segment) throws SegmentLoadingException
DataSegmentArchiverrestore in interface DataSegmentArchiversegment - The source (archived) segmentSegmentLoadingException - on errorCopyright © 2011–2017. All rights reserved.