Class CassandraJobInfo

  • All Implemented Interfaces:
    JobInfo

    public class CassandraJobInfo
    extends java.lang.Object
    implements JobInfo
    • Constructor Detail

      • CassandraJobInfo

        public CassandraJobInfo​(BroadcastableJobInfo broadcastable)
        Reconstruct from BroadcastableJobInfo on executor. Reuses conf and restoreJobIds from broadcast, and reconstructs TokenPartitioner from broadcastable partition mappings.
        Parameters:
        broadcastable - the broadcastable job info from broadcast
    • Method Detail

      • getLocalDC

        public java.lang.String getLocalDC()
        Specified by:
        getLocalDC in interface JobInfo
      • sstableDataSizeInMiB

        public int sstableDataSizeInMiB()
        Specified by:
        sstableDataSizeInMiB in interface JobInfo
        Returns:
        the max sstable data file size in mebibytes
      • getSkipClean

        public boolean getSkipClean()
        Specified by:
        getSkipClean in interface JobInfo
      • jobKeepAliveMinutes

        public int jobKeepAliveMinutes()
        Specified by:
        jobKeepAliveMinutes in interface JobInfo
        Returns:
        job keep alive time in minutes
      • effectiveSidecarPort

        public int effectiveSidecarPort()
        Specified by:
        effectiveSidecarPort in interface JobInfo
        Returns:
        sidecar service port
      • importCoordinatorTimeoutMultiplier

        public double importCoordinatorTimeoutMultiplier()
        Specified by:
        importCoordinatorTimeoutMultiplier in interface JobInfo
        Returns:
        multiplier to calculate the final timeout for import coordinator
      • getRestoreJobId

        public java.util.UUID getRestoreJobId()
        Description copied from interface: JobInfo
        return the identifier of the restore job created on Cassandra Sidecar
        Specified by:
        getRestoreJobId in interface JobInfo
        Returns:
        time-based uuid
      • getRestoreJobId

        public java.util.UUID getRestoreJobId​(@Nullable
                                              java.lang.String clusterId)
        Description copied from interface: JobInfo
        Returns the restore job identifier on Cassandra Sidecar of the cluster identified by the clusterId The method should be called in the coordinated write code path.
        Specified by:
        getRestoreJobId in interface JobInfo
        Parameters:
        clusterId - identifies the Cassandra cluster
        Returns:
        restore job identifier, a time-based uuid
      • getConfiguredJobId

        public java.lang.String getConfiguredJobId()
        Description copied from interface: JobInfo
        An optional unique identified supplied in spark configuration
        Specified by:
        getConfiguredJobId in interface JobInfo
        Returns:
        a id string or null
      • qualifiedTableName

        @NotNull
        public org.apache.cassandra.spark.data.QualifiedTableName qualifiedTableName()
        Specified by:
        qualifiedTableName in interface JobInfo