Interface CoordinatedCloudStorageDataTransferApiExtension

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void createRestoreSliceFromExecutor​(java.lang.String clusterId, o.a.c.sidecar.client.shaded.common.request.data.CreateSliceRequestPayload createSliceRequestPayload)
      Called from task level to create a restore slice.
      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)
      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.SidecarApiCallException
        Called 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 slice
        createSliceRequestPayload - 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.SidecarApiCallException
        Retrieve the restore job progress with the specified fetch policy and handle the progress response

        The API is invoked by Spark driver.

        Parameters:
        fetchPolicy - determines how detailed is the fetched restore job progress
        clusterIdFilter - filter to determine whether a cluster should be skipped
        progressHandler - handles restore job progress
        Throws:
        org.apache.cassandra.spark.exception.SidecarApiCallException - exception from calling sidecar API