Class FileWriterTaskNoop
java.lang.Object
org.aksw.shellgebra.exec.stage.FileWriterTaskBase
org.aksw.shellgebra.exec.stage.FileWriterTaskNoop
- All Implemented Interfaces:
AutoCloseable, FileWriterTask
A no-op file writer task that just serves an existing file.
-
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
ConstructorsConstructorDescriptionFileWriterTaskNoop(Path path) FileWriterTaskNoop(Path path, PathLifeCycle pathLifeCycle) -
Method Summary
Methods inherited from class FileWriterTaskBase
checkIfAbortHasBeenCalled, checkIfNew, getOutputPath, getState, isFinished, isStarted
-
Constructor Details
-
FileWriterTaskNoop
-
FileWriterTaskNoop
-
-
Method Details
-
start
public void start() -
abort
public void abort()- Specified by:
abortin interfaceFileWriterTask- Specified by:
abortin classFileWriterTaskBase
-
close
-
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
-
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
-
toString
-