@RestService(name="server", catalog="watch", repair=false) public class ServerWatchService extends AbstractWatchService
限定符和类型 | 字段和说明 |
---|---|
protected Application |
application |
static int |
RET_SERVER_CHANGEPORT_ERROR |
static int |
RET_SERVER_NOT_EXISTS |
RET_WATCH_PARAMS_ILLEGAL, RET_WATCH_RUN_EXCEPTION
构造器和说明 |
---|
ServerWatchService() |
限定符和类型 | 方法和说明 |
---|---|
RetResult |
changeAddress(int oldport,
java.lang.String newhost,
int newport) |
RetResult |
info(int port) |
RetResult |
infos() |
getExecutor, runAsync
@Comment(value="\u4e0d\u5b58\u5728\u7684Server\u8282\u70b9") public static final int RET_SERVER_NOT_EXISTS
@Comment(value="\u66f4\u6539Server\u76d1\u542c\u5730\u5740\u7aef\u53e3\u5931\u8d25") public static final int RET_SERVER_CHANGEPORT_ERROR
protected Application application
@RestMapping(name="info", comment="\u5355\u4e2aServer\u4fe1\u606f\u67e5\u8be2") public RetResult info(@RestParam(name="#port:") int port)
@RestMapping(name="infos", comment="Server\u4fe1\u606f\u67e5\u8be2") public RetResult infos()
@RestMapping(name="changeaddress", comment="\u66f4\u6539Server\u7684\u76d1\u542c\u5730\u5740\u548c\u7aef\u53e3") public RetResult changeAddress(@RestParam(name="#port:") int oldport, @RestParam(name="#newhost:") java.lang.String newhost, @RestParam(name="#newport:") int newport)