Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
75752602
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1435
Star
162
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
75752602
编写于
11月 18, 2018
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
redis服务器配置信息查看完成
上级
3c7b7a08
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
132 addition
and
2 deletion
+132
-2
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysRedisMonitorServiceImpl.java
...ye/authority/service/impl/SysRedisMonitorServiceImpl.java
+1
-0
skyeye-service/src/main/java/com/skyeye/jedis/impl/JedisClientCluster.java
...c/main/java/com/skyeye/jedis/impl/JedisClientCluster.java
+1
-2
skyeye-web/src/main/webapp/assets/lib/winui/css/winui.css
skyeye-web/src/main/webapp/assets/lib/winui/css/winui.css
+24
-0
skyeye-web/src/main/webapp/js/sysredis/redismonitorlist.js
skyeye-web/src/main/webapp/js/sysredis/redismonitorlist.js
+33
-0
skyeye-web/src/main/webapp/tpl/sysredis/redisTemplate.tpl
skyeye-web/src/main/webapp/tpl/sysredis/redisTemplate.tpl
+23
-0
skyeye-web/src/main/webapp/tpl/sysredis/redismonitorlist.html
...ye-web/src/main/webapp/tpl/sysredis/redismonitorlist.html
+50
-0
未找到文件。
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysRedisMonitorServiceImpl.java
浏览文件 @
75752602
...
...
@@ -41,6 +41,7 @@ public class SysRedisMonitorServiceImpl implements SysRedisMonitorService{
String
info
=
jedisClient
.
getRedisInfo
();
List
<
Map
<
String
,
Object
>>
beans
=
JSONArray
.
fromObject
(
info
);
outputObject
.
setBeans
(
beans
);
outputObject
.
settotal
(
beans
.
size
());
}
/**
...
...
skyeye-service/src/main/java/com/skyeye/jedis/impl/JedisClientCluster.java
浏览文件 @
75752602
...
...
@@ -118,6 +118,7 @@ public class JedisClientCluster implements JedisClient, JedisClientClusterServic
Client
client
=
jedis
.
getClient
();
client
.
info
();
String
info
=
client
.
getBulkReply
();
jedis
.
close
();
List
<
Map
<
String
,
Object
>>
ridList
=
new
ArrayList
<>();
Map
<
String
,
Object
>
redisMation
=
new
HashMap
<>();
String
[]
strs
=
info
.
split
(
"\n"
);
...
...
@@ -140,8 +141,6 @@ public class JedisClientCluster implements JedisClient, JedisClientClusterServic
}
return
JSONArray
.
fromObject
(
ridMationList
).
toString
();
}
finally
{
// 返还到连接池
jedis
.
close
();
}
}
...
...
skyeye-web/src/main/webapp/assets/lib/winui/css/winui.css
浏览文件 @
75752602
...
...
@@ -3008,6 +3008,11 @@ body .layer-ext-winconfirm {
align-items
:
Center
;
}
.padding-l-r-10
{
padding-left
:
10px
;
padding-right
:
10px
;
}
/* 样式1 */
.iphone
{
box-shadow
:
inset
0
0
3px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
0
0
1px
#999
,
0
0
30px
0px
rgba
(
0
,
0
,
0
,
0.7
);
...
...
@@ -3192,6 +3197,25 @@ body .layer-ext-winconfirm {
/*** 小程序页面管理end ***/
/*** 带滚动条的表格end ***/
.custom-table
tbody
{
display
:
block
;
height
:
400px
;
overflow-y
:
scroll
;
overflow-x
:
hidden
;
}
.custom-table
thead
,
tbody
tr
{
display
:
table
;
width
:
100%
;
table-layout
:
fixed
;
}
.custom-table
thead
{
width
:
calc
(
100%
-
0.5em
);
}
/*** 带滚动条的表格end ***/
/*** 代码生成器样式start ***/
.cm-s-eclipse
{
height
:
100%
!important
;}
.cm-s-eclipse
span
.cm-meta
{
color
:
#FF1717
;
}
...
...
skyeye-web/src/main/webapp/js/sysredis/redismonitorlist.js
0 → 100644
浏览文件 @
75752602
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
define
([
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
initRedieInfoMation
();
//redis服务器配置信息
function
initRedieInfoMation
(){
showGrid
({
id
:
"
bar
"
,
url
:
reqBasePath
+
"
redis001
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/sysredis/redisTemplate.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){},
ajaxSendAfter
:
function
(
json
){
$
(
"
#bar tbody
"
).
scroll
(
function
(){
$
(
"
#bar tbody
"
).
scrollTop
(
$
(
this
).
scrollTop
());
});
}
});
}
exports
(
'
redismonitorlist
'
,
{});
});
skyeye-web/src/main/webapp/tpl/sysredis/redisTemplate.tpl
0 → 100644
浏览文件 @
75752602
{{
#
each
rows
}}
<div
class=
"layui-col-xs6 padding-l-r-10"
>
<fieldset
class=
"layui-elem-field layui-field-title"
style=
"margin-top: 20px;"
>
<legend>
{
{
ip
}
}
</legend>
</fieldset>
<table
class=
"layui-table custom-table"
>
<thead>
<tr>
<th>
键
</th>
<th>
值
</th>
</tr>
</thead>
<tbody>
{
{
#
each
mation
}
}
<tr>
<td>
{
{
key
}
}
</td>
<td>
{
{
value
}
}
</td>
</tr>
{
{/
each
}
}
</tbody>
</table>
</div>
{
{/
each
}
}
\ No newline at end of file
skyeye-web/src/main/webapp/tpl/sysredis/redismonitorlist.html
0 → 100644
浏览文件 @
75752602
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/font-awesome-4.7.0/css/font-awesome.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"winui-tab"
lay-filter=
"winuitab"
style=
"height:100%"
>
<div
class=
"winui-tab-left"
>
<div
class=
"winui-tab-title"
>
Redis服务器信息
</div>
<div
class=
"winui-scroll-y"
style=
"height:auto;position:absolute;top:50px;bottom:0;"
>
<ul
class=
"winui-tab-nav"
>
<li
class=
"winui-this"
><i
class=
"fa fa-bar-chart fa-fw"
></i>
redis服务器信息
</li>
<li><i
class=
"fa fa-line-chart fa-fw"
></i>
Line
</li>
<li><i
class=
"fa fa-area-chart fa-fw"
></i>
Area
</li>
<li><i
class=
"fa fa-pie-chart fa-fw"
></i>
Pie
</li>
</ul>
</div>
</div>
<div
class=
"winui-tab-right"
>
<div
class=
"winui-scroll-y"
>
<div
class=
"winui-tab-content"
>
<div
class=
"winui-tab-item layui-show"
>
<div
id=
"bar"
style=
"width:100%;height:100%;"
>
</div>
</div>
<div
class=
"winui-tab-item"
>
<div
id=
"line"
style=
"width:100%;height:100%;"
>
2
</div>
</div>
<div
class=
"winui-tab-item"
>
<div
id=
"area"
style=
"width:100%;height:100%;"
>
3
</div>
</div>
<div
class=
"winui-tab-item"
>
<div
id=
"pie"
style=
"width:100%;height:100%;"
>
4
</div>
</div>
</div>
</div>
</div>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/sysredis/
'
}).
use
(
'
redismonitorlist
'
);
</script>
</body>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录