-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Queued Ingestion Client now supports retries (#308)
Co-authored-by: ohad bitton <[email protected]>
- Loading branch information
Showing
20 changed files
with
596 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
ingest/src/main/java/com/microsoft/azure/kusto/ingest/IngestionResourceManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.microsoft.azure.kusto.ingest; | ||
|
||
import com.microsoft.azure.kusto.ingest.exceptions.IngestionClientException; | ||
import com.microsoft.azure.kusto.ingest.exceptions.IngestionServiceException; | ||
import com.microsoft.azure.kusto.ingest.resources.ContainerWithSas; | ||
import com.microsoft.azure.kusto.ingest.resources.ResourceWithSas; | ||
|
||
import java.util.List; | ||
|
||
public interface IngestionResourceManager { | ||
|
||
/** | ||
* Returns a list of containers with SAS tokens, ranked by their ingestion success rate, and then shuffled. | ||
* You should use this method for each ingestion operation. | ||
* @return List of containers with SAS tokens, ranked by their ingestion success rate, and then shuffled. | ||
*/ | ||
List<ContainerWithSas> getShuffledContainers() throws IngestionClientException, IngestionServiceException; | ||
|
||
/** | ||
* Report the result of an ingestion operation. | ||
* @param resource The resource that was used to ingest. Can be a container or a queue. | ||
* @param success Whether the ingestion operation was successful. | ||
*/ | ||
void reportIngestionResult(ResourceWithSas<?> resource, boolean success); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.