Interface CoordinatedCloudStorageDataTransferApiExtension
-
- All Known Implementing Classes:
CoordinatedCloudStorageDataTransferApi
public interface CoordinatedCloudStorageDataTransferApiExtensionAdditional APIs to support coordinated write
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateRestoreSliceFromExecutor(java.lang.String clusterId, o.a.c.sidecar.client.shaded.common.request.data.CreateSliceRequestPayload createSliceRequestPayload)Called from task level to create a restore slice.voidrestoreJobProgress(o.a.c.sidecar.client.shaded.common.data.RestoreJobProgressFetchPolicy fetchPolicy, java.util.function.Predicate<java.lang.String> clusterIdFilter, java.util.function.BiConsumer<java.lang.String,o.a.c.sidecar.client.shaded.common.response.data.RestoreJobProgressResponsePayload> progressHandler)Retrieve the restore job progress with the specified fetch policy and handle the progress response
-
-
-
Method Detail
-
createRestoreSliceFromExecutor
void createRestoreSliceFromExecutor(java.lang.String clusterId, o.a.c.sidecar.client.shaded.common.request.data.CreateSliceRequestPayload createSliceRequestPayload) throws org.apache.cassandra.spark.exception.SidecarApiCallExceptionCalled from task level to create a restore slice. The request retries until the slice is created (201) or retry has exhausted.- Parameters:
clusterId- identifier of the cluster to create slicecreateSliceRequestPayload- the payload to create the slice- Throws:
org.apache.cassandra.spark.exception.SidecarApiCallException- when an error occurs during the slice creation
-
restoreJobProgress
void restoreJobProgress(o.a.c.sidecar.client.shaded.common.data.RestoreJobProgressFetchPolicy fetchPolicy, java.util.function.Predicate<java.lang.String> clusterIdFilter, java.util.function.BiConsumer<java.lang.String,o.a.c.sidecar.client.shaded.common.response.data.RestoreJobProgressResponsePayload> progressHandler) throws org.apache.cassandra.spark.exception.SidecarApiCallExceptionRetrieve the restore job progress with the specified fetch policy and handle the progress responseThe API is invoked by Spark driver.
- Parameters:
fetchPolicy- determines how detailed is the fetched restore job progressclusterIdFilter- filter to determine whether a cluster should be skippedprogressHandler- handles restore job progress- Throws:
org.apache.cassandra.spark.exception.SidecarApiCallException- exception from calling sidecar API
-
-