Interface ImportCoordinator

  • All Known Implementing Classes:
    CoordinatedImportCoordinator, ImportCompletionCoordinator

    public interface ImportCoordinator
    A coordinator conducts import. It is responsible to ensure that all bulk written data is imported into Cassandra cluster in the consistency safe way. ImportFailedException is thrown upon import failure, due to various reasons like timeout, consistency level not satisfied, etc.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void await()
      Wait indefinitely for the import operation to complete
      org.apache.cassandra.spark.exception.ImportFailedException failure()
      Check whether the import operation has failed.
      boolean succeeded()
      Check whether the import operation has succeeded.
    • Method Detail

      • succeeded

        boolean succeeded()
        Check whether the import operation has succeeded. The method does not block.
        Returns:
        true if import has succeeded. When import is pending or failed, it returns false
      • failure

        @Nullable
        org.apache.cassandra.spark.exception.ImportFailedException failure()
        Check whether the import operation has failed. The method does not block.
        Returns:
        ImportFailedException if import has failed; null otherwise
      • await

        void await()
            throws org.apache.cassandra.spark.exception.ImportFailedException
        Wait indefinitely for the import operation to complete
        Throws:
        org.apache.cassandra.spark.exception.ImportFailedException - import failure if failed