com.github.ltsopensource.core.cmd.StatusCheckHttpCmd Maven / Gradle / Ivy
package com.github.ltsopensource.core.cmd;
import com.github.ltsopensource.cmd.HttpCmdProc;
import com.github.ltsopensource.cmd.HttpCmdRequest;
import com.github.ltsopensource.cmd.HttpCmdResponse;
import com.github.ltsopensource.core.cluster.Config;
/**
* 主要用于启动检测, 通过调用该命令检测是否启动成功
* @author Robert HG ([email protected]) on 3/10/16.
*/
public class StatusCheckHttpCmd implements HttpCmdProc {
private Config config;
public StatusCheckHttpCmd(Config config) {
this.config = config;
}
@Override
public String nodeIdentity() {
return config.getIdentity();
}
@Override
public String getCommand() {
return HttpCmdNames.HTTP_CMD_STATUS_CHECK;
}
@Override
public HttpCmdResponse execute(HttpCmdRequest request) throws Exception {
HttpCmdResponse response = new HttpCmdResponse();
response.setSuccess(true);
response.setMsg("ok");
return response;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy