Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦中观雨
cat
提交
c1990802
C
cat
项目概览
梦中观雨
/
cat
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c1990802
编写于
8月 27, 2013
作者:
Y
youyong205
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #135 from gaocogn/biz
history restore
上级
bd22fc99
4b7524ad
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
30 addition
and
35 deletion
+30
-35
biz
biz
+1
-0
cat-home/src/main/java/com/dianping/cat/report/page/bug/Handler.java
...c/main/java/com/dianping/cat/report/page/bug/Handler.java
+1
-0
cat-home/src/main/java/com/dianping/cat/report/service/impl/UtilizationReportService.java
...ing/cat/report/service/impl/UtilizationReportService.java
+0
-1
cat-home/src/main/webapp/jsp/report/utilization/detail.jsp
cat-home/src/main/webapp/jsp/report/utilization/detail.jsp
+0
-8
cat-home/src/main/webapp/jsp/report/utilization/utilizationHistory.jsp
...main/webapp/jsp/report/utilization/utilizationHistory.jsp
+26
-24
cat-home/src/test/java/com/dianping/cat/report/task/utilization/UtilizationBuilderTest.java
...g/cat/report/task/utilization/UtilizationBuilderTest.java
+2
-2
未找到文件。
biz
@
dbcbe7e1
Subproject commit dbcbe7e175f7bec0b0d123cdd75f3281bf444794
cat-home/src/main/java/com/dianping/cat/report/page/bug/Handler.java
浏览文件 @
c1990802
...
...
@@ -176,6 +176,7 @@ public class Handler implements PageHandler<Context> {
model
.
setUtilizationList
(
dUList
);
model
.
setUtilizationWebList
(
dUWebList
);
model
.
setUtilizationServiceList
(
dUServiceList
);
model
.
setUtilizationReport
(
utilizationReport
);
break
;
}
model
.
setPage
(
ReportPage
.
BUG
);
...
...
cat-home/src/main/java/com/dianping/cat/report/service/impl/UtilizationReportService.java
浏览文件 @
c1990802
...
...
@@ -56,7 +56,6 @@ public class UtilizationReportService extends AbstractReportService<UtilizationR
DailyReport
report
=
m_dailyReportDao
.
findByDomainNamePeriod
(
domain
,
name
,
new
Date
(
startTime
),
DailyReportEntity
.
READSET_FULL
);
String
xml
=
report
.
getContent
();
System
.
out
.
println
(
xml
);
UtilizationReport
reportModel
=
com
.
dianping
.
cat
.
home
.
utilization
.
transform
.
DefaultSaxParser
.
parse
(
xml
);
reportModel
.
accept
(
merger
);
}
catch
(
Exception
e
)
{
...
...
cat-home/src/main/webapp/jsp/report/utilization/detail.jsp
浏览文件 @
c1990802
...
...
@@ -18,8 +18,6 @@
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&tab=tab1"
>
Machine Number
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=urlCount&tab=tab1"
>
URL Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=urlResponse&tab=tab1"
>
URL Response Time
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=serviceCount&tab=tab1"
>
Service Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=serviceResponse&tab=tab1"
>
Service Response Time
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=sqlCount&tab=tab1"
>
SQL Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=pigeonCallCount&tab=tab1"
>
Pigeon Call Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=swallowCallCount&tab=tab1"
>
Swallow Call Count
</th>
...
...
@@ -33,8 +31,6 @@
<td
style=
"text-align:right"
>
${item.machineNumber}
</td>
<td
style=
"text-align:right"
>
${w:format(item.urlCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.urlResponseTime,'0.0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.serviceCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.serviceResponseTime,'0.0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.sqlCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.pigeonCallCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.swallowCallCount,'#,###,###,###,##0')}
</td>
...
...
@@ -51,8 +47,6 @@
<tr>
<th
class=
"left"
>
id
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&tab=tab2"
>
Machine Number
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=urlCount&tab=tab2"
>
URL Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=urlResponse&tab=tab2"
>
URL Response Time
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=serviceCount&tab=tab2"
>
Service Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=serviceResponse&tab=tab2"
>
Service Response Time
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=utilization&sort=sqlCount&tab=tab2"
>
SQL Count
</th>
...
...
@@ -66,8 +60,6 @@
<tr
class=
"${status.index mod 2 != 0 ? 'odd' : 'even'}"
>
<td>
${item.id}
</td>
<td
style=
"text-align:right"
>
${item.machineNumber}
</td>
<td
style=
"text-align:right"
>
${w:format(item.urlCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.urlResponseTime,'0.0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.serviceCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.serviceResponseTime,'0.0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.sqlCount,'#,###,###,###,##0')}
</td>
...
...
cat-home/src/main/webapp/jsp/report/utilization/utilizationHistory.jsp
浏览文件 @
c1990802
...
...
@@ -56,16 +56,14 @@
<table
class=
"table table-striped table-bordered table-condensed"
>
<tr>
<th
class=
"left"
>
id
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&tab=tab1"
>
Machine Number
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=urlCount&tab=tab1"
>
URL Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=urlResponse&tab=tab1"
>
URL Response Time
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=serviceCount&tab=tab1"
>
Service Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=serviceResponse&tab=tab1"
>
Service Response Time
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=sqlCount&tab=tab1"
>
SQL Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=pigeonCallCount&tab=tab1"
>
Pigeon Call Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=swallowCallCount&tab=tab1"
>
Swallow Call Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=memcacheCount&tab=tab1"
>
Memcache Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=webScore&tab=tab1"
>
Web Score
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&tab=tab1"
>
Machine Number
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=urlCount&tab=tab1"
>
URL Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=urlResponse&tab=tab1"
>
URL Response Time
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=sqlCount&tab=tab1"
>
SQL Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=pigeonCallCount&tab=tab1"
>
Pigeon Call Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=swallowCallCount&tab=tab1"
>
Swallow Call Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=memcacheCount&tab=tab1"
>
Memcache Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=webScore&tab=tab1"
>
Web Score
</th>
</tr>
<c:forEach
var=
"item"
items=
"
${
model
.
utilizationWebList
}
"
varStatus=
"status"
>
...
...
@@ -74,8 +72,6 @@
<td
style=
"text-align:right"
>
${item.machineNumber}
</td>
<td
style=
"text-align:right"
>
${w:format(item.urlCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.urlResponseTime,'0.0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.serviceCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.serviceResponseTime,'0.0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.sqlCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.pigeonCallCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.swallowCallCount,'#,###,###,###,##0')}
</td>
...
...
@@ -91,24 +87,20 @@
<table
class=
"table table-striped table-bordered table-condensed"
>
<tr>
<th
class=
"left"
>
id
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&tab=tab2"
>
Machine Number
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=urlCount&tab=tab2"
>
URL Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=urlResponse&tab=tab2"
>
URL Response Time
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=serviceCount&tab=tab2"
>
Service Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=serviceResponse&tab=tab2"
>
Service Response Time
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=sqlCount&tab=tab2"
>
SQL Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=pigeonCallCount&tab=tab2"
>
Pigeon Call Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=swallowCallCount&tab=tab2"
>
Swallow Call Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=memcacheCount&tab=tab2"
>
Memcache Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyHtilization&sort=serviceScore&tab=tab2"
>
Service Score
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&tab=tab2"
>
Machine Number
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=serviceCount&tab=tab2"
>
Service Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=serviceResponse&tab=tab2"
>
Service Response Time
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=sqlCount&tab=tab2"
>
SQL Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=pigeonCallCount&tab=tab2"
>
Pigeon Call Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=swallowCallCount&tab=tab2"
>
Swallow Call Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=memcacheCount&tab=tab2"
>
Memcache Count
</th>
<th
style=
"text-align:right"
><a
href=
"?domain=${model.domain}&date=${model.date}&ip=${model.ipAddress}&op=historyUtilization&sort=serviceScore&tab=tab2"
>
Service Score
</th>
</tr>
<c:forEach
var=
"item"
items=
"
${
model
.
utilizationServiceList
}
"
varStatus=
"status"
>
<tr
class=
"${status.index mod 2 != 0 ? 'odd' : 'even'}"
>
<td>
${item.id}
</td>
<td
style=
"text-align:right"
>
${item.machineNumber}
</td>
<td
style=
"text-align:right"
>
${w:format(item.urlCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.urlResponseTime,'0.0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.serviceCount,'#,###,###,###,##0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.serviceResponseTime,'0.0')}
</td>
<td
style=
"text-align:right"
>
${w:format(item.sqlCount,'#,###,###,###,##0')}
</td>
...
...
@@ -133,3 +125,13 @@
</table>
</div>
</a:body>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
var
tab
=
'
${payload.tab}
'
;
if
(
tab
==
'
tab2
'
){
$
(
'
#tab2Href
'
).
trigger
(
'
click
'
);
}
else
{
$
(
'
#tab1Href
'
).
trigger
(
'
click
'
);
}
});
</script>
cat-home/src/test/java/com/dianping/cat/report/task/utilization/UtilizationBuilderTest.java
浏览文件 @
c1990802
...
...
@@ -18,7 +18,7 @@ public class UtilizationBuilderTest extends ComponentTestCase{
DomainManager
manager
=
lookup
(
DomainManager
.
class
);
manager
.
initialize
();
builder
.
buildHourlyTask
(
"utilization"
,
CatString
.
CAT
,
new
SimpleDateFormat
(
"yyyyMMddHH"
).
parse
(
"2013082
505
"
));
builder
.
buildHourlyTask
(
"utilization"
,
CatString
.
CAT
,
new
SimpleDateFormat
(
"yyyyMMddHH"
).
parse
(
"2013082
617
"
));
}
@Test
...
...
@@ -27,7 +27,7 @@ public class UtilizationBuilderTest extends ComponentTestCase{
DomainManager
manager
=
lookup
(
DomainManager
.
class
);
manager
.
initialize
();
builder
.
buildDailyTask
(
"utilization"
,
CatString
.
CAT
,
new
SimpleDateFormat
(
"yyyyMMdd"
).
parse
(
"2013082
5
"
));
builder
.
buildDailyTask
(
"utilization"
,
CatString
.
CAT
,
new
SimpleDateFormat
(
"yyyyMMdd"
).
parse
(
"2013082
6
"
));
}
@Test
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录