Interface IDockerExec


public interface IDockerExec
Docker Exec Resource Object that represents a command being executed on the container.

Author:
James Davies
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the current/finished output of the command, will always return all the output
    long
    The exitcode of the command, or -1 if the command has not completed
    boolean
    Has the command finished
    boolean
    Equivlant to waitForExec(10000);
    boolean
    waitForExec(long timeout)
    Wait for the command to finish.
  • Method Details

    • waitForExec

      boolean waitForExec() throws DockerManagerException
      Equivlant to waitForExec(10000);
      Returns:
      - true if finished in time, false if not
      Throws:
      DockerManagerException
    • waitForExec

      boolean waitForExec(long timeout) throws DockerManagerException
      Wait for the command to finish.
      Parameters:
      timeout - - timeout in milliseconds
      Returns:
      - true if finished in time, false if not
      Throws:
      DockerManagerException
    • isFinished

      boolean isFinished()
      Has the command finished
      Returns:
      true if finished, false if not
    • getCurrentOutput

      String getCurrentOutput()
      Returns the current/finished output of the command, will always return all the output
      Returns:
      command output
    • getExitCode

      long getExitCode()
      The exitcode of the command, or -1 if the command has not completed
      Returns:
      exit code
    • getConnection

      HttpURLConnection getConnection()