Class ProcessBuilderJvm
java.lang.Object
org.aksw.shellgebra.processbuilder.ProcessBuilderCore<ProcessBuilderJvm>
org.aksw.shellgebra.processbuilder.ProcessBuilderBase<ProcessBuilderJvm>
org.aksw.vshell.registry.ProcessBuilderJvm
- All Implemented Interfaces:
Cloneable, IProcessBuilder<ProcessBuilderJvm>, IProcessBuilderCore<ProcessBuilderJvm>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the configured command will read from stdin.protected ProcessBuilderJvmstatic ProcessBuilderJvmstatic ProcessBuilderJvmprotected static ClosePolicyWrapper<FileInput> resolveInputRedirect(FileInput defaultSource, JRedirect redirect) protected static ClosePolicyWrapper<FileOutput> resolveOutputRedirect(FileOutput defaultTarget, JRedirect redirect) start(ProcessRunner executor) booleanWhether the process builder can read from anonymous pipes.booleanWhether the process builder can write to an anonymous pipe.booleanWhether a named pipe can be used with the process builder without risking blocking due to multiple connections being made to it.Methods inherited from class ProcessBuilderBase
applySettings, clone, command, command, commandMethods inherited from class ProcessBuilderCore
applySettings, directory, directory, environment, redirectError, redirectError, redirectErrorStream, redirectErrorStream, redirectInput, redirectInput, redirectOutput, redirectOutput, selfMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IProcessBuilderCore
directory, directory, environment, redirectError, redirectError, redirectErrorStream, redirectErrorStream, redirectInput, redirectInput, redirectOutput, redirectOutput
-
Constructor Details
-
ProcessBuilderJvm
public ProcessBuilderJvm()
-
-
Method Details
-
of
-
of
-
supportsAnonPipeRead
public boolean supportsAnonPipeRead()Description copied from interface:IProcessBuilderCoreWhether the process builder can read from anonymous pipes. Docker containers can only bind-mount named pipes but not anonymous pipes. When building pipelines, this flag is used to avoid needless intermediate anon pipes where named ones can be used directly. For pipelines, this is the value of the first process builder. -
supportsAnonPipeWrite
public boolean supportsAnonPipeWrite()Description copied from interface:IProcessBuilderCoreWhether the process builder can write to an anonymous pipe. Docker containers can only bind-mount named pipes but not anonymous pipes. When building pipelines, this flag is used to avoid needless intermediate anon pipes where named ones can be used directly. For pipelines, this is the value of the last process builder. -
supportsDirectNamedPipe
public boolean supportsDirectNamedPipe()Description copied from interface:IProcessBuilderCoreWhether a named pipe can be used with the process builder without risking blocking due to multiple connections being made to it. This method must only return true if only a single connection to that pipe will be openend. A process builder for host or docker may return true. But a group with two or more 'true-returning' members will return false. -
accessesStdIn
public boolean accessesStdIn()Description copied from interface:IProcessBuilderCoreWhether the configured command will read from stdin. Used to avoid generation of needless named or anon pipes such as in "echo foo | echo bar": where the second link does not read the data from the prior link. -
resolveInputRedirect
protected static ClosePolicyWrapper<FileInput> resolveInputRedirect(FileInput defaultSource, JRedirect redirect) throws FileNotFoundException - Throws:
FileNotFoundException
-
resolveOutputRedirect
protected static ClosePolicyWrapper<FileOutput> resolveOutputRedirect(FileOutput defaultTarget, JRedirect redirect) throws FileNotFoundException - Throws:
FileNotFoundException
-
start
- Throws:
IOException
-
cloneActual
- Specified by:
cloneActualin classProcessBuilderCore<ProcessBuilderJvm>
-