public class ToolUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ToolUtils.SegmentStoreType |
Modifier and Type | Method and Description |
---|---|
static SegmentArchiveManager |
createArchiveManager(SegmentNodeStorePersistence persistence) |
static com.microsoft.azure.storage.blob.CloudBlobDirectory |
createCloudBlobDirectory(java.lang.String path) |
static com.microsoft.azure.storage.blob.CloudBlobDirectory |
createCloudBlobDirectory(java.lang.String path,
Environment environment) |
static byte[] |
fetchByteArray(Buffer buffer) |
static FileStore |
newFileStore(SegmentNodeStorePersistence persistence,
java.io.File directory,
boolean strictVersionCheck,
int segmentCacheSize,
long gcLogInterval,
SegmentGCOptions.CompactorType compactorType) |
static SegmentNodeStorePersistence |
newSegmentNodeStorePersistence(ToolUtils.SegmentStoreType storeType,
java.lang.String pathOrUri) |
static SegmentNodeStorePersistence |
newSegmentNodeStorePersistence(ToolUtils.SegmentStoreType storeType,
java.lang.String pathOrUri,
java.lang.String persistentCachePath,
java.lang.Integer persistentCacheSize) |
static java.lang.String |
printableStopwatch(Stopwatch s) |
static void |
printMessage(java.io.PrintWriter pw,
java.lang.String format,
java.lang.Object... arg) |
static java.lang.String |
storeDescription(ToolUtils.SegmentStoreType storeType,
java.lang.String pathOrUri) |
static ToolUtils.SegmentStoreType |
storeTypeFromPathOrUri(java.lang.String pathOrUri) |
public static FileStore newFileStore(SegmentNodeStorePersistence persistence, java.io.File directory, boolean strictVersionCheck, int segmentCacheSize, long gcLogInterval, SegmentGCOptions.CompactorType compactorType) throws java.io.IOException, InvalidFileStoreVersionException, java.net.URISyntaxException, com.microsoft.azure.storage.StorageException
java.io.IOException
InvalidFileStoreVersionException
java.net.URISyntaxException
com.microsoft.azure.storage.StorageException
public static SegmentNodeStorePersistence newSegmentNodeStorePersistence(ToolUtils.SegmentStoreType storeType, java.lang.String pathOrUri, java.lang.String persistentCachePath, java.lang.Integer persistentCacheSize)
public static SegmentNodeStorePersistence newSegmentNodeStorePersistence(ToolUtils.SegmentStoreType storeType, java.lang.String pathOrUri)
public static SegmentArchiveManager createArchiveManager(SegmentNodeStorePersistence persistence)
public static com.microsoft.azure.storage.blob.CloudBlobDirectory createCloudBlobDirectory(java.lang.String path)
public static com.microsoft.azure.storage.blob.CloudBlobDirectory createCloudBlobDirectory(java.lang.String path, Environment environment)
public static ToolUtils.SegmentStoreType storeTypeFromPathOrUri(java.lang.String pathOrUri)
public static java.lang.String storeDescription(ToolUtils.SegmentStoreType storeType, java.lang.String pathOrUri)
public static java.lang.String printableStopwatch(Stopwatch s)
public static void printMessage(java.io.PrintWriter pw, java.lang.String format, java.lang.Object... arg)
public static byte[] fetchByteArray(Buffer buffer) throws java.io.IOException
java.io.IOException
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.