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 classAwsToolUtils.SegmentStoreType
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]fetchByteArray(Buffer buffer)static FileStorenewFileStore(SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval)static FileStorenewFileStore(SegmentNodeStorePersistence persistence, File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, SegmentGCOptions.CompactorType compactorType, int gcConcurrency)static SegmentNodeStorePersistencenewSegmentNodeStorePersistence(AwsToolUtils.SegmentStoreType storeType, String pathOrUri)static StringprintableStopwatch(Stopwatch s)static voidprintMessage(PrintWriter pw, String format, Object... arg)static StringstoreDescription(AwsToolUtils.SegmentStoreType storeType, String pathOrUri)static AwsToolUtils.SegmentStoreTypestoreTypeFromPathOrUri(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)
-
printMessage
public static void printMessage(PrintWriter pw, String format, Object... arg)
-
fetchByteArray
public static byte[] fetchByteArray(Buffer buffer) throws IOException
- Throws:
IOException
-
-