Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦中观雨
cat
提交
91c5aa79
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,发现更多精彩内容 >>
提交
91c5aa79
编写于
12月 02, 2013
作者:
Y
youyong205
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix cat bug
上级
d5e13f22
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
8 addition
and
25 deletion
+8
-25
cat-home/pom.xml
cat-home/pom.xml
+1
-1
cat-home/src/main/java/com/dianping/cat/report/page/dependency/Handler.java
...java/com/dianping/cat/report/page/dependency/Handler.java
+3
-1
cat-home/src/main/java/com/dianping/cat/report/page/statistics/Model.java
...n/java/com/dianping/cat/report/page/statistics/Model.java
+1
-1
cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java
...ava/com/dianping/cat/report/page/transaction/Handler.java
+1
-2
cat-home/src/main/resources/META-INF/app.properties
cat-home/src/main/resources/META-INF/app.properties
+2
-0
cat-home/src/test/java/com/dianping/cat/report/page/dependency/DependencyGraphReport.java
...ing/cat/report/page/dependency/DependencyGraphReport.java
+0
-20
未找到文件。
cat-home/pom.xml
浏览文件 @
91c5aa79
...
...
@@ -150,7 +150,7 @@
<plugin>
<groupId>
org.unidal.maven.plugins
</groupId>
<artifactId>
codegen-maven-plugin
</artifactId>
<version>
2.0.
8
</version>
<version>
2.0.
5
</version>
<executions>
<execution>
<id>
generate plexus component descriptor
</id>
...
...
cat-home/src/main/java/com/dianping/cat/report/page/dependency/Handler.java
浏览文件 @
91c5aa79
...
...
@@ -174,7 +174,9 @@ public class Handler implements PageHandler<Context> {
m_externalInfoBuilder
.
buildExceptionInfoOnGraph
(
payload
,
model
,
topologyGraph
);
model
.
setReportStart
(
new
Date
(
payload
.
getDate
()));
model
.
setReportEnd
(
new
Date
(
payload
.
getDate
()
+
TimeUtil
.
ONE_HOUR
-
1
));
model
.
setTopologyGraph
(
new
DefaultJsonBuilder
().
build
(
topologyGraph
));
String
build
=
new
DefaultJsonBuilder
().
buildJson
(
topologyGraph
);
model
.
setTopologyGraph
(
build
);
break
;
case
LINE_CHART:
DependencyReport
dependencyReport
=
queryDependencyReport
(
payload
);
...
...
cat-home/src/main/java/com/dianping/cat/report/page/statistics/Model.java
浏览文件 @
91c5aa79
...
...
@@ -69,7 +69,7 @@ public class Model extends AbstractReportModel<Action, Context> {
}
public
String
getBugs
()
{
return
new
DefaultJsonBuilder
().
build
(
m_bugReport
);
return
new
DefaultJsonBuilder
().
build
Json
(
m_bugReport
);
}
public
List
<
Service
>
getCacheServices
()
{
...
...
cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java
浏览文件 @
91c5aa79
...
...
@@ -175,7 +175,6 @@ public class Handler implements PageHandler<Context> {
normalize
(
model
,
payload
);
String
type
=
payload
.
getType
();
switch
(
payload
.
getAction
())
{
case
HOURLY_REPORT:
showHourlyReport
(
model
,
payload
);
...
...
cat-home/src/main/resources/META-INF/app.properties
0 → 100644
浏览文件 @
91c5aa79
app.name
=
test
app.swimlane
=
test
\ No newline at end of file
cat-home/src/test/java/com/dianping/cat/report/page/dependency/DependencyGraphReport.java
已删除
100644 → 0
浏览文件 @
d5e13f22
package
com.dianping.cat.report.page.dependency
;
import
org.junit.Test
;
import
org.unidal.helper.Files
;
import
com.dianping.cat.home.dependency.graph.entity.TopologyGraph
;
import
com.dianping.cat.home.dependency.graph.transform.DefaultJsonBuilder
;
import
com.dianping.cat.home.dependency.graph.transform.DefaultSaxParser
;
public
class
DependencyGraphReport
{
@Test
public
void
test
()
throws
Exception
{
String
oldXml
=
Files
.
forIO
().
readFrom
(
getClass
().
getResourceAsStream
(
"graph.xml"
),
"utf-8"
);
TopologyGraph
front
=
DefaultSaxParser
.
parse
(
oldXml
);
DefaultJsonBuilder
build
=
new
DefaultJsonBuilder
();
System
.
out
.
println
(
build
.
build
(
front
));
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录