public static class FileStore.ReadOnlyStore extends FileStore
FileStore
implementation that supports
going back to old revisions.
All write methods are no-ops.
FileStore.Builder, FileStore.ReadOnlyStore
Constructor and Description |
---|
FileStore.ReadOnlyStore(File directory) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
no-op
|
void |
flush()
no-op
|
void |
gc()
no-op
|
boolean |
setHead(SegmentNodeState base,
SegmentNodeState head) |
void |
setRevision(String revision)
Go to the specified
revision |
void |
writeSegment(SegmentId id,
byte[] data,
int offset,
int length)
no-op
|
close, compact, containsSegment, getBlobStore, getHead, getSegmentIds, getTarGraph, getTarReaderIndex, getTracker, getVersion, maybeCompact, newFileStore, readBlob, readSegment, setCompactionStrategy, size
public FileStore.ReadOnlyStore(File directory) throws IOException
IOException
public void setRevision(String revision)
revision
revision
- public boolean setHead(SegmentNodeState base, SegmentNodeState head)
setHead
in interface SegmentStore
setHead
in class FileStore
public void writeSegment(SegmentId id, byte[] data, int offset, int length)
writeSegment
in interface SegmentStore
writeSegment
in class FileStore
id
- segment identifierdata
- byte buffer that contains the raw contents of the segmentoffset
- start offset within the byte bufferlength
- length of the segmentpublic void gc()
gc
in interface SegmentStore
gc
in class FileStore
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"