java.lang.Object
org.apache.jackrabbit.oak.segment.azure.tool.ToolUtils

public class ToolUtils extends Object
Utility class for common stuff pertaining to tooling.
  • Method Details

    • 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, org.apache.jackrabbit.oak.segment.compaction.SegmentGCOptions.CompactorType compactorType) throws IOException, org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException
      Throws:
      IOException
      org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException
    • 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, org.apache.jackrabbit.oak.segment.compaction.SegmentGCOptions.CompactorType compactorType, int gcConcurrency) throws IOException, org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException
      Throws:
      IOException
      org.apache.jackrabbit.oak.segment.file.InvalidFileStoreVersionException
    • decorateWithCache

      public static org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence decorateWithCache(org.apache.jackrabbit.oak.segment.spi.persistence.SegmentNodeStorePersistence persistence, String persistentCachePath, Integer persistentCacheSize)
    • 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)
    • createAzurePersistence

      public static AzurePersistence createAzurePersistence(String path)
    • createAzurePersistence

      public static AzurePersistence createAzurePersistence(String path, Environment environment)
    • readRevisions

      public static List<String> readRevisions(String uri)
    • storeTypeFromPathOrUri

      public static ToolUtils.SegmentStoreType storeTypeFromPathOrUri(String pathOrUri)
    • storeDescription

      public static String storeDescription(ToolUtils.SegmentStoreType storeType, String pathOrUri)
    • printableStopwatch

      public static String printableStopwatch(org.apache.jackrabbit.oak.commons.time.Stopwatch s)
    • printMessage

      public static void printMessage(PrintWriter pw, String format, Object... arg)
    • fetchByteArray

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