Class AwsToolUtils


  • public class AwsToolUtils
    extends java.lang.Object
    Utility class for common stuff pertaining to tooling.
    • 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.IOException
        org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException
        java.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
      • 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