Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
bde07d7e
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
bde07d7e
编写于
10月 10, 2020
作者:
H
Humbertzhang
提交者:
GitHub
10月 10, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typo in ProfileTask.java (#5647)
* fix typo in ProfileTask
上级
39815388
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
11 deletion
+11
-11
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/commands/executor/ProfileTaskCommandExecutor.java
...nt/core/commands/executor/ProfileTaskCommandExecutor.java
+1
-1
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/profile/ProfileTask.java
...apache/skywalking/apm/agent/core/profile/ProfileTask.java
+7
-7
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/profile/ProfileTaskExecutionContext.java
...g/apm/agent/core/profile/ProfileTaskExecutionContext.java
+1
-1
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/profile/ProfileTaskExecutionService.java
...g/apm/agent/core/profile/ProfileTaskExecutionService.java
+2
-2
未找到文件。
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/commands/executor/ProfileTaskCommandExecutor.java
浏览文件 @
bde07d7e
...
...
@@ -38,7 +38,7 @@ public class ProfileTaskCommandExecutor implements CommandExecutor {
// build profile task
final
ProfileTask
profileTask
=
new
ProfileTask
();
profileTask
.
setTaskId
(
profileTaskCommand
.
getTaskId
());
profileTask
.
setFistSpanOPName
(
profileTaskCommand
.
getEndpointName
());
profileTask
.
setFi
r
stSpanOPName
(
profileTaskCommand
.
getEndpointName
());
profileTask
.
setDuration
(
profileTaskCommand
.
getDuration
());
profileTask
.
setMinDurationThreshold
(
profileTaskCommand
.
getMinDurationThreshold
());
profileTask
.
setThreadDumpPeriod
(
profileTaskCommand
.
getDumpPeriod
());
...
...
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/profile/ProfileTask.java
浏览文件 @
bde07d7e
...
...
@@ -29,7 +29,7 @@ public class ProfileTask {
private
String
taskId
;
// monitor first span operation name
private
String
fistSpanOPName
;
private
String
fi
r
stSpanOPName
;
// task duration (minute)
private
int
duration
;
...
...
@@ -49,12 +49,12 @@ public class ProfileTask {
// task create time
private
long
createTime
;
public
String
getFistSpanOPName
()
{
return
fistSpanOPName
;
public
String
getFi
r
stSpanOPName
()
{
return
fi
r
stSpanOPName
;
}
public
void
setFi
stSpanOPName
(
String
fi
stSpanOPName
)
{
this
.
fi
stSpanOPName
=
fi
stSpanOPName
;
public
void
setFi
rstSpanOPName
(
String
fir
stSpanOPName
)
{
this
.
fi
rstSpanOPName
=
fir
stSpanOPName
;
}
public
int
getDuration
()
{
...
...
@@ -121,11 +121,11 @@ public class ProfileTask {
return
false
;
ProfileTask
that
=
(
ProfileTask
)
o
;
return
duration
==
that
.
duration
&&
minDurationThreshold
==
that
.
minDurationThreshold
&&
threadDumpPeriod
==
that
.
threadDumpPeriod
&&
maxSamplingCount
==
that
.
maxSamplingCount
&&
startTime
==
that
.
startTime
&&
createTime
==
that
.
createTime
&&
taskId
.
equals
(
that
.
taskId
)
&&
fi
stSpanOPName
.
equals
(
that
.
fi
stSpanOPName
);
.
equals
(
that
.
taskId
)
&&
fi
rstSpanOPName
.
equals
(
that
.
fir
stSpanOPName
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
taskId
,
fistSpanOPName
,
duration
,
minDurationThreshold
,
threadDumpPeriod
,
maxSamplingCount
,
startTime
,
createTime
);
return
Objects
.
hash
(
taskId
,
fi
r
stSpanOPName
,
duration
,
minDurationThreshold
,
threadDumpPeriod
,
maxSamplingCount
,
startTime
,
createTime
);
}
}
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/profile/ProfileTaskExecutionContext.java
浏览文件 @
bde07d7e
...
...
@@ -82,7 +82,7 @@ public class ProfileTaskExecutionContext {
}
// check first operation name matches
if
(!
Objects
.
equals
(
task
.
getFistSpanOPName
(),
firstSpanOPName
))
{
if
(!
Objects
.
equals
(
task
.
getFi
r
stSpanOPName
(),
firstSpanOPName
))
{
return
ProfileStatusReference
.
createWithNone
();
}
...
...
apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/profile/ProfileTaskExecutionService.java
浏览文件 @
bde07d7e
...
...
@@ -186,7 +186,7 @@ public class ProfileTaskExecutionService implements BootService, TracingThreadLi
*/
private
CheckResult
checkProfileTaskSuccess
(
ProfileTask
task
)
{
// endpoint name
if
(
StringUtil
.
isEmpty
(
task
.
getFistSpanOPName
()))
{
if
(
StringUtil
.
isEmpty
(
task
.
getFi
r
stSpanOPName
()))
{
return
new
CheckResult
(
false
,
"endpoint name cannot be empty"
);
}
...
...
@@ -234,7 +234,7 @@ public class ProfileTaskExecutionService implements BootService, TracingThreadLi
return
new
CheckResult
(
false
,
"there already have processing task in time range, could not add a new task again. processing task monitor endpoint name: "
+
profileTask
.
getFistSpanOPName
()
+
profileTask
.
getFi
r
stSpanOPName
()
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录