Package org.aksw.shellgebra.exec
Class FileWriterTaskNoop
java.lang.Object
org.aksw.shellgebra.exec.FileWriterTaskBase
org.aksw.shellgebra.exec.FileWriterTaskNoop
- All Implemented Interfaces:
AutoCloseable,FileWriterTask
A file writer task that does nothing (it just 'serves' an existing file).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aksw.shellgebra.exec.FileWriterTaskBase
FileWriterTaskBase.PathLifeCycle, FileWriterTaskBase.TaskState -
Field Summary
Fields inherited from class org.aksw.shellgebra.exec.FileWriterTaskBase
isAbortCalled, outputPath, pathLifeCycle, state -
Constructor Summary
ConstructorsConstructorDescriptionFileWriterTaskNoop(Path path) FileWriterTaskNoop(Path path, FileWriterTaskBase.PathLifeCycle pathLifeCycle) -
Method Summary
Methods inherited from class org.aksw.shellgebra.exec.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
- Throws:
Exception
-
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
-