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
DataSegmentArchiver
archive
in interface DataSegmentArchiver
segment
- The source segmentSegmentLoadingException
- on errorpublic DataSegment restore(DataSegment segment) throws SegmentLoadingException
DataSegmentArchiver
restore
in interface DataSegmentArchiver
segment
- The source (archived) segmentSegmentLoadingException
- on errorCopyright © 2011–2017. All rights reserved.