Class BoundStageDocker
java.lang.Object
org.aksw.shellgebra.exec.stage.BoundStageDocker
- All Implemented Interfaces:
BoundStage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<com.github.dockerjava.api.model.Bind> protected CmdOpprotected ContainerPathResolverprotected FileMapperprotected Stringprotected BoundStageprotected FileWriterTaskprotected String -
Constructor Summary
ConstructorsConstructorDescriptionBoundStageDocker(String imageRef, CmdOp cmdOp, FileMapper fileMapper, ContainerPathResolver containerPathResolver, FileWriterTask inputTask, BoundStage inputExecBuilder, Function<CmdOpVar, Stage> varResolver) -
Method Summary
Modifier and TypeMethodDescriptionexecToFile(Path hostPath, PathLifeCycle pathLifeCycle) protected FileWriterTaskexecToPathInternal(Path outPath, String outContainerPath, PathLifeCycle pathLifeCycle) execToRegularFile(Path hostPath) protected Stringprotected voidrunContainerWithInputStream(com.google.common.io.ByteSource byteSource, String lang) protected org.testcontainers.containers.GenericContainer<?> setupContainer(CmdOp cmdOp) com.google.common.io.ByteSource
-
Field Details
-
imageRef
-
cmdOp
-
varResolver
-
binds
-
workingDirectory
-
containerPathResolver
-
fileMapper
-
inputTask
-
inputExecBuilder
-
-
Constructor Details
-
BoundStageDocker
public BoundStageDocker(String imageRef, CmdOp cmdOp, FileMapper fileMapper, ContainerPathResolver containerPathResolver, FileWriterTask inputTask, BoundStage inputExecBuilder, Function<CmdOpVar, Stage> varResolver)
-
-
Method Details
-
getUserString
- Throws:
IOException
-
setupContainer
protected org.testcontainers.containers.GenericContainer<?> setupContainer(CmdOp cmdOp) throws IOException - Throws:
IOException
-
toByteSource
public com.google.common.io.ByteSource toByteSource()- Specified by:
toByteSourcein interfaceBoundStage
-
execToPathInternal
protected FileWriterTask execToPathInternal(Path outPath, String outContainerPath, PathLifeCycle pathLifeCycle) -
execToRegularFile
- Specified by:
execToRegularFilein interfaceBoundStage
-
execToFile
- Specified by:
execToFilein interfaceBoundStage
-
execToInputStream
- Throws:
IOException
-
runContainerWithInputStream
protected void runContainerWithInputStream(com.google.common.io.ByteSource byteSource, String lang) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
runToHostPipe
- Specified by:
runToHostPipein interfaceBoundStage
-