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
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.