package jetbrains.mps.debugger.java.api.settings;

/*Generated by MPS */

import jetbrains.mps.annotations.GeneratedClass;

@GeneratedClass(node = "r:4032b78d-911f-4395-b88c-ccb50cb24300(jetbrains.mps.debugger.java.api.settings)/3432969378036013784", model = "r:4032b78d-911f-4395-b88c-ccb50cb24300(jetbrains.mps.debugger.java.api.settings)")
public class RemoteConnectionSettings extends DebugConnectionSettings implements Cloneable {
  private boolean mySuspend = false;
  public RemoteConnectionSettings(String hostName, int port) {
    super(hostName, port);
  }
  public RemoteConnectionSettings() {
    super();
  }
  @Override
  public boolean isServerMode() {
    return false;
  }
  @Override
  public boolean isSuspend() {
    return mySuspend;
  }
  public void setSuspend(boolean suspend) {
    mySuspend = suspend;
  }
  @Override
  public RemoteConnectionSettings clone() throws CloneNotSupportedException {
    RemoteConnectionSettings connectionSettings = new RemoteConnectionSettings(getHostName(), getPort());
    connectionSettings.setSuspend(isSuspend());
    return connectionSettings;
  }
  public static String getClientCommandLine(boolean useSockets, int port) {
    return "-Xdebug " + DebugConnectionSettings.getCommandLine(true, useSockets, false, Integer.toString(port));
  }
}
