Package org.aksw.shellgebra.exec
Class FileWriterTaskFromByteSource
java.lang.Object
org.aksw.shellgebra.exec.FileWriterTaskBase
org.aksw.shellgebra.exec.FileWriterTaskViaExecutor
org.aksw.shellgebra.exec.FileWriterTaskFromByteSource
- All Implemented Interfaces:
AutoCloseable,FileWriterTask
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aksw.shellgebra.exec.FileWriterTaskViaExecutor
FileWriterTaskViaExecutor.WorkerNested classes/interfaces inherited from class org.aksw.shellgebra.exec.FileWriterTaskBase
FileWriterTaskBase.PathLifeCycle, FileWriterTaskBase.TaskState -
Field Summary
FieldsFields inherited from class org.aksw.shellgebra.exec.FileWriterTaskViaExecutor
lockFields inherited from class org.aksw.shellgebra.exec.FileWriterTaskBase
isAbortCalled, outputPath, pathLifeCycle, state -
Constructor Summary
ConstructorsConstructorDescriptionFileWriterTaskFromByteSource(Path path, FileWriterTaskBase.PathLifeCycle pathLifeCycle, com.google.common.io.ByteSource byteSource) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidMethod that allows for setting up resources in an atomic way.protected voidMethods inherited from class org.aksw.shellgebra.exec.FileWriterTaskViaExecutor
abort, close, closeActual, onCompletion, start, toString, waitForCompletionMethods inherited from class org.aksw.shellgebra.exec.FileWriterTaskBase
checkIfAbortHasBeenCalled, checkIfNew, getOutputPath, getState, isFinished, isStarted
-
Field Details
-
byteSource
protected com.google.common.io.ByteSource byteSource
-
-
Constructor Details
-
FileWriterTaskFromByteSource
public FileWriterTaskFromByteSource(Path path, FileWriterTaskBase.PathLifeCycle pathLifeCycle, com.google.common.io.ByteSource byteSource)
-
-
Method Details
-
abortActual
protected void abortActual()- Specified by:
abortActualin classFileWriterTaskViaExecutor
-
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
-