|
|
|
@ -67,6 +67,9 @@ public class Bootstrap {
|
|
|
|
|
*/
|
|
|
|
|
private Long sessionTimeout;
|
|
|
|
|
|
|
|
|
|
private Integer height = null;
|
|
|
|
|
private Integer width = null;
|
|
|
|
|
|
|
|
|
|
private boolean verbose = false;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -188,6 +191,18 @@ public class Bootstrap {
|
|
|
|
|
this.batchFile = batchFile;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Option(longName = "height")
|
|
|
|
|
@Description("arthas-client terminal height")
|
|
|
|
|
public void setHeight(int height) {
|
|
|
|
|
this.height = height;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Option(longName = "width")
|
|
|
|
|
@Description("arthas-client terminal width")
|
|
|
|
|
public void setWidth(int width) {
|
|
|
|
|
this.width = width;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Option(shortName = "v", longName = "verbose", flag = true)
|
|
|
|
|
@Description("Verbose, print debug info.")
|
|
|
|
|
public void setVerbose(boolean verbose) {
|
|
|
|
@ -448,6 +463,14 @@ public class Bootstrap {
|
|
|
|
|
telnetArgs.add("-f");
|
|
|
|
|
telnetArgs.add(bootstrap.getBatchFile());
|
|
|
|
|
}
|
|
|
|
|
if (bootstrap.getHeight() != null) {
|
|
|
|
|
telnetArgs.add("--height");
|
|
|
|
|
telnetArgs.add("" + bootstrap.getHeight());
|
|
|
|
|
}
|
|
|
|
|
if (bootstrap.getWidth() != null) {
|
|
|
|
|
telnetArgs.add("--width");
|
|
|
|
|
telnetArgs.add("" + bootstrap.getWidth());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// telnet port ,ip
|
|
|
|
|
telnetArgs.add(bootstrap.getTargetIp());
|
|
|
|
@ -581,4 +604,12 @@ public class Bootstrap {
|
|
|
|
|
public boolean isVersions() {
|
|
|
|
|
return versions;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getHeight() {
|
|
|
|
|
return height;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getWidth() {
|
|
|
|
|
return width;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|