Class FileWriterTaskFromContainer
java.lang.Object
org.aksw.shellgebra.exec.stage.FileWriterTaskBase
org.aksw.shellgebra.exec.stage.FileWriterTaskFromContainer
- All Implemented Interfaces:
AutoCloseable, FileWriterTask
-
Nested Class Summary
Nested classes/interfaces inherited from class FileWriterTaskBase
FileWriterTaskBase.TaskState -
Field Summary
Fields inherited from class FileWriterTaskBase
isAbortCalled, outputPath, pathLifeCycle, state -
Constructor Summary
ConstructorsConstructorDescriptionFileWriterTaskFromContainer(org.testcontainers.containers.GenericContainer<?> container, Path path, PathLifeCycle pathLifeCycle, List<FileWriterTask> subTasks) -
Method Summary
Methods inherited from class FileWriterTaskBase
checkIfAbortHasBeenCalled, checkIfNew, getOutputPath, getState, isFinished, isStarted
-
Constructor Details
-
FileWriterTaskFromContainer
public FileWriterTaskFromContainer(org.testcontainers.containers.GenericContainer<?> container, Path path, PathLifeCycle pathLifeCycle, List<FileWriterTask> subTasks)
-
-
Method Details
-
prepareWriteFile
Description copied from class:FileWriterTaskBaseMethod that allows for setting up resources in an atomic way. STARTING.- Specified by:
prepareWriteFilein classFileWriterTaskBase- Throws:
IOException
-
runWriteFile
- Specified by:
runWriteFilein classFileWriterTaskBase- Throws:
IOException
-
start
public void start() -
close
-
onCompletion
Description copied from class:FileWriterTaskBaseCalled on completion - regardless whether successful or not. Only called if prepareWriteFile has been called before. (doWriteFile may not have been called).- Specified by:
onCompletionin classFileWriterTaskBase- Throws:
IOException
-
waitForCompletion
- Specified by:
waitForCompletionin interfaceFileWriterTask- Specified by:
waitForCompletionin classFileWriterTaskBase- Throws:
ExecutionExceptionInterruptedException
-
abort
public void abort()- Specified by:
abortin interfaceFileWriterTask- Specified by:
abortin classFileWriterTaskBase
-