public class ResourceAlgorithms extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends ResourceWithSas<?>> |
getShuffledResources(List<RankedStorageAccount> shuffledAccounts,
List<T> resourceOfType) |
static void |
postToQueueWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager,
AzureStorageClient azureStorageClient,
IngestionBlobInfo blob) |
static <T> @NotNull List<T> |
roundRobinNestedList(@NotNull List<List<T>> validResources) |
static String |
uploadLocalFileWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager,
AzureStorageClient azureStorageClient,
File file,
String blobName,
boolean shouldCompress) |
static String |
uploadStreamToBlobWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager,
AzureStorageClient azureStorageClient,
InputStream stream,
String blobName,
boolean shouldCompress) |
public static void postToQueueWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager,
AzureStorageClient azureStorageClient,
IngestionBlobInfo blob)
throws IngestionClientException,
IngestionServiceException
public static String uploadStreamToBlobWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager, AzureStorageClient azureStorageClient, InputStream stream, String blobName, boolean shouldCompress) throws IngestionClientException, IngestionServiceException
public static String uploadLocalFileWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager, AzureStorageClient azureStorageClient, File file, String blobName, boolean shouldCompress) throws IngestionClientException, IngestionServiceException
@NotNull public static <T> @NotNull List<T> roundRobinNestedList(@NotNull @NotNull List<List<T>> validResources)
public static <T extends ResourceWithSas<?>> List<T> getShuffledResources(List<RankedStorageAccount> shuffledAccounts, List<T> resourceOfType)
Copyright © 2024. All rights reserved.