Class AzureSegmentArchiveWriter
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.azure.AzureSegmentArchiveWriter
-
- All Implemented Interfaces:
org.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter
public class AzureSegmentArchiveWriter extends Object implements org.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter
-
-
Constructor Summary
Constructors Constructor Description AzureSegmentArchiveWriter(com.microsoft.azure.storage.blob.CloudBlobDirectory archiveDirectory, org.apache.jackrabbit.oak.segment.spi.monitor.IOMonitor ioMonitor, org.apache.jackrabbit.oak.segment.spi.monitor.FileStoreMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleancontainsSegment(long msb, long lsb)voidflush()intgetEntryCount()longgetLength()StringgetName()booleanisCreated()org.apache.jackrabbit.oak.commons.BufferreadSegment(long msb, long lsb)voidwriteBinaryReferences(byte[] data)voidwriteGraph(byte[] data)voidwriteSegment(long msb, long lsb, byte[] data, int offset, int size, int generation, int fullGeneration, boolean compacted)
-
-
-
Method Detail
-
writeSegment
public void writeSegment(long msb, long lsb, byte[] data, int offset, int size, int generation, int fullGeneration, boolean compacted) throws IOException- Specified by:
writeSegmentin interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter- Throws:
IOException
-
readSegment
public org.apache.jackrabbit.oak.commons.Buffer readSegment(long msb, long lsb) throws IOException- Specified by:
readSegmentin interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter- Throws:
IOException
-
containsSegment
public boolean containsSegment(long msb, long lsb)- Specified by:
containsSegmentin interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter
-
writeGraph
public void writeGraph(byte[] data) throws IOException- Specified by:
writeGraphin interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter- Throws:
IOException
-
writeBinaryReferences
public void writeBinaryReferences(byte[] data) throws IOException- Specified by:
writeBinaryReferencesin interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter- Throws:
IOException
-
getLength
public long getLength()
- Specified by:
getLengthin interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter
-
getEntryCount
public int getEntryCount()
- Specified by:
getEntryCountin interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter
-
close
public void close() throws IOException- Specified by:
closein interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter- Throws:
IOException
-
isCreated
public boolean isCreated()
- Specified by:
isCreatedin interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveWriter
-
-