Klasse CommandLineExecutor

java.lang.Object
org.teamapps.media.exec.CommandLineExecutor

public class CommandLineExecutor extends Object
  • Konstruktordetails

    • CommandLineExecutor

      public CommandLineExecutor(ExternalResource resource)
    • CommandLineExecutor

      public CommandLineExecutor(File workingDirectory, ExternalResource resource)
    • CommandLineExecutor

      public CommandLineExecutor(String binaryPath)
  • Methodendetails

    • executeCommand

      public boolean executeCommand(String commandArgs, int maxRuntimeInSeconds, boolean showLogs)
    • executeCommand

      public boolean executeCommand(int maxRuntimeInSeconds, boolean showLogs, String... commandArgs)
    • executeCommand

      public boolean executeCommand(String commandArgs, int maxRuntimeInSeconds, StringBuilder info, StringBuilder error)
    • executeCommandAsync

      public CompletableFuture<Void> executeCommandAsync(String commandArgs, int maxRuntimeInSeconds)
    • 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

      public CompletableFuture<File> executeCommandAsync(String commandArgs, File path, String partOfResultFileName, boolean expectFileWithContent, int maxRuntimeInSeconds, Executor executor)
    • showLogs

      public void showLogs(InputStream is, boolean errorLog)
    • createWorkingDir

      public File createWorkingDir(File workingDirectory)
    • getWorkingDirectory

      public File getWorkingDirectory()
    • getWorkingPath

      public String getWorkingPath()
    • getBinaryPath

      public String getBinaryPath()
    • getNextFileName

      public String getNextFileName(String name, String suffix)