- java.lang.Object
-
- org.redkale.service.AbstractService
-
- org.redkale.boot.watch.AbstractWatchService
-
- org.redkale.boot.watch.ServerWatchService
-
- 所有已实现的接口:
Service
,WatchService
@RestService(name="server", catalog="watch", repair=false) public class ServerWatchService extends AbstractWatchService
- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Application
application
static int
RET_SERVER_CHANGEPORT_ERROR
static int
RET_SERVER_NOT_EXISTS
-
从类继承的字段 org.redkale.boot.watch.AbstractWatchService
RET_WATCH_PARAMS_ILLEGAL, RET_WATCH_RUN_EXCEPTION
-
-
构造器概要
构造器 构造器 说明 ServerWatchService()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 RetResult
changeAddress(int oldport, String newhost, int newport)
RetResult
info(int port)
RetResult
infos()
-
从类继承的方法 org.redkale.service.AbstractService
getExecutor, runAsync, serviceName, serviceType
-
-
-
-
字段详细资料
-
RET_SERVER_NOT_EXISTS
@Comment("\u4e0d\u5b58\u5728\u7684Server\u8282\u70b9") public static final int RET_SERVER_NOT_EXISTS
- 另请参阅:
- 常量字段值
-
RET_SERVER_CHANGEPORT_ERROR
@Comment("\u66f4\u6539Server\u76d1\u542c\u5730\u5740\u7aef\u53e3\u5931\u8d25") public static final int RET_SERVER_CHANGEPORT_ERROR
- 另请参阅:
- 常量字段值
-
application
protected Application application
-
-
方法详细资料
-
info
@RestMapping(name="info", comment="\u5355\u4e2aServer\u4fe1\u606f\u67e5\u8be2") public RetResult info(@RestParam(name="#port:") int port)
-
infos
@RestMapping(name="infos", comment="Server\u4fe1\u606f\u67e5\u8be2") public RetResult infos()
-
changeAddress
@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:") String newhost, @RestParam(name="#newport:") int newport)
-
-