Class AwsToolUtils
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.aws.tool.AwsToolUtils
-
public class AwsToolUtils extends Object
Utility class for common stuff pertaining to tooling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AwsToolUtils.SegmentStoreType
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
fetchByteArray(Buffer buffer)
static FileStore
newFileStore(SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval)
static FileStore
newFileStore(SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, SegmentGCOptions.CompactorType compactorType, int gcConcurrency)
static SegmentNodeStorePersistence
newSegmentNodeStorePersistence(AwsToolUtils.SegmentStoreType storeType, String pathOrUri)
static String
printableStopwatch(org.apache.jackrabbit.guava.common.base.Stopwatch s)
static void
printMessage(PrintWriter pw, String format, Object... arg)
static String
storeDescription(AwsToolUtils.SegmentStoreType storeType, String pathOrUri)
static AwsToolUtils.SegmentStoreType
storeTypeFromPathOrUri(String pathOrUri)
-
-
-
Method Detail
-
newFileStore
public static FileStore newFileStore(SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval) 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
-
newSegmentNodeStorePersistence
public static SegmentNodeStorePersistence newSegmentNodeStorePersistence(AwsToolUtils.SegmentStoreType storeType, String pathOrUri) throws IOException
- Throws:
IOException
-
storeTypeFromPathOrUri
public static AwsToolUtils.SegmentStoreType storeTypeFromPathOrUri(String pathOrUri)
-
storeDescription
public static String storeDescription(AwsToolUtils.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
-
-