Package dev.galasa.docker
Interface IDockerExec
public interface IDockerExec
Docker Exec Resource Object that represents a command being executed on the
container.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current/finished output of the command, will always return all the outputlong
The exitcode of the command, or -1 if the command has not completedboolean
Has the command finishedboolean
Equivlant to waitForExec(10000);boolean
waitForExec
(long timeout) Wait for the command to finish.
-
Method Details
-
waitForExec
Equivlant to waitForExec(10000);- Returns:
- - true if finished in time, false if not
- Throws:
DockerManagerException
-
waitForExec
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()
-