public abstract class AbstractTomcatCommander extends Object
| Constructor and Description |
|---|
AbstractTomcatCommander() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
exec(String command,
boolean close) |
abstract String |
execCmd(TomcatInfoModel tomcatInfoModel,
String cmd)
执行tomcat命令
|
static AbstractTomcatCommander |
getInstance() |
protected String |
getStatus(TomcatInfoModel tomcatInfoModel,
String cmd)
检查tomcat状态
|
public static AbstractTomcatCommander getInstance()
public abstract String execCmd(TomcatInfoModel tomcatInfoModel, String cmd)
tomcatInfoModel - tomcat信息cmd - 执行的命令,包括start stopprotected String getStatus(TomcatInfoModel tomcatInfoModel, String cmd)
tomcatInfoModel - tomcat信息cmd - 操作命令protected void exec(String command, boolean close)
Copyright © 2017–2022. All rights reserved.