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 SegmentArchiveManager
createArchiveManager
(SegmentNodeStorePersistence persistence) static AzurePersistence
createAzurePersistence
(String path) static AzurePersistence
createAzurePersistence
(String path, Environment environment) static SegmentNodeStorePersistence
decorateWithCache
(SegmentNodeStorePersistence persistence, String persistentCachePath, Integer persistentCacheSize) static byte[]
fetchByteArray
(Buffer buffer) static FileStore
newFileStore
(SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, SegmentGCOptions.CompactorType compactorType) static FileStore
newFileStore
(SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, SegmentGCOptions.CompactorType compactorType, int gcConcurrency) static SegmentNodeStorePersistence
newSegmentNodeStorePersistence
(ToolUtils.SegmentStoreType storeType, String pathOrUri) static String
static void
printMessage
(PrintWriter pw, String format, Object... arg) readRevisions
(String uri) static String
storeDescription
(ToolUtils.SegmentStoreType storeType, String pathOrUri) static ToolUtils.SegmentStoreType
storeTypeFromPathOrUri
(String pathOrUri)
-
Method Details
-
newFileStore
public static FileStore newFileStore(SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, SegmentGCOptions.CompactorType compactorType) throws IOException, InvalidFileStoreVersionException -
newFileStore
public static FileStore newFileStore(SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, SegmentGCOptions.CompactorType compactorType, int gcConcurrency) throws IOException, InvalidFileStoreVersionException -
decorateWithCache
public static SegmentNodeStorePersistence decorateWithCache(SegmentNodeStorePersistence persistence, String persistentCachePath, Integer persistentCacheSize) -
newSegmentNodeStorePersistence
public static SegmentNodeStorePersistence newSegmentNodeStorePersistence(ToolUtils.SegmentStoreType storeType, String pathOrUri) -
createArchiveManager
-
createAzurePersistence
-
createAzurePersistence
-
readRevisions
-
storeTypeFromPathOrUri
-
storeDescription
-
printableStopwatch
-
printMessage
-
fetchByteArray
- Throws:
IOException
-