Package tv.hd3g.processlauncher
Class Exec
- java.lang.Object
-
- tv.hd3g.processlauncher.Exec
-
- All Implemented Interfaces:
ExecutableTool
public class Exec extends Object implements ExecutableTool
Shortcut for some classes Reusable
-
-
Constructor Summary
Constructors Constructor Description Exec(String execName, ExecutableFinder executableFinder)Exec(ExecutableTool tool, ExecutableFinder executableFinder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetExecutableFile()ExecutableFindergetExecutableFinder()StringgetExecutableName()See by ExecutableFinderParametersgetParameters()ParametersgetReadyToRunParameters()Map<String,String>getVarsToInject()booleanisRemoveParamsIfNoVarToInject()CapturedStdOutErrTextRetentionrunWaitGetText()BlockingCapturedStdOutErrTextRetentionrunWaitGetText(Consumer<ProcesslauncherBuilder> beforeRun)BlockingExecsetRemoveParamsIfNoVarToInject(boolean removeParamsIfNoVarToInject)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tv.hd3g.processlauncher.tool.ExecutableTool
beforeRun, filterOutErrorLines
-
-
-
-
Constructor Detail
-
Exec
public Exec(String execName, ExecutableFinder executableFinder) throws FileNotFoundException
- Throws:
FileNotFoundException
-
Exec
public Exec(ExecutableTool tool, ExecutableFinder executableFinder) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-
Method Detail
-
setRemoveParamsIfNoVarToInject
public Exec setRemoveParamsIfNoVarToInject(boolean removeParamsIfNoVarToInject)
-
isRemoveParamsIfNoVarToInject
public boolean isRemoveParamsIfNoVarToInject()
-
getParameters
public Parameters getParameters()
-
getReadyToRunParameters
public Parameters getReadyToRunParameters()
- Specified by:
getReadyToRunParametersin interfaceExecutableTool
-
getExecutableName
public String getExecutableName()
Description copied from interface:ExecutableToolSee by ExecutableFinder- Specified by:
getExecutableNamein interfaceExecutableTool
-
getExecutableFinder
public ExecutableFinder getExecutableFinder()
-
getExecutableFile
public File getExecutableFile() throws FileNotFoundException
- Throws:
FileNotFoundException
-
runWaitGetText
public CapturedStdOutErrTextRetention runWaitGetText() throws IOException
Blocking- Throws:
InvalidExecutionIOException
-
runWaitGetText
public CapturedStdOutErrTextRetention runWaitGetText(Consumer<ProcesslauncherBuilder> beforeRun) throws IOException
Blocking- Parameters:
beforeRun- can be null- Throws:
InvalidExecutionIOException
-
-