Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦中观雨
cat
提交
43d1e09e
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,发现更多精彩内容 >>
提交
43d1e09e
编写于
2月 06, 2012
作者:
F
Frankie Wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
upgrade codegen plugin
上级
4b7d373f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
38 addition
and
21 deletion
+38
-21
cat-core/pom.xml
cat-core/pom.xml
+1
-1
cat-home/src/main/java/com/dianping/cat/report/ReportPage.java
...ome/src/main/java/com/dianping/cat/report/ReportPage.java
+17
-10
cat-home/src/main/resources/META-INF/wizard/webapp/wizard.xml
...home/src/main/resources/META-INF/wizard/webapp/wizard.xml
+15
-5
cat-home/src/main/webapp/WEB-INF/tags/body.tag
cat-home/src/main/webapp/WEB-INF/tags/body.tag
+4
-4
cat-home/src/main/webapp/jsp/report/ip.jsp
cat-home/src/main/webapp/jsp/report/ip.jsp
+1
-1
未找到文件。
cat-core/pom.xml
浏览文件 @
43d1e09e
...
...
@@ -28,7 +28,7 @@
<plugin>
<groupId>
com.site.maven.plugins
</groupId>
<artifactId>
maven-codegen-plugin
</artifactId>
<version>
1.0.
0-a4
</version>
<version>
1.0.
5
</version>
<executions>
<execution>
<id>
default-cli
</id>
...
...
cat-home/src/main/java/com/dianping/cat/report/ReportPage.java
浏览文件 @
43d1e09e
...
...
@@ -5,29 +5,32 @@ import com.site.web.mvc.annotation.ModuleMeta;
public
enum
ReportPage
implements
Page
{
HOME
(
"home"
,
"home"
,
"Home"
,
true
),
HOME
(
"home"
,
"home"
,
"Home"
,
"CAT Home Page."
,
true
),
TRANSACTION
(
"transaction"
,
"t"
,
"Transaction"
,
true
),
TRANSACTION
(
"transaction"
,
"t"
,
"Transaction"
,
"CAL summary report for Transactions in current hour."
,
true
),
FAILURE
(
"failure"
,
"f"
,
"Failure"
,
true
),
FAILURE
(
"failure"
,
"f"
,
"Failure"
,
"CAL detail report for failure messages in current hour."
,
true
),
LOGVIEW
(
"logview"
,
"m"
,
"Logview"
,
false
),
LOGVIEW
(
"logview"
,
"m"
,
"Logview"
,
"CAL log details view for a given message."
,
false
),
IP
(
"ip"
,
"ip"
,
"Top IP List"
,
true
);
IP
(
"ip"
,
"ip"
,
"Top IP List"
,
"Top visited IP list in current hour."
,
true
);
private
String
m_name
;
private
String
m_path
;
private
String
m_title
;
private
String
m_description
;
private
boolean
m_
realPag
e
;
private
boolean
m_
standalon
e
;
private
ReportPage
(
String
name
,
String
path
,
String
description
,
boolean
realPag
e
)
{
private
ReportPage
(
String
name
,
String
path
,
String
title
,
String
description
,
boolean
standalon
e
)
{
m_name
=
name
;
m_path
=
path
;
m_title
=
title
;
m_description
=
description
;
m_
realPage
=
realPag
e
;
m_
standalone
=
standalon
e
;
}
public
static
ReportPage
getByName
(
String
name
,
ReportPage
defaultPage
)
{
...
...
@@ -64,8 +67,12 @@ public enum ReportPage implements Page {
return
m_path
;
}
public
boolean
isRealPage
()
{
return
m_realPage
;
public
String
getTitle
()
{
return
m_title
;
}
public
boolean
isStandalone
()
{
return
m_standalone
;
}
public
ReportPage
[]
getValues
()
{
...
...
cat-home/src/main/resources/META-INF/wizard/webapp/wizard.xml
浏览文件 @
43d1e09e
<?xml version="1.0" encoding="UTF-8"?>
<wizard
package=
"com.dianping.cat"
webres=
"true"
>
<module
name=
"report"
path=
"r"
>
<page
name=
"home"
description=
"Home"
default=
"true"
/>
<page
name=
"transaction"
path=
"t"
description=
"Transaction"
/>
<page
name=
"failure"
path=
"f"
description=
"Failure"
/>
<page
name=
"logview"
path=
"m"
description=
"Logview"
/>
<page
name=
"ip"
description=
"Top IP List"
/>
<page
name=
"home"
title=
"Home"
default=
"true"
>
<description>
CAT Home Page.
</description>
</page>
<page
name=
"transaction"
path=
"t"
title=
"Transaction"
>
<description>
CAL summary report for Transactions in current hour.
</description>
</page>
<page
name=
"failure"
path=
"f"
title=
"Failure"
>
<description>
CAL detail report for failure messages in current hour.
</description>
</page>
<page
name=
"logview"
path=
"m"
title=
"Logview"
standalone=
"false"
>
<description>
CAL log details view for a given message.
</description>
</page>
<page
name=
"ip"
title=
"Top IP List"
>
<description>
Top visited IP list in current hour.
</description>
</page>
</module>
</wizard>
cat-home/src/main/webapp/WEB-INF/tags/body.tag
浏览文件 @
43d1e09e
...
...
@@ -18,11 +18,11 @@
</h1>
<ul
class=
"tabs"
>
<c:forEach
var=
"page"
items=
"${navBar.visiblePages}"
>
<c:if
test=
"${page.
realPag
e}"
>
<li
${
model.page.name =
=
page.name
?
'
class=
"selected"
'
:
''}
><a
href=
"${model.webapp}/${page.moduleName}/${page.path}"
>
${page.
description
}
</a></li>
<c:if
test=
"${page.
standalon
e}"
>
<li
${
model.page.name =
=
page.name
?
'
class=
"selected"
'
:
''}
><a
href=
"${model.webapp}/${page.moduleName}/${page.path}"
>
${page.
title
}
</a></li>
</c:if>
<c:if
test=
"${not page.
realPag
e and model.page.name == page.name}"
>
<li
class=
"selected"
>
${page.
description
}
</li>
<c:if
test=
"${not page.
standalon
e and model.page.name == page.name}"
>
<li
class=
"selected"
>
${page.
title
}
</li>
</c:if>
</c:forEach>
</ul>
...
...
cat-home/src/main/webapp/jsp/report/ip.jsp
浏览文件 @
43d1e09e
...
...
@@ -6,7 +6,7 @@
<jsp:useBean
id=
"payload"
type=
"com.dianping.cat.report.page.ip.Payload"
scope=
"request"
/>
<jsp:useBean
id=
"model"
type=
"com.dianping.cat.report.page.ip.Model"
scope=
"request"
/>
<a:report
title=
"Hot IP Report"
>
<a:report
title=
"Hot IP Report
XXX
"
>
<jsp:attribute
name=
"domain"
>
hello
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录