Class ToolUtils


  • public class ToolUtils
    extends 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,
                                                                                    File directory,
                                                                                    boolean strictVersionCheck,
                                                                                    int segmentCacheSize,
                                                                                    long gcLogInterval)
                                                                             throws IOException,
                                                                                    org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException,
                                                                                    URISyntaxException,
                                                                                    com.microsoft.azure.storage.StorageException
        Throws:
        IOException
        org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException
        URISyntaxException
        com.microsoft.azure.storage.StorageException
      • newSegmentNodeStorePersistence

        public static org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence newSegmentNodeStorePersistence​(ToolUtils.SegmentStoreType storeType,
                                                                                                                                   String pathOrUri)
      • createArchiveManager

        public static org.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveManager createArchiveManager​(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence)
      • createCloudBlobDirectory

        public static com.microsoft.azure.storage.blob.CloudBlobDirectory createCloudBlobDirectory​(String path)
      • printableStopwatch

        public static String printableStopwatch​(Stopwatch s)
      • fetchByteArray

        public static byte[] fetchByteArray​(org.apache.jackrabbit.oak.commons.Buffer buffer)
                                     throws IOException
        Throws:
        IOException