- java.lang.Object
-
- org.redkale.service.AbstractService
-
- org.redkale.boot.watch.AbstractWatchService
-
- org.redkale.boot.watch.ServiceWatchService
-
- 所有已实现的接口:
Service
,WatchService
@RestService(name="service", catalog="watch", repair=false) public class ServiceWatchService extends AbstractWatchService
详情见: https://redkale.org- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Application
application
static int
RET_SERVICE_DEST_NOT_EXISTS
-
从类继承的字段 org.redkale.boot.watch.AbstractWatchService
RET_WATCH_PARAMS_ILLEGAL, RET_WATCH_RUN_EXCEPTION
-
-
构造器概要
构造器 构造器 说明 ServiceWatchService()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 RetResult
find(String name, String type)
protected Object
findService(String name, String type)
RetResult
getField(String name, String type, String field)
RetResult
loadService(String type, byte[] jar)
RetResult
reloadService(String name, String type)
RetResult
runMethod(String name, String type, String method, List<String> params, List<String> paramtypes)
RetResult
setField(String name, String type, String field, String value)
RetResult
stopService(String name, String type)
-
从类继承的方法 org.redkale.service.AbstractService
getExecutor, runAsync, serviceName, serviceType
-
-
-
-
字段详细资料
-
RET_SERVICE_DEST_NOT_EXISTS
@Comment("\u6ca1\u6709\u627e\u5230\u76ee\u6807Service") public static final int RET_SERVICE_DEST_NOT_EXISTS
- 另请参阅:
- 常量字段值
-
application
protected Application application
-
-
方法详细资料
-
setField
@RestConvert(type=void.class) @RestMapping(name="setField", auth=false, comment="\u8bbe\u7f6eService\u4e2d\u6307\u5b9a\u5b57\u6bb5\u7684\u5185\u5bb9") public RetResult setField(@RestParam(name="name",comment="Service\u7684\u8d44\u6e90\u540d") String name, @RestParam(name="type",comment="Service\u7684\u7c7b\u540d") String type, @RestParam(name="field",comment="\u5b57\u6bb5\u540d") String field, @RestParam(name="value",comment="\u5b57\u6bb5\u503c") String value)
-
getField
@RestConvert(type=void.class) @RestMapping(name="getField", auth=false, comment="\u67e5\u8be2Service\u4e2d\u6307\u5b9a\u5b57\u6bb5\u7684\u5185\u5bb9") public RetResult getField(@RestParam(name="name",comment="Service\u7684\u8d44\u6e90\u540d") String name, @RestParam(name="type",comment="Service\u7684\u7c7b\u540d") String type, @RestParam(name="field",comment="\u5b57\u6bb5\u540d") String field)
-
runMethod
@RestConvert(type=void.class) @RestMapping(name="runMethod", auth=false, comment="\u8c03\u7528Service\u4e2d\u6307\u5b9a\u65b9\u6cd5") public RetResult runMethod(@RestParam(name="name",comment="Service\u7684\u8d44\u6e90\u540d") String name, @RestParam(name="type",comment="Service\u7684\u7c7b\u540d") String type, @RestParam(name="method",comment="Service\u7684\u65b9\u6cd5\u540d") String method, @RestParam(name="params",comment="\u65b9\u6cd5\u7684\u53c2\u6570\u503c") List<String> params, @RestParam(name="paramtypes",comment="\u65b9\u6cd5\u7684\u53c2\u6570\u6570\u636e\u7c7b\u578b") List<String> paramtypes)
-
loadService
@RestMapping(name="loadService", auth=false, comment="\u52a8\u6001\u589e\u52a0Service") public RetResult loadService(@RestParam(name="type",comment="Service\u7684\u7c7b\u540d") String type, @RestUploadFile(maxLength=10485760L,fileNameRegex="\\.jar$") byte[] jar)
-
reloadService
@RestMapping(name="reloadService", auth=false, comment="\u91cd\u65b0\u52a0\u8f7dService") public RetResult reloadService(@RestParam(name="name",comment="Service\u7684\u8d44\u6e90\u540d") String name, @RestParam(name="type",comment="Service\u7684\u7c7b\u540d") String type)
-
stopService
@RestMapping(name="stopService", auth=false, comment="\u52a8\u6001\u505c\u6b62Service") public RetResult stopService(@RestParam(name="name",comment="Service\u7684\u8d44\u6e90\u540d") String name, @RestParam(name="type",comment="Service\u7684\u7c7b\u540d") String type)
-
find
@RestMapping(name="findService", auth=false, comment="\u67e5\u627eService") public RetResult find(@RestParam(name="name",comment="Service\u7684\u8d44\u6e90\u540d") String name, @RestParam(name="type",comment="Service\u7684\u7c7b\u540d") String type)
-
-