Interface ImportCoordinator
-
- All Known Implementing Classes:
CoordinatedImportCoordinator,ImportCompletionCoordinator
public interface ImportCoordinatorA coordinator conducts import. It is responsible to ensure that all bulk written data is imported into Cassandra cluster in the consistency safe way.ImportFailedExceptionis 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 voidawait()Wait indefinitely for the import operation to completeorg.apache.cassandra.spark.exception.ImportFailedExceptionfailure()Check whether the import operation has failed.booleansucceeded()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.ImportFailedExceptionWait indefinitely for the import operation to complete- Throws:
org.apache.cassandra.spark.exception.ImportFailedException- import failure if failed
-
-