Class ToolUtils
java.lang.Object
org.apache.jackrabbit.oak.segment.azure.tool.ToolUtils
Utility class for common stuff pertaining to tooling.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveManagercreateArchiveManager(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence) static AzurePersistencecreateAzurePersistence(String path) static AzurePersistencecreateAzurePersistence(String path, Environment environment) static org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistencedecorateWithCache(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence, String persistentCachePath, Integer persistentCacheSize) static byte[]fetchByteArray(org.apache.jackrabbit.oak.commons.Buffer buffer) static org.apache.jackrabbit.oak.segment.file.FileStorenewFileStore(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, org.apache.jackrabbit.oak.segment.compaction.SegmentGCOptions.CompactorType compactorType) static org.apache.jackrabbit.oak.segment.file.FileStorenewFileStore(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, org.apache.jackrabbit.oak.segment.compaction.SegmentGCOptions.CompactorType compactorType, int gcConcurrency) static org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistencenewSegmentNodeStorePersistence(ToolUtils.SegmentStoreType storeType, String pathOrUri) static StringprintableStopwatch(org.apache.jackrabbit.oak.commons.time.Stopwatch s) static voidprintMessage(PrintWriter pw, String format, Object... arg) readRevisions(String uri) static StringstoreDescription(ToolUtils.SegmentStoreType storeType, String pathOrUri) static ToolUtils.SegmentStoreTypestoreTypeFromPathOrUri(String pathOrUri)
-
Method Details
-
newFileStore
public static org.apache.jackrabbit.oak.segment.file.FileStore newFileStore(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, org.apache.jackrabbit.oak.segment.compaction.SegmentGCOptions.CompactorType compactorType) throws IOException, org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException - Throws:
IOExceptionorg.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException
-
newFileStore
public static org.apache.jackrabbit.oak.segment.file.FileStore newFileStore(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, org.apache.jackrabbit.oak.segment.compaction.SegmentGCOptions.CompactorType compactorType, int gcConcurrency) throws IOException, org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException - Throws:
IOExceptionorg.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException
-
decorateWithCache
-
newSegmentNodeStorePersistence
public static org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence newSegmentNodeStorePersistence(ToolUtils.SegmentStoreType storeType, String pathOrUri) -
createArchiveManager
public static org.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveManager createArchiveManager(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence) -
createAzurePersistence
-
createAzurePersistence
-
readRevisions
-
storeTypeFromPathOrUri
-
storeDescription
-
printableStopwatch
-
printMessage
-
fetchByteArray
public static byte[] fetchByteArray(org.apache.jackrabbit.oak.commons.Buffer buffer) throws IOException - Throws:
IOException
-