PY-15476 State (either Running or Stopped) added to Docker machines combo

This commit is contained in:
Alexander Koshevoy
2015-09-28 20:29:43 +03:00
parent 11a8f5c9f6
commit a3f2fab33f
2 changed files with 7 additions and 0 deletions
@@ -27,6 +27,10 @@ public class DockerMachineCommandException extends RuntimeException {
super(buildErrorMessage(exitCode, stderr));
}
public DockerMachineCommandException(String message) {
super(message);
}
@NotNull
private static String buildErrorMessage(int exitCode, String stderr) {
StringBuilder sb = new StringBuilder()
@@ -48,6 +48,9 @@ public abstract class DockerSupport {
@NotNull
public abstract List<String> getVMs() throws DockerMachineException, DockerMachineCommandException;
@NotNull
public abstract String getStatus(@NotNull String machineName);
@NotNull
public abstract ConnectionInfo getConnectionInfo(@NotNull String machineName) throws DockerMachineException, DockerMachineCommandException;