Package com.microsoft.azure.kusto.ingest
Class ResourceAlgorithms
- java.lang.Object
-
- com.microsoft.azure.kusto.ingest.ResourceAlgorithms
-
public class ResourceAlgorithms extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends ResourceWithSas<?>>
List<T>getShuffledResources(List<RankedStorageAccount> shuffledAccounts, List<T> resourceOfType)static voidpostToQueueWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager, AzureStorageClient azureStorageClient, IngestionBlobInfo blob)static <T> @NotNull List<T>roundRobinNestedList(@NotNull List<List<T>> validResources)static StringuploadLocalFileWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager, AzureStorageClient azureStorageClient, File file, String blobName, boolean shouldCompress)static StringuploadStreamToBlobWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager, AzureStorageClient azureStorageClient, InputStream stream, String blobName, boolean shouldCompress)
-
-
-
Method Detail
-
postToQueueWithRetries
public static void postToQueueWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager, AzureStorageClient azureStorageClient, IngestionBlobInfo blob) throws IngestionClientException, IngestionServiceException
-
uploadStreamToBlobWithRetries
public static String uploadStreamToBlobWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager, AzureStorageClient azureStorageClient, InputStream stream, String blobName, boolean shouldCompress) throws IngestionClientException, IngestionServiceException
-
uploadLocalFileWithRetries
public static String uploadLocalFileWithRetries(com.microsoft.azure.kusto.ingest.ResourceManager resourceManager, AzureStorageClient azureStorageClient, File file, String blobName, boolean shouldCompress) throws IngestionClientException, IngestionServiceException
-
roundRobinNestedList
@NotNull public static <T> @NotNull List<T> roundRobinNestedList(@NotNull @NotNull List<List<T>> validResources)
-
getShuffledResources
public static <T extends ResourceWithSas<?>> List<T> getShuffledResources(List<RankedStorageAccount> shuffledAccounts, List<T> resourceOfType)
-
-