类 CommandLauncherImpl

java.lang.Object
com.sh.common.exec.launcher.CommandLauncherImpl
所有已实现的接口:
CommandLauncher
直接已知子类:
CommandLauncherProxy, Java13CommandLauncher

public abstract class CommandLauncherImpl extends Object implements CommandLauncher
Description: Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
  • 构造器详细资料

    • CommandLauncherImpl

      public CommandLauncherImpl()
  • 方法详细资料

    • exec

      public Process exec(CommandLine cmd, Map env) throws IOException
      从接口复制的说明: CommandLauncher
      Launches the given command in a new process.
      指定者:
      exec 在接口中 CommandLauncher
      参数:
      cmd - The command to execute
      env - The environment for the new process. If null, the environment of the current process is used.
      返回:
      the newly created process
      抛出:
      IOException - if attempting to run a command in a specific directory
    • exec

      public abstract Process exec(CommandLine cmd, Map env, File workingDir) throws IOException
      从接口复制的说明: CommandLauncher
      Launches the given command in a new process, in the given working directory.
      指定者:
      exec 在接口中 CommandLauncher
      参数:
      cmd - The command to execute
      env - The environment for the new process. If null, the environment of the current process is used.
      workingDir - The directory to start the command in. If null, the current directory is used
      返回:
      the newly created process
      抛出:
      IOException - if trying to change directory
    • isFailure

      public boolean isFailure(int exitValue)
      从接口复制的说明: CommandLauncher
      Checks whether exitValue signals a failure on the current system (OS specific).

      Note that this method relies on the conventions of the OS, it will return false results if the application you are running doesn't follow these conventions. One notable exception is the Java VM provided by HP for OpenVMS - it will return 0 if successful (like on any other platform), but this signals a failure on OpenVMS. So if you execute a new Java VM on OpenVMS, you cannot trust this method.

      指定者:
      isFailure 在接口中 CommandLauncher
      参数:
      exitValue - the exit value (return code) to be checked
      返回:
      true if exitValue signals a failure
      另请参阅: