From a3f2fab33f771f642b4be18493d544d5bbb45187 Mon Sep 17 00:00:00 2001 From: Alexander Koshevoy Date: Mon, 28 Sep 2015 20:29:43 +0300 Subject: [PATCH] PY-15476 State (either Running or Stopped) added to Docker machines combo --- .../com/intellij/remote/DockerMachineCommandException.java | 4 ++++ .../platform-impl/src/com/intellij/remote/DockerSupport.java | 3 +++ 2 files changed, 7 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/remote/DockerMachineCommandException.java b/platform/platform-impl/src/com/intellij/remote/DockerMachineCommandException.java index f317a22a47de..d6e73039dd6c 100644 --- a/platform/platform-impl/src/com/intellij/remote/DockerMachineCommandException.java +++ b/platform/platform-impl/src/com/intellij/remote/DockerMachineCommandException.java @@ -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() diff --git a/platform/platform-impl/src/com/intellij/remote/DockerSupport.java b/platform/platform-impl/src/com/intellij/remote/DockerSupport.java index 8224858e344e..bf29448669ec 100644 --- a/platform/platform-impl/src/com/intellij/remote/DockerSupport.java +++ b/platform/platform-impl/src/com/intellij/remote/DockerSupport.java @@ -48,6 +48,9 @@ public abstract class DockerSupport { @NotNull public abstract List getVMs() throws DockerMachineException, DockerMachineCommandException; + @NotNull + public abstract String getStatus(@NotNull String machineName); + @NotNull public abstract ConnectionInfo getConnectionInfo(@NotNull String machineName) throws DockerMachineException, DockerMachineCommandException;