Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦中观雨
cat
提交
98215d91
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,发现更多精彩内容 >>
提交
98215d91
编写于
4月 27, 2012
作者:
Y
You Yong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify the cat mobile page
上级
e9692e95
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
42 addition
and
5 deletion
+42
-5
cat-home/src/main/java/com/dianping/cat/report/page/event/JspFile.java
...main/java/com/dianping/cat/report/page/event/JspFile.java
+1
-1
cat-home/src/main/java/com/dianping/cat/report/page/event/JspViewer.java
...in/java/com/dianping/cat/report/page/event/JspViewer.java
+2
-0
cat-home/src/main/java/com/dianping/cat/report/page/problem/Action.java
...ain/java/com/dianping/cat/report/page/problem/Action.java
+3
-1
cat-home/src/main/java/com/dianping/cat/report/page/problem/Handler.java
...in/java/com/dianping/cat/report/page/problem/Handler.java
+8
-1
cat-home/src/main/java/com/dianping/cat/report/page/problem/JspFile.java
...in/java/com/dianping/cat/report/page/problem/JspFile.java
+3
-1
cat-home/src/main/java/com/dianping/cat/report/page/problem/JspViewer.java
.../java/com/dianping/cat/report/page/problem/JspViewer.java
+2
-0
cat-home/src/main/java/com/dianping/cat/report/page/problem/Model.java
...main/java/com/dianping/cat/report/page/problem/Model.java
+10
-0
cat-home/src/main/java/com/dianping/cat/report/page/transaction/JspFile.java
...ava/com/dianping/cat/report/page/transaction/JspFile.java
+1
-1
cat-home/src/main/webapp/jsp/report/event_mobile.jsp
cat-home/src/main/webapp/jsp/report/event_mobile.jsp
+4
-0
cat-home/src/main/webapp/jsp/report/heartbeat_mobile.jsp
cat-home/src/main/webapp/jsp/report/heartbeat_mobile.jsp
+4
-0
cat-home/src/main/webapp/jsp/report/problem_mobile.jsp
cat-home/src/main/webapp/jsp/report/problem_mobile.jsp
+4
-0
cat-home/src/main/webapp/jsp/report/transaction_mobile.jsp
cat-home/src/main/webapp/jsp/report/transaction_mobile.jsp
+0
-0
未找到文件。
cat-home/src/main/java/com/dianping/cat/report/page/event/JspFile.java
浏览文件 @
98215d91
...
...
@@ -5,7 +5,7 @@ public enum JspFile {
GRAPHS
(
"/jsp/report/event_graphs.jsp"
),
MOBILE
(
"/jsp/report/mobile.jsp"
);
MOBILE
(
"/jsp/report/
event_
mobile.jsp"
);
private
String
m_path
;
...
...
cat-home/src/main/java/com/dianping/cat/report/page/event/JspViewer.java
浏览文件 @
98215d91
...
...
@@ -13,6 +13,8 @@ public class JspViewer extends BaseJspViewer<ReportPage, Action, Context, Model>
return
JspFile
.
VIEW
.
getPath
();
case
GRAPHS:
return
JspFile
.
GRAPHS
.
getPath
();
case
MOBILE:
return
JspFile
.
MOBILE
.
getPath
();
}
throw
new
RuntimeException
(
"Unknown action: "
+
action
);
...
...
cat-home/src/main/java/com/dianping/cat/report/page/problem/Action.java
浏览文件 @
98215d91
...
...
@@ -5,7 +5,9 @@ public enum Action implements com.site.web.mvc.Action {
THREAD
(
"thread"
),
DETAIL
(
"detail"
);
DETAIL
(
"detail"
),
MOBILE
(
"mobile"
);
private
String
m_name
;
...
...
cat-home/src/main/java/com/dianping/cat/report/page/problem/Handler.java
浏览文件 @
98215d91
...
...
@@ -17,6 +17,7 @@ import com.dianping.cat.report.page.model.spi.ModelPeriod;
import
com.dianping.cat.report.page.model.spi.ModelRequest
;
import
com.dianping.cat.report.page.model.spi.ModelResponse
;
import
com.dianping.cat.report.page.model.spi.ModelService
;
import
com.google.gson.Gson
;
import
com.site.lookup.annotation.Inject
;
import
com.site.lookup.util.StringUtils
;
import
com.site.web.mvc.PageHandler
;
...
...
@@ -144,7 +145,13 @@ public class Handler implements PageHandler<Context> {
report
=
getAllIpReport
(
payload
);
model
.
setReport
(
report
);
model
.
setLongDate
(
payload
.
getDate
());
model
.
setAllStatistics
(
new
ProblemStatistics
().
displayByAllIps
(
report
,
payload
));
ProblemStatistics
allStatistics
=
new
ProblemStatistics
().
displayByAllIps
(
report
,
payload
);
model
.
setAllStatistics
(
allStatistics
);
if
(
payload
.
getAction
()
==
Action
.
MOBILE
)
{
Gson
gson
=
new
Gson
();
String
response
=
gson
.
toJson
(
allStatistics
);
model
.
setMobileResponse
(
response
);
}
}
else
{
switch
(
payload
.
getAction
())
{
case
GROUP:
...
...
cat-home/src/main/java/com/dianping/cat/report/page/problem/JspFile.java
浏览文件 @
98215d91
...
...
@@ -6,7 +6,9 @@ public enum JspFile {
THREAD
(
"/jsp/report/problemThread.jsp"
),
DETAIL
(
"/jsp/report/problemDetail.jsp"
)
DETAIL
(
"/jsp/report/problemDetail.jsp"
),
MOBILE
(
"/jsp/report/problem_mobile.jsp"
);
;
private
String
m_path
;
...
...
cat-home/src/main/java/com/dianping/cat/report/page/problem/JspViewer.java
浏览文件 @
98215d91
...
...
@@ -15,6 +15,8 @@ public class JspViewer extends BaseJspViewer<ReportPage, Action, Context, Model>
return
JspFile
.
THREAD
.
getPath
();
case
DETAIL:
return
JspFile
.
DETAIL
.
getPath
();
case
MOBILE:
return
JspFile
.
MOBILE
.
getPath
();
}
throw
new
RuntimeException
(
"Unknown action: "
+
action
);
...
...
cat-home/src/main/java/com/dianping/cat/report/page/problem/Model.java
浏览文件 @
98215d91
...
...
@@ -34,6 +34,8 @@ public class Model extends AbstractReportModel<Action, Context> {
private
ProblemStatistics
m_allStatistics
;
private
String
m_mobileResponse
;
public
Model
(
Context
ctx
)
{
super
(
ctx
);
}
...
...
@@ -187,4 +189,12 @@ public class Model extends AbstractReportModel<Action, Context> {
m_threshold
=
threshold
;
}
public
String
getMobileResponse
()
{
return
m_mobileResponse
;
}
public
void
setMobileResponse
(
String
mobileResponse
)
{
m_mobileResponse
=
mobileResponse
;
}
}
cat-home/src/main/java/com/dianping/cat/report/page/transaction/JspFile.java
浏览文件 @
98215d91
...
...
@@ -5,7 +5,7 @@ public enum JspFile {
GRAPHS
(
"/jsp/report/transaction_graphs.jsp"
),
MOBILE
(
"/jsp/report/mobile.jsp"
);
MOBILE
(
"/jsp/report/
transaction_
mobile.jsp"
);
private
String
m_path
;
...
...
cat-home/src/main/webapp/jsp/report/event_mobile.jsp
0 → 100755
浏览文件 @
98215d91
<%@ page
session=
"false"
language=
"java"
pageEncoding=
"UTF-8"
%>
<%@ page
contentType=
"text/html; charset=utf-8"
%>
<jsp:useBean
id=
"model"
type=
"com.dianping.cat.report.page.event.Model"
scope=
"request"
/>
${model.mobileResponse}
\ No newline at end of file
cat-home/src/main/webapp/jsp/report/heartbeat_mobile.jsp
0 → 100755
浏览文件 @
98215d91
<%@ page
session=
"false"
language=
"java"
pageEncoding=
"UTF-8"
%>
<%@ page
contentType=
"text/html; charset=utf-8"
%>
<jsp:useBean
id=
"model"
type=
"com.dianping.cat.report.page.heartbeat.Model"
scope=
"request"
/>
${model.mobileResponse}
\ No newline at end of file
cat-home/src/main/webapp/jsp/report/problem_mobile.jsp
0 → 100755
浏览文件 @
98215d91
<%@ page
session=
"false"
language=
"java"
pageEncoding=
"UTF-8"
%>
<%@ page
contentType=
"text/html; charset=utf-8"
%>
<jsp:useBean
id=
"model"
type=
"com.dianping.cat.report.page.problem.Model"
scope=
"request"
/>
${model.mobileResponse}
\ No newline at end of file
cat-home/src/main/webapp/jsp/report/mobile.jsp
→
cat-home/src/main/webapp/jsp/report/
transaction_
mobile.jsp
浏览文件 @
98215d91
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录