PY-15476 State (either Running or Stopped) added to Docker machines combo
authorAlexander Koshevoy <Alexander.Koshevoy@jetbrains.com>
Mon, 28 Sep 2015 17:29:43 +0000 (20:29 +0300)
committerAlexander Koshevoy <Alexander.Koshevoy@jetbrains.com>
Mon, 28 Sep 2015 17:29:43 +0000 (20:29 +0300)
platform/platform-impl/src/com/intellij/remote/DockerMachineCommandException.java
platform/platform-impl/src/com/intellij/remote/DockerSupport.java

index f317a22a47de0538cdd2ac664b163a2682fd2813..d6e73039dd6c0d63ec901017d7288e118424d883 100644 (file)
@@ -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()
index 8224858e344e816e56996002124b8a0081a3ca7f..bf29448669ecc6d9e3841ec18bab37297f4daf25 100644 (file)
@@ -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;