public class OmniDataSegmentArchiver extends Object implements DataSegmentArchiver
Constructor and Description |
---|
OmniDataSegmentArchiver(Map<String,DataSegmentArchiver> archivers) |
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
|
@Inject public OmniDataSegmentArchiver(Map<String,DataSegmentArchiver> archivers)
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.