Class AwsToolUtils
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.aws.tool.AwsToolUtils
-
public class AwsToolUtils extends java.lang.ObjectUtility 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(org.apache.jackrabbit.oak.commons.Buffer buffer)static org.apache.jackrabbit.oak.segment.file.FileStorenewFileStore(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence, java.io.File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval)static org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistencenewSegmentNodeStorePersistence(AwsToolUtils.SegmentStoreType storeType, java.lang.String pathOrUri)static java.lang.StringprintableStopwatch(Stopwatch s)static voidprintMessage(java.io.PrintWriter pw, java.lang.String format, java.lang.Object... arg)static java.lang.StringstoreDescription(AwsToolUtils.SegmentStoreType storeType, java.lang.String pathOrUri)static AwsToolUtils.SegmentStoreTypestoreTypeFromPathOrUri(java.lang.String pathOrUri)
-
-
-
Method Detail
-
newFileStore
public static org.apache.jackrabbit.oak.segment.file.FileStore newFileStore(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence, java.io.File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval) throws java.io.IOException, org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException, java.net.URISyntaxException- Throws:
java.io.IOExceptionorg.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionExceptionjava.net.URISyntaxException
-
newSegmentNodeStorePersistence
public static org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence newSegmentNodeStorePersistence(AwsToolUtils.SegmentStoreType storeType, java.lang.String pathOrUri) throws java.io.IOException
- Throws:
java.io.IOException
-
storeTypeFromPathOrUri
public static AwsToolUtils.SegmentStoreType storeTypeFromPathOrUri(java.lang.String pathOrUri)
-
storeDescription
public static java.lang.String storeDescription(AwsToolUtils.SegmentStoreType storeType, java.lang.String pathOrUri)
-
printableStopwatch
public static java.lang.String printableStopwatch(Stopwatch s)
-
printMessage
public static void printMessage(java.io.PrintWriter pw, java.lang.String format, java.lang.Object... arg)
-
fetchByteArray
public static byte[] fetchByteArray(org.apache.jackrabbit.oak.commons.Buffer buffer) throws java.io.IOException- Throws:
java.io.IOException
-
-