Interface IProcessResponse

All Known Implementing Classes:
ProcessResponceImpl

public interface IProcessResponse

Provides IProcessConnection with a separate process or it's exit code if connection fails.

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an error code with which the process has exited if it has exited with error.
    Returns IProcessConnection instanc, or null if process has exited with error.
    boolean
    Returns true if connection with process was successfully established, false if it have exited with error.
  • Method Details

    • success

      boolean success()

      Returns true if connection with process was successfully established, false if it have exited with error.

      Returns:
      true if connection with process was successfully established, false if it have exited with error
    • getExitCode

      int getExitCode()

      Returns an error code with which the process has exited if it has exited with error. Otherwise throws IllegalStateException.

      Returns:
      an error code with which the process has exited
      Throws:
      IllegalStateException - if connection with process was successfully established
    • getProcessConnection

      IProcessConnection getProcessConnection()

      Returns IProcessConnection instanc, or null if process has exited with error.

      Returns:
      IProcessConnection instance, or null if the process has exited with error