Class ToolUtils
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.azure.tool.ToolUtils
-
public class ToolUtils extends Object
Utility class for common stuff pertaining to tooling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ToolUtils.SegmentStoreType
-
Method Summary
-
-
-
Method Detail
-
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
public static SegmentArchiveManager createArchiveManager(SegmentNodeStorePersistence persistence)
-
createAzurePersistence
public static AzurePersistence createAzurePersistence(String path)
-
createAzurePersistence
public static AzurePersistence createAzurePersistence(String path, Environment environment)
-
storeTypeFromPathOrUri
public static ToolUtils.SegmentStoreType storeTypeFromPathOrUri(String pathOrUri)
-
storeDescription
public static String storeDescription(ToolUtils.SegmentStoreType storeType, String pathOrUri)
-
printableStopwatch
public static String printableStopwatch(org.apache.jackrabbit.guava.common.base.Stopwatch s)
-
printMessage
public static void printMessage(PrintWriter pw, String format, Object... arg)
-
fetchByteArray
public static byte[] fetchByteArray(Buffer buffer) throws IOException
- Throws:
IOException
-
-