-
Notifications
You must be signed in to change notification settings - Fork 2
6.Radar开发指南
lorgine edited this page Oct 9, 2018
·
1 revision
本文档介绍了如何在本地使用IDE编译、运行Radar,从而可以帮助大家了解Radar的内在运行机制,同时也为自定义开发做好准备。

还有一些其他的项目,属于附加测试的,不一一介绍。
- Java: 1.8+
- MySQL: 5.6.5+
- Maven
- IDE: 没有特殊要求
准备好数据库,参考快速启动1.6 创建数据库
,1.7 配置数据库连接信息
。
配置完数据库后,主要是设置vm 参数。
下面以eclipse为例,Intellij 请参考vm设置。注意eclipse 最好安装springboot 插件。如下图所示:
安装成功后,点击
然后会在eclipse下方显示项目信息如下图:
右键点击radar-rest,单击 Debug Configurations
如下图所示
然后弹出对话框,注意要选中左边的radar-rest 项目,然后设置对应的环境参数,如下图所示:
然后就可以点击
中的项目启动了。
启动设置跟radar-rest一样,不单独描述。
status
URL | Method | remark
- | :-: | :- /app/stat | get| 获取应用、集群、实例的数量 /app/cache1 | get | 获取所有的应用(测试用接口) /app/cache | get | 统计在线和下线实例的数量(也可指定AppId) /app/trace | get | 保存状态变更的信息
pub
URL | Method | remark |
---|---|---|
/api/pub/app/instance/add | post | 注册实例 |
/api/pub/app/instance/adjust | post | 拉入拉出 |
/api/pub/app/instance/adjustSupperStatus | post | 调节超级槽位 |
/api/pub/app/instance/getstatus | post | 获取实例状态 |
/api/pub/app/instance/pubdel | post | 删除实例 |
client
URL | Method | remark |
---|---|---|
/api/client/app/getAppPollingCount | get | 正在拉取应用信息的请求数量 |
/api/client/app/getApp | post | 获取应用信息 |
/api/client/app/getAppMeta | post | 获取应用的Meta信息 |
/api/client/app/updateVersion | post | 更新应用的版本信息 |
/api/client/app/getAppPolling | post | 获取最新的应用信息,没有则等待 |
/api/client/app/registerClient | post | 注册客户端信息 |
/api/client/app/instance/registerInstanceCount | get | 获取注册的请求数量 |
/api/client/app/instance/heartbeat | post | 实例心跳 |
/api/client/app/instance/registerInstance | post | 注册实例 |
/api/client/app/instance/deRegisterInstance | post | 下线实例 |
启动radar-ui之后,具体请参照界面操作指南
应用列表