Package org.teamapps.media.exec
Klasse CommandLineExecutor
java.lang.Object
org.teamapps.media.exec.CommandLineExecutor
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCommandLineExecutor(File workingDirectory, ExternalResource resource) CommandLineExecutor(String binaryPath) CommandLineExecutor(ExternalResource resource) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateWorkingDir(File workingDirectory) booleanexecuteCommand(int maxRuntimeInSeconds, boolean showLogs, String... commandArgs) booleanexecuteCommand(String commandArgs, int maxRuntimeInSeconds, boolean showLogs) booleanexecuteCommand(String commandArgs, int maxRuntimeInSeconds, StringBuilder info, StringBuilder error) executeCommandAsync(String commandArgs, int maxRuntimeInSeconds) executeCommandAsync(String commandArgs, int maxRuntimeInSeconds, Executor executor) executeCommandAsync(String commandArgs, File expectedResultFile, boolean expectFileWithContent, int maxRuntimeInSeconds, Executor executor) executeCommandAsync(String commandArgs, File path, String partOfResultFileName, boolean expectFileWithContent, int maxRuntimeInSeconds, Executor executor) getNextFileName(String name, String suffix) voidshowLogs(InputStream is, boolean errorLog)
-
Konstruktordetails
-
CommandLineExecutor
-
CommandLineExecutor
-
CommandLineExecutor
-
-
Methodendetails
-
executeCommand
-
executeCommand
-
executeCommand
public boolean executeCommand(String commandArgs, int maxRuntimeInSeconds, StringBuilder info, StringBuilder error) -
executeCommandAsync
-
executeCommandAsync
public CompletableFuture<Void> executeCommandAsync(String commandArgs, int maxRuntimeInSeconds, Executor executor) -
executeCommandAsync
public CompletableFuture<File> executeCommandAsync(String commandArgs, File expectedResultFile, boolean expectFileWithContent, int maxRuntimeInSeconds, Executor executor) -
executeCommandAsync
-
showLogs
-
createWorkingDir
-
getWorkingDirectory
-
getWorkingPath
-
getBinaryPath
-
getNextFileName
-