Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
山不在高_有仙则灵
SkyWalking
提交
eb656cd4
S
SkyWalking
项目概览
山不在高_有仙则灵
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
12
Star
0
Fork
2
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
eb656cd4
编写于
1月 08, 2018
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Compile successful.
上级
63e9c54f
变更
71
隐藏空白更改
内联
并排
Showing
71 changed file
with
422 addition
and
152 deletion
+422
-152
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/AlarmAssertWorker.java
...tor/analysis/alarm/provider/worker/AlarmAssertWorker.java
+2
-2
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/AlarmAssertWorkerProvider.java
...ysis/alarm/provider/worker/AlarmAssertWorkerProvider.java
+2
-2
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/application/ApplicationMetricAlarmAssertWorker.java
...orker/application/ApplicationMetricAlarmAssertWorker.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/application/ApplicationMetricAlarmToListNodeProcessor.java
...pplication/ApplicationMetricAlarmToListNodeProcessor.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/application/ApplicationReferenceMetricAlarmAssertWorker.java
...lication/ApplicationReferenceMetricAlarmAssertWorker.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/application/ApplicationReferenceMetricAlarmToListNodeProcessor.java
...n/ApplicationReferenceMetricAlarmToListNodeProcessor.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/instance/InstanceMetricAlarmAssertWorker.java
...ider/worker/instance/InstanceMetricAlarmAssertWorker.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/instance/InstanceMetricAlarmToListNodeProcessor.java
...rker/instance/InstanceMetricAlarmToListNodeProcessor.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/instance/InstanceReferenceMetricAlarmAssertWorker.java
...er/instance/InstanceReferenceMetricAlarmAssertWorker.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/instance/InstanceReferenceMetricAlarmToListNodeProcessor.java
...ance/InstanceReferenceMetricAlarmToListNodeProcessor.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/service/ServiceMetricAlarmAssertWorker.java
...ovider/worker/service/ServiceMetricAlarmAssertWorker.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/service/ServiceMetricAlarmToListNodeProcessor.java
...worker/service/ServiceMetricAlarmToListNodeProcessor.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/service/ServiceReferenceMetricAlarmAssertWorker.java
...rker/service/ServiceReferenceMetricAlarmAssertWorker.java
+2
-1
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/service/ServiceReferenceMetricAlarmToListNodeProcessor.java
...rvice/ServiceReferenceMetricAlarmToListNodeProcessor.java
+2
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/CpuMetricService.java
...ector/analysis/jvm/provider/service/CpuMetricService.java
+2
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/GCMetricService.java
...lector/analysis/jvm/provider/service/GCMetricService.java
+2
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/InstanceHeartBeatService.java
...alysis/jvm/provider/service/InstanceHeartBeatService.java
+2
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/MemoryMetricService.java
...or/analysis/jvm/provider/service/MemoryMetricService.java
+2
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/MemoryPoolMetricService.java
...nalysis/jvm/provider/service/MemoryPoolMetricService.java
+2
-1
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingSpanListener.java
...r/application/mapping/ApplicationMappingSpanListener.java
+1
-1
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/service/entry/ServiceEntrySpanListener.java
...ovider/worker/service/entry/ServiceEntrySpanListener.java
+2
-1
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/register/ServiceNameRegisterSerialWorker.java
...er/provider/register/ServiceNameRegisterSerialWorker.java
+6
-3
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/ApplicationIDService.java
...lysis/register/provider/service/ApplicationIDService.java
+4
-2
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/InstanceIDService.java
...analysis/register/provider/service/InstanceIDService.java
+6
-3
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/NetworkAddressIDService.java
...is/register/provider/service/NetworkAddressIDService.java
+2
-1
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/ServiceNameService.java
...nalysis/register/provider/service/ServiceNameService.java
+2
-1
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/SegmentParse.java
...analysis/segment/parser/provider/parser/SegmentParse.java
+2
-1
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/standardization/SegmentStandardization.java
...ovider/parser/standardization/SegmentStandardization.java
+21
-5
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/TableDefine.java
...pache/skywalking/apm/collector/core/data/TableDefine.java
+0
-2
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ApplicationAlarmList.java
...m/collector/storage/table/alarm/ApplicationAlarmList.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ApplicationReferenceAlarm.java
...lector/storage/table/alarm/ApplicationReferenceAlarm.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ApplicationReferenceAlarmList.java
...or/storage/table/alarm/ApplicationReferenceAlarmList.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/InstanceAlarm.java
...king/apm/collector/storage/table/alarm/InstanceAlarm.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/InstanceAlarmList.java
.../apm/collector/storage/table/alarm/InstanceAlarmList.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/InstanceReferenceAlarm.java
...collector/storage/table/alarm/InstanceReferenceAlarm.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/InstanceReferenceAlarmList.java
...ector/storage/table/alarm/InstanceReferenceAlarmList.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ServiceAlarm.java
...lking/apm/collector/storage/table/alarm/ServiceAlarm.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ServiceAlarmList.java
...g/apm/collector/storage/table/alarm/ServiceAlarmList.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ServiceReferenceAlarm.java
.../collector/storage/table/alarm/ServiceReferenceAlarm.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ServiceReferenceAlarmList.java
...lector/storage/table/alarm/ServiceReferenceAlarmList.java
+20
-4
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/register/Application.java
...ing/apm/collector/storage/table/register/Application.java
+10
-2
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/register/Instance.java
...alking/apm/collector/storage/table/register/Instance.java
+10
-2
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/register/NetworkAddress.java
.../apm/collector/storage/table/register/NetworkAddress.java
+10
-2
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/register/ServiceName.java
...ing/apm/collector/storage/table/register/ServiceName.java
+10
-2
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/service/ServiceMetric.java
...ng/apm/collector/storage/table/service/ServiceMetric.java
+2
-3
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ApplicationAlarmEsPersistenceDAO.java
...ctor/storage/es/dao/ApplicationAlarmEsPersistenceDAO.java
+3
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ApplicationAlarmListEsPersistenceDAO.java
.../storage/es/dao/ApplicationAlarmListEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ApplicationReferenceAlarmEsPersistenceDAO.java
...age/es/dao/ApplicationReferenceAlarmEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ApplicationReferenceAlarmListEsPersistenceDAO.java
...es/dao/ApplicationReferenceAlarmListEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceAlarmEsPersistenceDAO.java
...llector/storage/es/dao/InstanceAlarmEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceAlarmListEsPersistenceDAO.java
...tor/storage/es/dao/InstanceAlarmListEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceEsUIDAO.java
...walking/apm/collector/storage/es/dao/InstanceEsUIDAO.java
+4
-2
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceHeartBeatEsPersistenceDAO.java
...tor/storage/es/dao/InstanceHeartBeatEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceReferenceAlarmEsPersistenceDAO.java
...torage/es/dao/InstanceReferenceAlarmEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceReferenceAlarmListEsPersistenceDAO.java
...ge/es/dao/InstanceReferenceAlarmListEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ServiceAlarmEsPersistenceDAO.java
...ollector/storage/es/dao/ServiceAlarmEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ServiceAlarmListEsPersistenceDAO.java
...ctor/storage/es/dao/ServiceAlarmListEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ServiceReferenceAlarmEsPersistenceDAO.java
...storage/es/dao/ServiceReferenceAlarmEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ServiceReferenceAlarmListEsPersistenceDAO.java
...age/es/dao/ServiceReferenceAlarmListEsPersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ApplicationComponentH2MinutePersistenceDAO.java
...ge/h2/dao/ApplicationComponentH2MinutePersistenceDAO.java
+5
-5
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ApplicationMappingH2MinutePersistenceDAO.java
...rage/h2/dao/ApplicationMappingH2MinutePersistenceDAO.java
+3
-3
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ApplicationMinuteMetricH2PersistenceDAO.java
...orage/h2/dao/ApplicationMinuteMetricH2PersistenceDAO.java
+3
-3
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ApplicationReferenceMinuteMetricH2PersistenceDAO.java
...dao/ApplicationReferenceMinuteMetricH2PersistenceDAO.java
+6
-6
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceH2UIDAO.java
...walking/apm/collector/storage/h2/dao/InstanceH2UIDAO.java
+7
-6
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceHeartBeatH2PersistenceDAO.java
...tor/storage/h2/dao/InstanceHeartBeatH2PersistenceDAO.java
+3
-3
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceMappingH2MinutePersistenceDAO.java
...storage/h2/dao/InstanceMappingH2MinutePersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceMinuteMetricH2PersistenceDAO.java
.../storage/h2/dao/InstanceMinuteMetricH2PersistenceDAO.java
+5
-5
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceReferenceMetricH2PersistenceDAO.java
...orage/h2/dao/InstanceReferenceMetricH2PersistenceDAO.java
+2
-1
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ServiceEntryH2PersistenceDAO.java
...ollector/storage/h2/dao/ServiceEntryH2PersistenceDAO.java
+2
-2
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ServiceMinuteMetricH2PersistenceDAO.java
...r/storage/h2/dao/ServiceMinuteMetricH2PersistenceDAO.java
+5
-5
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ServiceReferenceMetricH2PersistenceDAO.java
...torage/h2/dao/ServiceReferenceMetricH2PersistenceDAO.java
+2
-1
未找到文件。
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/AlarmAssertWorker.java
浏览文件 @
eb656cd4
...
...
@@ -21,7 +21,7 @@ package org.apache.skywalking.apm.collector.analysis.alarm.provider.worker;
import
org.apache.skywalking.apm.collector.analysis.metric.define.MetricSource
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorker
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.WorkerException
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.core.util.NumberFormatUtils
;
...
...
@@ -34,7 +34,7 @@ import org.slf4j.LoggerFactory;
/**
* @author peng-yongsheng
*/
public
abstract
class
AlarmAssertWorker
<
INPUT
extends
AbstractData
&
Metric
,
OUTPUT
extends
Abstract
Data
&
Alarm
>
extends
AbstractLocalAsyncWorker
<
INPUT
,
OUTPUT
>
{
public
abstract
class
AlarmAssertWorker
<
INPUT
extends
StreamData
&
Metric
,
OUTPUT
extends
Stream
Data
&
Alarm
>
extends
AbstractLocalAsyncWorker
<
INPUT
,
OUTPUT
>
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AlarmAssertWorker
.
class
);
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/AlarmAssertWorkerProvider.java
浏览文件 @
eb656cd4
...
...
@@ -19,7 +19,7 @@
package
org.apache.skywalking.apm.collector.analysis.alarm.provider.worker
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.table.Metric
;
import
org.apache.skywalking.apm.collector.storage.table.alarm.Alarm
;
...
...
@@ -27,7 +27,7 @@ import org.apache.skywalking.apm.collector.storage.table.alarm.Alarm;
/**
* @author peng-yongsheng
*/
public
abstract
class
AlarmAssertWorkerProvider
<
INPUT
extends
AbstractData
&
Metric
,
OUTPUT
extends
Abstract
Data
&
Alarm
,
WORKER_TYPE
extends
AlarmAssertWorker
<
INPUT
,
OUTPUT
>>
extends
AbstractLocalAsyncWorkerProvider
<
INPUT
,
OUTPUT
,
WORKER_TYPE
>
{
public
abstract
class
AlarmAssertWorkerProvider
<
INPUT
extends
StreamData
&
Metric
,
OUTPUT
extends
Stream
Data
&
Alarm
,
WORKER_TYPE
extends
AlarmAssertWorker
<
INPUT
,
OUTPUT
>>
extends
AbstractLocalAsyncWorkerProvider
<
INPUT
,
OUTPUT
,
WORKER_TYPE
>
{
public
AlarmAssertWorkerProvider
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/application/ApplicationMetricAlarmAssertWorker.java
浏览文件 @
eb656cd4
...
...
@@ -45,7 +45,8 @@ public class ApplicationMetricAlarmAssertWorker extends AlarmAssertWorker<Applic
}
@Override
protected
ApplicationAlarm
newAlarmObject
(
String
id
,
ApplicationMetric
inputMetric
)
{
ApplicationAlarm
applicationAlarm
=
new
ApplicationAlarm
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getApplicationId
());
ApplicationAlarm
applicationAlarm
=
new
ApplicationAlarm
();
applicationAlarm
.
setId
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getApplicationId
());
applicationAlarm
.
setApplicationId
(
inputMetric
.
getApplicationId
());
return
applicationAlarm
;
}
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/application/ApplicationMetricAlarmToListNodeProcessor.java
浏览文件 @
eb656cd4
...
...
@@ -39,7 +39,8 @@ public class ApplicationMetricAlarmToListNodeProcessor implements NodeProcessor<
+
Const
.
ID_SPLIT
+
applicationAlarm
.
getAlarmType
()
+
Const
.
ID_SPLIT
+
applicationAlarm
.
getApplicationId
();
ApplicationAlarmList
applicationAlarmList
=
new
ApplicationAlarmList
(
id
);
ApplicationAlarmList
applicationAlarmList
=
new
ApplicationAlarmList
();
applicationAlarmList
.
setId
(
id
);
applicationAlarmList
.
setApplicationId
(
applicationAlarm
.
getApplicationId
());
applicationAlarmList
.
setSourceValue
(
applicationAlarm
.
getSourceValue
());
applicationAlarmList
.
setAlarmType
(
applicationAlarm
.
getAlarmType
());
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/application/ApplicationReferenceMetricAlarmAssertWorker.java
浏览文件 @
eb656cd4
...
...
@@ -45,7 +45,8 @@ public class ApplicationReferenceMetricAlarmAssertWorker extends AlarmAssertWork
}
@Override
protected
ApplicationReferenceAlarm
newAlarmObject
(
String
id
,
ApplicationReferenceMetric
inputMetric
)
{
ApplicationReferenceAlarm
applicationReferenceAlarm
=
new
ApplicationReferenceAlarm
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getFrontApplicationId
()
+
Const
.
ID_SPLIT
+
inputMetric
.
getBehindApplicationId
());
ApplicationReferenceAlarm
applicationReferenceAlarm
=
new
ApplicationReferenceAlarm
();
applicationReferenceAlarm
.
setId
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getFrontApplicationId
()
+
Const
.
ID_SPLIT
+
inputMetric
.
getBehindApplicationId
());
applicationReferenceAlarm
.
setFrontApplicationId
(
inputMetric
.
getFrontApplicationId
());
applicationReferenceAlarm
.
setBehindApplicationId
(
inputMetric
.
getBehindApplicationId
());
return
applicationReferenceAlarm
;
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/application/ApplicationReferenceMetricAlarmToListNodeProcessor.java
浏览文件 @
eb656cd4
...
...
@@ -41,7 +41,8 @@ public class ApplicationReferenceMetricAlarmToListNodeProcessor implements NodeP
+
Const
.
ID_SPLIT
+
applicationReferenceAlarm
.
getFrontApplicationId
()
+
Const
.
ID_SPLIT
+
applicationReferenceAlarm
.
getBehindApplicationId
();
ApplicationReferenceAlarmList
applicationReferenceAlarmList
=
new
ApplicationReferenceAlarmList
(
id
);
ApplicationReferenceAlarmList
applicationReferenceAlarmList
=
new
ApplicationReferenceAlarmList
();
applicationReferenceAlarmList
.
setId
(
id
);
applicationReferenceAlarmList
.
setFrontApplicationId
(
applicationReferenceAlarm
.
getFrontApplicationId
());
applicationReferenceAlarmList
.
setBehindApplicationId
(
applicationReferenceAlarm
.
getBehindApplicationId
());
applicationReferenceAlarmList
.
setSourceValue
(
applicationReferenceAlarm
.
getSourceValue
());
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/instance/InstanceMetricAlarmAssertWorker.java
浏览文件 @
eb656cd4
...
...
@@ -45,7 +45,8 @@ public class InstanceMetricAlarmAssertWorker extends AlarmAssertWorker<InstanceM
}
@Override
protected
InstanceAlarm
newAlarmObject
(
String
id
,
InstanceMetric
inputMetric
)
{
InstanceAlarm
instanceAlarm
=
new
InstanceAlarm
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getInstanceId
());
InstanceAlarm
instanceAlarm
=
new
InstanceAlarm
();
inputMetric
.
setId
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getInstanceId
());
instanceAlarm
.
setApplicationId
(
inputMetric
.
getApplicationId
());
instanceAlarm
.
setInstanceId
(
inputMetric
.
getInstanceId
());
return
instanceAlarm
;
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/instance/InstanceMetricAlarmToListNodeProcessor.java
浏览文件 @
eb656cd4
...
...
@@ -39,7 +39,8 @@ public class InstanceMetricAlarmToListNodeProcessor implements NodeProcessor<Ins
+
Const
.
ID_SPLIT
+
instanceAlarm
.
getAlarmType
()
+
Const
.
ID_SPLIT
+
instanceAlarm
.
getInstanceId
();
InstanceAlarmList
instanceAlarmList
=
new
InstanceAlarmList
(
id
);
InstanceAlarmList
instanceAlarmList
=
new
InstanceAlarmList
();
instanceAlarmList
.
setId
(
id
);
instanceAlarmList
.
setApplicationId
(
instanceAlarm
.
getApplicationId
());
instanceAlarmList
.
setInstanceId
(
instanceAlarm
.
getInstanceId
());
instanceAlarmList
.
setSourceValue
(
instanceAlarm
.
getSourceValue
());
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/instance/InstanceReferenceMetricAlarmAssertWorker.java
浏览文件 @
eb656cd4
...
...
@@ -45,7 +45,8 @@ public class InstanceReferenceMetricAlarmAssertWorker extends AlarmAssertWorker<
}
@Override
protected
InstanceReferenceAlarm
newAlarmObject
(
String
id
,
InstanceReferenceMetric
inputMetric
)
{
InstanceReferenceAlarm
instanceReferenceAlarm
=
new
InstanceReferenceAlarm
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getFrontInstanceId
()
+
Const
.
ID_SPLIT
+
inputMetric
.
getBehindInstanceId
());
InstanceReferenceAlarm
instanceReferenceAlarm
=
new
InstanceReferenceAlarm
();
instanceReferenceAlarm
.
setId
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getFrontInstanceId
()
+
Const
.
ID_SPLIT
+
inputMetric
.
getBehindInstanceId
());
instanceReferenceAlarm
.
setFrontApplicationId
(
inputMetric
.
getFrontApplicationId
());
instanceReferenceAlarm
.
setBehindApplicationId
(
inputMetric
.
getBehindApplicationId
());
instanceReferenceAlarm
.
setFrontInstanceId
(
inputMetric
.
getFrontInstanceId
());
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/instance/InstanceReferenceMetricAlarmToListNodeProcessor.java
浏览文件 @
eb656cd4
...
...
@@ -41,7 +41,8 @@ public class InstanceReferenceMetricAlarmToListNodeProcessor implements NodeProc
+
Const
.
ID_SPLIT
+
instanceReferenceAlarm
.
getFrontInstanceId
()
+
Const
.
ID_SPLIT
+
instanceReferenceAlarm
.
getBehindInstanceId
();
InstanceReferenceAlarmList
instanceReferenceAlarmList
=
new
InstanceReferenceAlarmList
(
id
);
InstanceReferenceAlarmList
instanceReferenceAlarmList
=
new
InstanceReferenceAlarmList
();
instanceReferenceAlarmList
.
setId
(
id
);
instanceReferenceAlarmList
.
setFrontApplicationId
(
instanceReferenceAlarm
.
getFrontApplicationId
());
instanceReferenceAlarmList
.
setBehindApplicationId
(
instanceReferenceAlarm
.
getBehindApplicationId
());
instanceReferenceAlarmList
.
setFrontInstanceId
(
instanceReferenceAlarm
.
getFrontInstanceId
());
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/service/ServiceMetricAlarmAssertWorker.java
浏览文件 @
eb656cd4
...
...
@@ -45,7 +45,8 @@ public class ServiceMetricAlarmAssertWorker extends AlarmAssertWorker<ServiceMet
}
@Override
protected
ServiceAlarm
newAlarmObject
(
String
id
,
ServiceMetric
inputMetric
)
{
ServiceAlarm
serviceAlarm
=
new
ServiceAlarm
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getServiceId
());
ServiceAlarm
serviceAlarm
=
new
ServiceAlarm
();
serviceAlarm
.
setId
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getServiceId
());
serviceAlarm
.
setApplicationId
(
inputMetric
.
getApplicationId
());
serviceAlarm
.
setInstanceId
(
inputMetric
.
getInstanceId
());
serviceAlarm
.
setServiceId
(
inputMetric
.
getServiceId
());
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/service/ServiceMetricAlarmToListNodeProcessor.java
浏览文件 @
eb656cd4
...
...
@@ -39,7 +39,8 @@ public class ServiceMetricAlarmToListNodeProcessor implements NodeProcessor<Serv
+
Const
.
ID_SPLIT
+
serviceAlarm
.
getAlarmType
()
+
Const
.
ID_SPLIT
+
serviceAlarm
.
getServiceId
();
ServiceAlarmList
serviceAlarmList
=
new
ServiceAlarmList
(
id
);
ServiceAlarmList
serviceAlarmList
=
new
ServiceAlarmList
();
serviceAlarmList
.
setId
(
id
);
serviceAlarmList
.
setApplicationId
(
serviceAlarm
.
getApplicationId
());
serviceAlarmList
.
setInstanceId
(
serviceAlarm
.
getInstanceId
());
serviceAlarmList
.
setServiceId
(
serviceAlarm
.
getServiceId
());
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/service/ServiceReferenceMetricAlarmAssertWorker.java
浏览文件 @
eb656cd4
...
...
@@ -49,7 +49,8 @@ public class ServiceReferenceMetricAlarmAssertWorker extends AlarmAssertWorker<S
}
@Override
protected
ServiceReferenceAlarm
newAlarmObject
(
String
id
,
ServiceReferenceMetric
inputMetric
)
{
ServiceReferenceAlarm
serviceReferenceAlarm
=
new
ServiceReferenceAlarm
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getFrontServiceId
()
+
Const
.
ID_SPLIT
+
inputMetric
.
getBehindServiceId
());
ServiceReferenceAlarm
serviceReferenceAlarm
=
new
ServiceReferenceAlarm
();
serviceReferenceAlarm
.
setId
(
id
+
Const
.
ID_SPLIT
+
inputMetric
.
getFrontServiceId
()
+
Const
.
ID_SPLIT
+
inputMetric
.
getBehindServiceId
());
serviceReferenceAlarm
.
setFrontApplicationId
(
inputMetric
.
getFrontApplicationId
());
serviceReferenceAlarm
.
setBehindApplicationId
(
inputMetric
.
getBehindApplicationId
());
serviceReferenceAlarm
.
setFrontInstanceId
(
inputMetric
.
getFrontInstanceId
());
...
...
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/service/ServiceReferenceMetricAlarmToListNodeProcessor.java
浏览文件 @
eb656cd4
...
...
@@ -40,7 +40,8 @@ public class ServiceReferenceMetricAlarmToListNodeProcessor implements NodeProce
+
Const
.
ID_SPLIT
+
serviceReferenceAlarm
.
getFrontServiceId
()
+
Const
.
ID_SPLIT
+
serviceReferenceAlarm
.
getBehindServiceId
();
ServiceReferenceAlarmList
serviceReferenceAlarmList
=
new
ServiceReferenceAlarmList
(
id
);
ServiceReferenceAlarmList
serviceReferenceAlarmList
=
new
ServiceReferenceAlarmList
();
serviceReferenceAlarmList
.
setId
(
id
);
serviceReferenceAlarmList
.
setFrontApplicationId
(
serviceReferenceAlarm
.
getFrontApplicationId
());
serviceReferenceAlarmList
.
setBehindApplicationId
(
serviceReferenceAlarm
.
getBehindApplicationId
());
serviceReferenceAlarmList
.
setFrontInstanceId
(
serviceReferenceAlarm
.
getFrontInstanceId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/CpuMetricService.java
浏览文件 @
eb656cd4
...
...
@@ -45,7 +45,8 @@ public class CpuMetricService implements ICpuMetricService {
}
@Override
public
void
send
(
int
instanceId
,
long
timeBucket
,
double
usagePercent
)
{
CpuMetric
cpuMetric
=
new
CpuMetric
(
timeBucket
+
Const
.
ID_SPLIT
+
instanceId
);
CpuMetric
cpuMetric
=
new
CpuMetric
();
cpuMetric
.
setId
(
timeBucket
+
Const
.
ID_SPLIT
+
instanceId
);
cpuMetric
.
setInstanceId
(
instanceId
);
cpuMetric
.
setUsagePercent
(
usagePercent
);
cpuMetric
.
setTimeBucket
(
timeBucket
);
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/GCMetricService.java
浏览文件 @
eb656cd4
...
...
@@ -45,7 +45,8 @@ public class GCMetricService implements IGCMetricService {
}
@Override
public
void
send
(
int
instanceId
,
long
timeBucket
,
int
phraseValue
,
long
count
,
long
time
)
{
GCMetric
gcMetric
=
new
GCMetric
(
timeBucket
+
Const
.
ID_SPLIT
+
instanceId
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
phraseValue
));
GCMetric
gcMetric
=
new
GCMetric
();
gcMetric
.
setId
(
timeBucket
+
Const
.
ID_SPLIT
+
instanceId
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
phraseValue
));
gcMetric
.
setInstanceId
(
instanceId
);
gcMetric
.
setPhrase
(
phraseValue
);
gcMetric
.
setCount
(
count
);
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/InstanceHeartBeatService.java
浏览文件 @
eb656cd4
...
...
@@ -45,7 +45,8 @@ public class InstanceHeartBeatService implements IInstanceHeartBeatService {
}
@Override
public
void
send
(
int
instanceId
,
long
heartBeatTime
)
{
Instance
instance
=
new
Instance
(
String
.
valueOf
(
instanceId
));
Instance
instance
=
new
Instance
();
instance
.
setId
(
String
.
valueOf
(
instanceId
));
instance
.
setHeartBeatTime
(
TimeBucketUtils
.
INSTANCE
.
getSecondTimeBucket
(
heartBeatTime
));
instance
.
setInstanceId
(
instanceId
);
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/MemoryMetricService.java
浏览文件 @
eb656cd4
...
...
@@ -46,7 +46,8 @@ public class MemoryMetricService implements IMemoryMetricService {
@Override
public
void
send
(
int
instanceId
,
long
timeBucket
,
boolean
isHeap
,
long
init
,
long
max
,
long
used
,
long
commited
)
{
MemoryMetric
memoryMetric
=
new
MemoryMetric
(
timeBucket
+
Const
.
ID_SPLIT
+
instanceId
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
isHeap
));
MemoryMetric
memoryMetric
=
new
MemoryMetric
();
memoryMetric
.
setId
(
timeBucket
+
Const
.
ID_SPLIT
+
instanceId
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
isHeap
));
memoryMetric
.
setInstanceId
(
instanceId
);
memoryMetric
.
setIsHeap
(
isHeap
);
memoryMetric
.
setInit
(
init
);
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/MemoryPoolMetricService.java
浏览文件 @
eb656cd4
...
...
@@ -46,7 +46,8 @@ public class MemoryPoolMetricService implements IMemoryPoolMetricService {
@Override
public
void
send
(
int
instanceId
,
long
timeBucket
,
int
poolType
,
long
init
,
long
max
,
long
used
,
long
commited
)
{
MemoryPoolMetric
memoryPoolMetric
=
new
MemoryPoolMetric
(
timeBucket
+
Const
.
ID_SPLIT
+
instanceId
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
poolType
));
MemoryPoolMetric
memoryPoolMetric
=
new
MemoryPoolMetric
();
memoryPoolMetric
.
setId
(
timeBucket
+
Const
.
ID_SPLIT
+
instanceId
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
poolType
));
memoryPoolMetric
.
setInstanceId
(
instanceId
);
memoryPoolMetric
.
setPoolType
(
poolType
);
memoryPoolMetric
.
setInit
(
init
);
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingSpanListener.java
浏览文件 @
eb656cd4
...
...
@@ -49,7 +49,7 @@ public class ApplicationMappingSpanListener implements FirstSpanListener, EntryS
logger
.
debug
(
"application mapping listener parse reference"
);
if
(
spanDecorator
.
getRefsCount
()
>
0
)
{
for
(
int
i
=
0
;
i
<
spanDecorator
.
getRefsCount
();
i
++)
{
ApplicationMapping
applicationMapping
=
new
ApplicationMapping
(
Const
.
EMPTY_STRING
);
ApplicationMapping
applicationMapping
=
new
ApplicationMapping
();
applicationMapping
.
setApplicationId
(
applicationId
);
applicationMapping
.
setAddressId
(
spanDecorator
.
getRefs
(
i
).
getNetworkAddressId
());
String
id
=
String
.
valueOf
(
applicationId
)
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
applicationMapping
.
getAddressId
());
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/service/entry/ServiceEntrySpanListener.java
浏览文件 @
eb656cd4
...
...
@@ -75,7 +75,8 @@ public class ServiceEntrySpanListener implements FirstSpanListener, EntrySpanLis
@Override
public
void
build
()
{
logger
.
debug
(
"entry service listener build"
);
if
(!
hasReference
&&
hasEntry
)
{
ServiceEntry
serviceEntry
=
new
ServiceEntry
(
applicationId
+
Const
.
ID_SPLIT
+
entryServiceId
);
ServiceEntry
serviceEntry
=
new
ServiceEntry
();
serviceEntry
.
setId
(
applicationId
+
Const
.
ID_SPLIT
+
entryServiceId
);
serviceEntry
.
setApplicationId
(
applicationId
);
serviceEntry
.
setEntryServiceId
(
entryServiceId
);
serviceEntry
.
setEntryServiceName
(
entryServiceName
);
...
...
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/register/ServiceNameRegisterSerialWorker.java
浏览文件 @
eb656cd4
...
...
@@ -60,13 +60,15 @@ public class ServiceNameRegisterSerialWorker extends AbstractLocalAsyncWorker<Se
int
min
=
serviceNameRegisterDAO
.
getMinServiceId
();
if
(
min
==
0
)
{
ServiceName
noneServiceName
=
new
ServiceName
(
"1"
);
ServiceName
noneServiceName
=
new
ServiceName
();
noneServiceName
.
setId
(
"1"
);
noneServiceName
.
setApplicationId
(
0
);
noneServiceName
.
setServiceId
(
Const
.
NONE_SERVICE_ID
);
noneServiceName
.
setServiceName
(
Const
.
NONE_SERVICE_NAME
);
serviceNameRegisterDAO
.
save
(
noneServiceName
);
newServiceName
=
new
ServiceName
(
"-1"
);
newServiceName
=
new
ServiceName
();
newServiceName
.
setId
(
"-1"
);
newServiceName
.
setApplicationId
(
serviceName
.
getApplicationId
());
newServiceName
.
setServiceId
(-
1
);
newServiceName
.
setServiceName
(
serviceName
.
getServiceName
());
...
...
@@ -74,7 +76,8 @@ public class ServiceNameRegisterSerialWorker extends AbstractLocalAsyncWorker<Se
int
max
=
serviceNameRegisterDAO
.
getMaxServiceId
();
serviceId
=
IdAutoIncrement
.
INSTANCE
.
increment
(
min
,
max
);
newServiceName
=
new
ServiceName
(
String
.
valueOf
(
serviceId
));
newServiceName
=
new
ServiceName
();
newServiceName
.
setId
(
String
.
valueOf
(
serviceId
));
newServiceName
.
setApplicationId
(
serviceName
.
getApplicationId
());
newServiceName
.
setServiceId
(
serviceId
);
newServiceName
.
setServiceName
(
serviceName
.
getServiceName
());
...
...
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/ApplicationIDService.java
浏览文件 @
eb656cd4
...
...
@@ -73,7 +73,8 @@ public class ApplicationIDService implements IApplicationIDService {
int
applicationId
=
getApplicationCacheService
().
getApplicationIdByCode
(
applicationCode
);
if
(
applicationId
==
0
)
{
Application
application
=
new
Application
(
applicationCode
);
Application
application
=
new
Application
();
application
.
setId
(
applicationCode
);
application
.
setApplicationCode
(
applicationCode
);
application
.
setApplicationId
(
0
);
application
.
setAddressId
(
Const
.
NONE
);
...
...
@@ -88,7 +89,8 @@ public class ApplicationIDService implements IApplicationIDService {
int
applicationId
=
getApplicationCacheService
().
getApplicationIdByAddressId
(
addressId
);
if
(
applicationId
==
0
)
{
Application
application
=
new
Application
(
networkAddress
);
Application
application
=
new
Application
();
application
.
setId
(
networkAddress
);
application
.
setApplicationCode
(
networkAddress
);
application
.
setApplicationId
(
0
);
application
.
setAddressId
(
addressId
);
...
...
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/InstanceIDService.java
浏览文件 @
eb656cd4
...
...
@@ -75,7 +75,8 @@ public class InstanceIDService implements IInstanceIDService {
int
instanceId
=
getInstanceCacheService
().
getInstanceIdByAgentUUID
(
applicationId
,
agentUUID
);
if
(
instanceId
==
0
)
{
Instance
instance
=
new
Instance
(
"0"
);
Instance
instance
=
new
Instance
();
instance
.
setId
(
"0"
);
instance
.
setApplicationId
(
applicationId
);
instance
.
setAgentUUID
(
agentUUID
);
instance
.
setRegisterTime
(
registerTime
);
...
...
@@ -95,7 +96,8 @@ public class InstanceIDService implements IInstanceIDService {
int
instanceId
=
getInstanceCacheService
().
getInstanceIdByAddressId
(
applicationId
,
addressId
);
if
(
instanceId
==
0
)
{
Instance
instance
=
new
Instance
(
"0"
);
Instance
instance
=
new
Instance
();
instance
.
setId
(
"0"
);
instance
.
setApplicationId
(
applicationId
);
instance
.
setAgentUUID
(
Const
.
EMPTY_STRING
);
instance
.
setRegisterTime
(
registerTime
);
...
...
@@ -112,7 +114,8 @@ public class InstanceIDService implements IInstanceIDService {
@Override
public
void
recover
(
int
instanceId
,
int
applicationId
,
long
registerTime
,
String
osInfo
)
{
logger
.
debug
(
"instance recover, instance id: {}, application id: {}, register time: {}"
,
instanceId
,
applicationId
,
registerTime
);
Instance
instance
=
new
Instance
(
String
.
valueOf
(
instanceId
));
Instance
instance
=
new
Instance
();
instance
.
setId
(
String
.
valueOf
(
instanceId
));
instance
.
setApplicationId
(
applicationId
);
instance
.
setAgentUUID
(
""
);
instance
.
setRegisterTime
(
registerTime
);
...
...
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/NetworkAddressIDService.java
浏览文件 @
eb656cd4
...
...
@@ -92,7 +92,8 @@ public class NetworkAddressIDService implements INetworkAddressIDService {
}
}
}
else
{
NetworkAddress
newNetworkAddress
=
new
NetworkAddress
(
"0"
);
NetworkAddress
newNetworkAddress
=
new
NetworkAddress
();
newNetworkAddress
.
setId
(
"0"
);
newNetworkAddress
.
setNetworkAddress
(
networkAddress
);
newNetworkAddress
.
setAddressId
(
0
);
...
...
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/ServiceNameService.java
浏览文件 @
eb656cd4
...
...
@@ -63,7 +63,8 @@ public class ServiceNameService implements IServiceNameService {
int
serviceId
=
getServiceIdCacheService
().
get
(
applicationId
,
serviceName
);
if
(
serviceId
==
0
)
{
ServiceName
service
=
new
ServiceName
(
"0"
);
ServiceName
service
=
new
ServiceName
();
service
.
setId
(
"0"
);
service
.
setApplicationId
(
applicationId
);
service
.
setServiceName
(
serviceName
);
service
.
setServiceId
(
0
);
...
...
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/SegmentParse.java
浏览文件 @
eb656cd4
...
...
@@ -162,7 +162,8 @@ public class SegmentParse {
}
private
void
buildSegment
(
String
id
,
byte
[]
dataBinary
)
{
Segment
segment
=
new
Segment
(
id
);
Segment
segment
=
new
Segment
();
segment
.
setId
(
id
);
segment
.
setDataBinary
(
dataBinary
);
segment
.
setTimeBucket
(
timeBucket
);
Graph
<
Segment
>
graph
=
GraphManager
.
INSTANCE
.
findGraph
(
GraphIdDefine
.
SEGMENT_PERSISTENCE_GRAPH_ID
,
Segment
.
class
);
...
...
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/standardization/SegmentStandardization.java
浏览文件 @
eb656cd4
...
...
@@ -16,19 +16,35 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.segment.parser.provider.parser.standardization
;
import
org.apache.skywalking.apm.collector.core.data.EndOfBatchQueueMessage
;
import
org.apache.skywalking.apm.collector.core.data.QueueData
;
import
org.apache.skywalking.apm.collector.core.queue.EndOfBatchContext
;
import
org.apache.skywalking.apm.network.proto.UpstreamSegment
;
/**
* @author peng-yongsheng
*/
public
class
SegmentStandardization
extends
EndOfBatchQueueMessage
{
public
class
SegmentStandardization
implements
QueueData
{
private
final
String
id
;
public
SegmentStandardization
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getId
()
{
return
id
;
}
private
EndOfBatchContext
context
;
@Override
public
EndOfBatchContext
getEndOfBatchContext
()
{
return
this
.
context
;
}
public
SegmentStandardization
(
String
key
)
{
super
(
key
)
;
@Override
public
void
setEndOfBatchContext
(
EndOfBatchContext
context
)
{
this
.
context
=
context
;
}
private
UpstreamSegment
upstreamSegment
;
...
...
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/TableDefine.java
浏览文件 @
eb656cd4
...
...
@@ -35,8 +35,6 @@ public abstract class TableDefine {
public
abstract
void
initialize
();
public
abstract
boolean
isPyramidTable
();
public
final
void
addColumn
(
ColumnDefine
columnDefine
)
{
columnDefines
.
add
(
columnDefine
);
}
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ApplicationAlarmList.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationAlarmList
extends
Abstract
Data
{
public
class
ApplicationAlarmList
extends
Stream
Data
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ApplicationAlarmListTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -49,8 +49,24 @@ public class ApplicationAlarmList extends AbstractData {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
ApplicationAlarmList
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
ApplicationAlarmList
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
public
Integer
getAlarmType
()
{
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ApplicationReferenceAlarm.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationReferenceAlarm
extends
Abstract
Data
implements
Alarm
{
public
class
ApplicationReferenceAlarm
extends
Stream
Data
implements
Alarm
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ApplicationReferenceAlarmTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -50,8 +50,24 @@ public class ApplicationReferenceAlarm extends AbstractData implements Alarm {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
ApplicationReferenceAlarm
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
ApplicationReferenceAlarm
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
@Override
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ApplicationReferenceAlarmList.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationReferenceAlarmList
extends
Abstract
Data
{
public
class
ApplicationReferenceAlarmList
extends
Stream
Data
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ApplicationReferenceAlarmListTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -50,8 +50,24 @@ public class ApplicationReferenceAlarmList extends AbstractData {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
ApplicationReferenceAlarmList
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
ApplicationReferenceAlarmList
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
public
Integer
getAlarmType
()
{
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/InstanceAlarm.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
InstanceAlarm
extends
Abstract
Data
implements
Alarm
{
public
class
InstanceAlarm
extends
Stream
Data
implements
Alarm
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
InstanceAlarmTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -50,8 +50,24 @@ public class InstanceAlarm extends AbstractData implements Alarm {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
InstanceAlarm
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
InstanceAlarm
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
@Override
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/InstanceAlarmList.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
InstanceAlarmList
extends
Abstract
Data
{
public
class
InstanceAlarmList
extends
Stream
Data
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
InstanceAlarmListTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -50,8 +50,24 @@ public class InstanceAlarmList extends AbstractData {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
InstanceAlarmList
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
InstanceAlarmList
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
public
Integer
getAlarmType
()
{
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/InstanceReferenceAlarm.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
InstanceReferenceAlarm
extends
Abstract
Data
implements
Alarm
{
public
class
InstanceReferenceAlarm
extends
Stream
Data
implements
Alarm
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
InstanceReferenceAlarmTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -52,8 +52,24 @@ public class InstanceReferenceAlarm extends AbstractData implements Alarm {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
InstanceReferenceAlarm
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
InstanceReferenceAlarm
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
@Override
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/InstanceReferenceAlarmList.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
InstanceReferenceAlarmList
extends
Abstract
Data
{
public
class
InstanceReferenceAlarmList
extends
Stream
Data
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
InstanceReferenceAlarmListTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -52,8 +52,24 @@ public class InstanceReferenceAlarmList extends AbstractData {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
InstanceReferenceAlarmList
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
InstanceReferenceAlarmList
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
public
Integer
getAlarmType
()
{
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ServiceAlarm.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
ServiceAlarm
extends
Abstract
Data
implements
Alarm
{
public
class
ServiceAlarm
extends
Stream
Data
implements
Alarm
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ServiceAlarmTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -51,8 +51,24 @@ public class ServiceAlarm extends AbstractData implements Alarm {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
ServiceAlarm
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
ServiceAlarm
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
@Override
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ServiceAlarmList.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
ServiceAlarmList
extends
Abstract
Data
{
public
class
ServiceAlarmList
extends
Stream
Data
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ServiceAlarmListTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -51,8 +51,24 @@ public class ServiceAlarmList extends AbstractData {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
ServiceAlarmList
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
ServiceAlarmList
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
public
Integer
getAlarmType
()
{
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ServiceReferenceAlarm.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
ServiceReferenceAlarm
extends
Abstract
Data
implements
Alarm
{
public
class
ServiceReferenceAlarm
extends
Stream
Data
implements
Alarm
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ServiceReferenceAlarmTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -54,8 +54,24 @@ public class ServiceReferenceAlarm extends AbstractData implements Alarm {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
ServiceReferenceAlarm
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
ServiceReferenceAlarm
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
@Override
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/alarm/ServiceReferenceAlarmList.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.alarm
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Abstract
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
ServiceReferenceAlarmList
extends
Abstract
Data
{
public
class
ServiceReferenceAlarmList
extends
Stream
Data
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ServiceReferenceAlarmListTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -54,8 +54,24 @@ public class ServiceReferenceAlarmList extends AbstractData {
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
ServiceReferenceAlarmList
(
String
id
)
{
super
(
id
,
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
public
ServiceReferenceAlarmList
()
{
super
(
STRING_COLUMNS
,
LONG_COLUMNS
,
DOUBLE_COLUMNS
,
INTEGER_COLUMNS
,
BOOLEAN_COLUMNS
,
BYTE_COLUMNS
);
}
@Override
public
String
getId
()
{
return
getDataString
(
0
);
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
public
Integer
getAlarmType
()
{
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/register/Application.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.register
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Register
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
Application
extends
Register
Data
{
public
class
Application
extends
Stream
Data
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ApplicationTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -60,6 +60,14 @@ public class Application extends RegisterData {
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
public
String
getApplicationCode
()
{
return
getDataString
(
1
);
}
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/register/Instance.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.register
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Register
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
Instance
extends
Register
Data
{
public
class
Instance
extends
Stream
Data
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
InstanceTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -65,6 +65,14 @@ public class Instance extends RegisterData {
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
public
int
getApplicationId
()
{
return
getDataInteger
(
0
);
}
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/register/NetworkAddress.java
浏览文件 @
eb656cd4
...
...
@@ -19,13 +19,13 @@
package
org.apache.skywalking.apm.collector.storage.table.register
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Register
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
NetworkAddress
extends
Register
Data
{
public
class
NetworkAddress
extends
Stream
Data
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
NetworkAddressTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -57,6 +57,14 @@ public class NetworkAddress extends RegisterData {
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
public
String
getNetworkAddress
()
{
return
getDataString
(
1
);
}
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/register/ServiceName.java
浏览文件 @
eb656cd4
...
...
@@ -19,14 +19,14 @@
package
org.apache.skywalking.apm.collector.storage.table.register
;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.
Register
Data
;
import
org.apache.skywalking.apm.collector.core.data.
Stream
Data
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
* @author peng-yongsheng
*/
public
class
ServiceName
extends
Register
Data
{
public
class
ServiceName
extends
Stream
Data
{
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ServiceNameTable
.
COLUMN_ID
,
new
NonOperation
()),
...
...
@@ -55,6 +55,14 @@ public class ServiceName extends RegisterData {
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
getId
();
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setId
(
metricId
);
}
public
String
getServiceName
()
{
return
getDataString
(
1
);
}
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/service/ServiceMetric.java
浏览文件 @
eb656cd4
...
...
@@ -31,7 +31,6 @@ public class ServiceMetric extends StreamData implements Metric {
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ServiceMetricTable
.
COLUMN_ID
,
new
NonOperation
()),
new
Column
(
ServiceMetricTable
.
COLUMN_METRIC_ID
,
new
NonOperation
()),
};
private
static
final
Column
[]
LONG_COLUMNS
=
{
...
...
@@ -77,11 +76,11 @@ public class ServiceMetric extends StreamData implements Metric {
}
@Override
public
String
getMetricId
()
{
return
get
DataString
(
1
);
return
get
Id
(
);
}
@Override
public
void
setMetricId
(
String
metricId
)
{
set
DataString
(
1
,
metricId
);
set
Id
(
metricId
);
}
@Override
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ApplicationAlarmEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,9 @@ public class ApplicationAlarmEsPersistenceDAO extends EsDAO implements IApplicat
@Override
public
ApplicationAlarm
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
ApplicationAlarmTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
ApplicationAlarm
instanceAlarm
=
new
ApplicationAlarm
(
id
);
ApplicationAlarm
instanceAlarm
=
new
ApplicationAlarm
();
instanceAlarm
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
instanceAlarm
.
setApplicationId
(((
Number
)
source
.
get
(
ApplicationAlarmTable
.
COLUMN_APPLICATION_ID
)).
intValue
());
instanceAlarm
.
setSourceValue
(((
Number
)
source
.
get
(
ApplicationAlarmTable
.
COLUMN_SOURCE_VALUE
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ApplicationAlarmListEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class ApplicationAlarmListEsPersistenceDAO extends EsDAO implements IAppl
@Override
public
ApplicationAlarmList
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
ApplicationAlarmListTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
ApplicationAlarmList
applicationAlarmList
=
new
ApplicationAlarmList
(
id
);
ApplicationAlarmList
applicationAlarmList
=
new
ApplicationAlarmList
();
applicationAlarmList
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
applicationAlarmList
.
setApplicationId
(((
Number
)
source
.
get
(
ApplicationAlarmListTable
.
COLUMN_APPLICATION_ID
)).
intValue
());
applicationAlarmList
.
setSourceValue
(((
Number
)
source
.
get
(
ApplicationAlarmListTable
.
COLUMN_SOURCE_VALUE
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ApplicationReferenceAlarmEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class ApplicationReferenceAlarmEsPersistenceDAO extends EsDAO implements
@Override
public
ApplicationReferenceAlarm
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
ApplicationReferenceAlarmTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
ApplicationReferenceAlarm
applicationReferenceAlarm
=
new
ApplicationReferenceAlarm
(
id
);
ApplicationReferenceAlarm
applicationReferenceAlarm
=
new
ApplicationReferenceAlarm
();
applicationReferenceAlarm
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
applicationReferenceAlarm
.
setFrontApplicationId
(((
Number
)
source
.
get
(
ApplicationReferenceAlarmTable
.
COLUMN_FRONT_APPLICATION_ID
)).
intValue
());
applicationReferenceAlarm
.
setBehindApplicationId
(((
Number
)
source
.
get
(
ApplicationReferenceAlarmTable
.
COLUMN_BEHIND_APPLICATION_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ApplicationReferenceAlarmListEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class ApplicationReferenceAlarmListEsPersistenceDAO extends EsDAO impleme
@Override
public
ApplicationReferenceAlarmList
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
ApplicationReferenceAlarmListTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
ApplicationReferenceAlarmList
applicationReferenceAlarmList
=
new
ApplicationReferenceAlarmList
(
id
);
ApplicationReferenceAlarmList
applicationReferenceAlarmList
=
new
ApplicationReferenceAlarmList
();
applicationReferenceAlarmList
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
applicationReferenceAlarmList
.
setFrontApplicationId
(((
Number
)
source
.
get
(
ApplicationReferenceAlarmListTable
.
COLUMN_FRONT_APPLICATION_ID
)).
intValue
());
applicationReferenceAlarmList
.
setBehindApplicationId
(((
Number
)
source
.
get
(
ApplicationReferenceAlarmListTable
.
COLUMN_BEHIND_APPLICATION_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceAlarmEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class InstanceAlarmEsPersistenceDAO extends EsDAO implements IInstanceAla
@Override
public
InstanceAlarm
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
InstanceAlarmTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
InstanceAlarm
instanceAlarm
=
new
InstanceAlarm
(
id
);
InstanceAlarm
instanceAlarm
=
new
InstanceAlarm
();
instanceAlarm
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
instanceAlarm
.
setApplicationId
(((
Number
)
source
.
get
(
InstanceAlarmTable
.
COLUMN_APPLICATION_ID
)).
intValue
());
instanceAlarm
.
setInstanceId
(((
Number
)
source
.
get
(
InstanceAlarmTable
.
COLUMN_INSTANCE_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceAlarmListEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class InstanceAlarmListEsPersistenceDAO extends EsDAO implements IInstanc
@Override
public
InstanceAlarmList
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
InstanceAlarmListTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
InstanceAlarmList
instanceAlarmList
=
new
InstanceAlarmList
(
id
);
InstanceAlarmList
instanceAlarmList
=
new
InstanceAlarmList
();
instanceAlarmList
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
instanceAlarmList
.
setApplicationId
(((
Number
)
source
.
get
(
InstanceAlarmListTable
.
COLUMN_APPLICATION_ID
)).
intValue
());
instanceAlarmList
.
setInstanceId
(((
Number
)
source
.
get
(
InstanceAlarmListTable
.
COLUMN_INSTANCE_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceEsUIDAO.java
浏览文件 @
eb656cd4
...
...
@@ -128,7 +128,8 @@ public class InstanceEsUIDAO extends EsDAO implements IInstanceUIDAO {
GetRequestBuilder
requestBuilder
=
getClient
().
prepareGet
(
InstanceTable
.
TABLE
,
String
.
valueOf
(
instanceId
));
GetResponse
getResponse
=
requestBuilder
.
get
();
if
(
getResponse
.
isExists
())
{
Instance
instance
=
new
Instance
(
getResponse
.
getId
());
Instance
instance
=
new
Instance
();
instance
.
setId
(
getResponse
.
getId
());
instance
.
setApplicationId
(((
Number
)
getResponse
.
getSource
().
get
(
InstanceTable
.
COLUMN_APPLICATION_ID
)).
intValue
());
instance
.
setAgentUUID
((
String
)
getResponse
.
getSource
().
get
(
InstanceTable
.
COLUMN_AGENT_UUID
));
instance
.
setRegisterTime
(((
Number
)
getResponse
.
getSource
().
get
(
InstanceTable
.
COLUMN_REGISTER_TIME
)).
longValue
());
...
...
@@ -156,7 +157,8 @@ public class InstanceEsUIDAO extends EsDAO implements IInstanceUIDAO {
List
<
Instance
>
instanceList
=
new
LinkedList
<>();
for
(
SearchHit
searchHit
:
searchHits
)
{
Instance
instance
=
new
Instance
(
searchHit
.
getId
());
Instance
instance
=
new
Instance
();
instance
.
setId
(
searchHit
.
getId
());
instance
.
setApplicationId
(((
Number
)
searchHit
.
getSource
().
get
(
InstanceTable
.
COLUMN_APPLICATION_ID
)).
intValue
());
instance
.
setHeartBeatTime
(((
Number
)
searchHit
.
getSource
().
get
(
InstanceTable
.
COLUMN_HEARTBEAT_TIME
)).
longValue
());
instance
.
setInstanceId
(((
Number
)
searchHit
.
getSource
().
get
(
InstanceTable
.
COLUMN_INSTANCE_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceHeartBeatEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -46,7 +46,8 @@ public class InstanceHeartBeatEsPersistenceDAO extends EsDAO implements IInstanc
@Override
public
Instance
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
InstanceTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
Instance
instance
=
new
Instance
(
id
);
Instance
instance
=
new
Instance
();
instance
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
instance
.
setInstanceId
((
Integer
)
source
.
get
(
InstanceTable
.
COLUMN_INSTANCE_ID
));
instance
.
setHeartBeatTime
((
Long
)
source
.
get
(
InstanceTable
.
COLUMN_HEARTBEAT_TIME
));
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceReferenceAlarmEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class InstanceReferenceAlarmEsPersistenceDAO extends EsDAO implements IIn
@Override
public
InstanceReferenceAlarm
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
InstanceReferenceAlarmTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
InstanceReferenceAlarm
instanceReferenceAlarm
=
new
InstanceReferenceAlarm
(
id
);
InstanceReferenceAlarm
instanceReferenceAlarm
=
new
InstanceReferenceAlarm
();
instanceReferenceAlarm
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
instanceReferenceAlarm
.
setFrontApplicationId
(((
Number
)
source
.
get
(
InstanceReferenceAlarmTable
.
COLUMN_FRONT_APPLICATION_ID
)).
intValue
());
instanceReferenceAlarm
.
setBehindApplicationId
(((
Number
)
source
.
get
(
InstanceReferenceAlarmTable
.
COLUMN_BEHIND_APPLICATION_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceReferenceAlarmListEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class InstanceReferenceAlarmListEsPersistenceDAO extends EsDAO implements
@Override
public
InstanceReferenceAlarmList
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
InstanceReferenceAlarmListTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
InstanceReferenceAlarmList
serviceReferenceAlarmList
=
new
InstanceReferenceAlarmList
(
id
);
InstanceReferenceAlarmList
serviceReferenceAlarmList
=
new
InstanceReferenceAlarmList
();
serviceReferenceAlarmList
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
serviceReferenceAlarmList
.
setFrontApplicationId
(((
Number
)
source
.
get
(
InstanceReferenceAlarmListTable
.
COLUMN_FRONT_APPLICATION_ID
)).
intValue
());
serviceReferenceAlarmList
.
setBehindApplicationId
(((
Number
)
source
.
get
(
InstanceReferenceAlarmListTable
.
COLUMN_BEHIND_APPLICATION_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ServiceAlarmEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class ServiceAlarmEsPersistenceDAO extends EsDAO implements IServiceAlarm
@Override
public
ServiceAlarm
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
ServiceAlarmTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
ServiceAlarm
serviceAlarm
=
new
ServiceAlarm
(
id
);
ServiceAlarm
serviceAlarm
=
new
ServiceAlarm
();
serviceAlarm
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
serviceAlarm
.
setApplicationId
(((
Number
)
source
.
get
(
ServiceAlarmTable
.
COLUMN_APPLICATION_ID
)).
intValue
());
serviceAlarm
.
setInstanceId
(((
Number
)
source
.
get
(
ServiceAlarmTable
.
COLUMN_INSTANCE_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ServiceAlarmListEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class ServiceAlarmListEsPersistenceDAO extends EsDAO implements IServiceA
@Override
public
ServiceAlarmList
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
ServiceAlarmListTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
ServiceAlarmList
serviceAlarmList
=
new
ServiceAlarmList
(
id
);
ServiceAlarmList
serviceAlarmList
=
new
ServiceAlarmList
();
serviceAlarmList
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
serviceAlarmList
.
setApplicationId
(((
Number
)
source
.
get
(
ServiceAlarmListTable
.
COLUMN_APPLICATION_ID
)).
intValue
());
serviceAlarmList
.
setInstanceId
(((
Number
)
source
.
get
(
ServiceAlarmListTable
.
COLUMN_INSTANCE_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ServiceReferenceAlarmEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class ServiceReferenceAlarmEsPersistenceDAO extends EsDAO implements ISer
@Override
public
ServiceReferenceAlarm
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
ServiceReferenceAlarmTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
ServiceReferenceAlarm
serviceReferenceAlarm
=
new
ServiceReferenceAlarm
(
id
);
ServiceReferenceAlarm
serviceReferenceAlarm
=
new
ServiceReferenceAlarm
();
serviceReferenceAlarm
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
serviceReferenceAlarm
.
setFrontApplicationId
(((
Number
)
source
.
get
(
ServiceReferenceAlarmTable
.
COLUMN_FRONT_APPLICATION_ID
)).
intValue
());
serviceReferenceAlarm
.
setBehindApplicationId
(((
Number
)
source
.
get
(
ServiceReferenceAlarmTable
.
COLUMN_BEHIND_APPLICATION_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ServiceReferenceAlarmListEsPersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -48,7 +48,8 @@ public class ServiceReferenceAlarmListEsPersistenceDAO extends EsDAO implements
@Override
public
ServiceReferenceAlarmList
get
(
String
id
)
{
GetResponse
getResponse
=
getClient
().
prepareGet
(
ServiceReferenceAlarmListTable
.
TABLE
,
id
).
get
();
if
(
getResponse
.
isExists
())
{
ServiceReferenceAlarmList
serviceReferenceAlarmList
=
new
ServiceReferenceAlarmList
(
id
);
ServiceReferenceAlarmList
serviceReferenceAlarmList
=
new
ServiceReferenceAlarmList
();
serviceReferenceAlarmList
.
setId
(
id
);
Map
<
String
,
Object
>
source
=
getResponse
.
getSource
();
serviceReferenceAlarmList
.
setFrontApplicationId
(((
Number
)
source
.
get
(
ServiceReferenceAlarmListTable
.
COLUMN_FRONT_APPLICATION_ID
)).
intValue
());
serviceReferenceAlarmList
.
setBehindApplicationId
(((
Number
)
source
.
get
(
ServiceReferenceAlarmListTable
.
COLUMN_BEHIND_APPLICATION_ID
)).
intValue
());
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ApplicationComponentH2MinutePersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao
;
import
java.sql.ResultSet
;
...
...
@@ -26,13 +25,13 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationComponentTable
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationComponent
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationComponentTable
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -54,7 +53,8 @@ public class ApplicationComponentH2MinutePersistenceDAO extends H2DAO implements
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
ApplicationComponent
applicationComponent
=
new
ApplicationComponent
(
id
);
ApplicationComponent
applicationComponent
=
new
ApplicationComponent
();
applicationComponent
.
setId
(
id
);
applicationComponent
.
setComponentId
(
rs
.
getInt
(
ApplicationComponentTable
.
COLUMN_COMPONENT_ID
));
applicationComponent
.
setPeerId
(
rs
.
getInt
(
ApplicationComponentTable
.
COLUMN_PEER_ID
));
applicationComponent
.
setTimeBucket
(
rs
.
getLong
(
ApplicationComponentTable
.
COLUMN_TIME_BUCKET
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ApplicationMappingH2MinutePersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao
;
import
java.sql.ResultSet
;
...
...
@@ -26,13 +25,13 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationMapping
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationMappingTable
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -54,7 +53,8 @@ public class ApplicationMappingH2MinutePersistenceDAO extends H2DAO implements I
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
ApplicationMapping
applicationMapping
=
new
ApplicationMapping
(
id
);
ApplicationMapping
applicationMapping
=
new
ApplicationMapping
();
applicationMapping
.
setId
(
id
);
applicationMapping
.
setApplicationId
(
rs
.
getInt
(
ApplicationMappingTable
.
COLUMN_APPLICATION_ID
));
applicationMapping
.
setAddressId
(
rs
.
getInt
(
ApplicationMappingTable
.
COLUMN_ADDRESS_ID
));
applicationMapping
.
setTimeBucket
(
rs
.
getLong
(
ApplicationMappingTable
.
COLUMN_TIME_BUCKET
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ApplicationMinuteMetricH2PersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao
;
import
java.sql.ResultSet
;
...
...
@@ -26,13 +25,13 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationMetric
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationMetricTable
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -54,7 +53,8 @@ public class ApplicationMinuteMetricH2PersistenceDAO extends H2DAO implements IA
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
ApplicationMetric
applicationMetric
=
new
ApplicationMetric
(
id
);
ApplicationMetric
applicationMetric
=
new
ApplicationMetric
();
applicationMetric
.
setId
(
id
);
applicationMetric
.
setApplicationId
(
rs
.
getInt
(
ApplicationMetricTable
.
COLUMN_APPLICATION_ID
));
applicationMetric
.
setTransactionCalls
(
rs
.
getLong
(
ApplicationMetricTable
.
COLUMN_TRANSACTION_CALLS
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ApplicationReferenceMinuteMetricH2PersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao
;
import
java.sql.ResultSet
;
...
...
@@ -25,14 +24,14 @@ import java.util.ArrayList;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetricTable
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetricTable
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -54,7 +53,8 @@ public class ApplicationReferenceMinuteMetricH2PersistenceDAO extends H2DAO impl
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
ApplicationReferenceMetric
applicationReferenceMetric
=
new
ApplicationReferenceMetric
(
id
);
ApplicationReferenceMetric
applicationReferenceMetric
=
new
ApplicationReferenceMetric
();
applicationReferenceMetric
.
setId
(
id
);
applicationReferenceMetric
.
setFrontApplicationId
(
rs
.
getInt
(
ApplicationReferenceMetricTable
.
COLUMN_FRONT_APPLICATION_ID
));
applicationReferenceMetric
.
setBehindApplicationId
(
rs
.
getInt
(
ApplicationReferenceMetricTable
.
COLUMN_BEHIND_APPLICATION_ID
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceH2UIDAO.java
浏览文件 @
eb656cd4
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao
;
import
com.google.gson.JsonArray
;
...
...
@@ -25,14 +24,14 @@ import java.sql.ResultSet;
import
java.sql.SQLException
;
import
java.util.LinkedList
;
import
java.util.List
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
import
org.apache.skywalking.apm.collector.storage.table.register.InstanceTable
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.core.util.TimeBucketUtils
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
import
org.apache.skywalking.apm.collector.storage.table.register.InstanceTable
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -117,7 +116,8 @@ public class InstanceH2UIDAO extends H2DAO implements IInstanceUIDAO {
Object
[]
params
=
new
Object
[]
{
instanceId
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
Instance
instance
=
new
Instance
(
rs
.
getString
(
InstanceTable
.
COLUMN_ID
));
Instance
instance
=
new
Instance
();
instance
.
setId
(
rs
.
getString
(
InstanceTable
.
COLUMN_ID
));
instance
.
setApplicationId
(
rs
.
getInt
(
InstanceTable
.
COLUMN_APPLICATION_ID
));
instance
.
setAgentUUID
(
rs
.
getString
(
InstanceTable
.
COLUMN_AGENT_UUID
));
instance
.
setRegisterTime
(
rs
.
getLong
(
InstanceTable
.
COLUMN_REGISTER_TIME
));
...
...
@@ -140,7 +140,8 @@ public class InstanceH2UIDAO extends H2DAO implements IInstanceUIDAO {
Object
[]
params
=
new
Object
[]
{
applicationId
,
timeBucket
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
while
(
rs
.
next
())
{
Instance
instance
=
new
Instance
(
rs
.
getString
(
InstanceTable
.
COLUMN_ID
));
Instance
instance
=
new
Instance
();
instance
.
setId
(
rs
.
getString
(
InstanceTable
.
COLUMN_ID
));
instance
.
setApplicationId
(
rs
.
getInt
(
InstanceTable
.
COLUMN_APPLICATION_ID
));
instance
.
setHeartBeatTime
(
rs
.
getLong
(
InstanceTable
.
COLUMN_HEARTBEAT_TIME
));
instance
.
setInstanceId
(
rs
.
getInt
(
InstanceTable
.
COLUMN_INSTANCE_ID
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceHeartBeatH2PersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao
;
import
java.sql.ResultSet
;
...
...
@@ -26,6 +25,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.core.UnexpectedException
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceHeartBeatPersistenceDAO
;
...
...
@@ -33,7 +33,6 @@ import org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
import
org.apache.skywalking.apm.collector.storage.table.register.InstanceTable
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -56,7 +55,8 @@ public class InstanceHeartBeatH2PersistenceDAO extends H2DAO implements IInstanc
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
Instance
instance
=
new
Instance
(
id
);
Instance
instance
=
new
Instance
();
instance
.
setId
(
id
);
instance
.
setInstanceId
(
rs
.
getInt
(
InstanceTable
.
COLUMN_INSTANCE_ID
));
instance
.
setHeartBeatTime
(
rs
.
getLong
(
InstanceTable
.
COLUMN_HEARTBEAT_TIME
));
return
instance
;
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceMappingH2MinutePersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -53,7 +53,8 @@ public class InstanceMappingH2MinutePersistenceDAO extends H2DAO implements IIns
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
InstanceMapping
instanceMapping
=
new
InstanceMapping
(
id
);
InstanceMapping
instanceMapping
=
new
InstanceMapping
();
instanceMapping
.
setId
(
id
);
instanceMapping
.
setApplicationId
(
rs
.
getInt
(
InstanceMappingTable
.
COLUMN_APPLICATION_ID
));
instanceMapping
.
setInstanceId
(
rs
.
getInt
(
InstanceMappingTable
.
COLUMN_INSTANCE_ID
));
instanceMapping
.
setAddressId
(
rs
.
getInt
(
InstanceMappingTable
.
COLUMN_ADDRESS_ID
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceMinuteMetricH2PersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao
;
import
java.sql.ResultSet
;
...
...
@@ -25,13 +24,13 @@ import java.util.ArrayList;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetricTable
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -54,7 +53,8 @@ public class InstanceMinuteMetricH2PersistenceDAO extends H2DAO implements IInst
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
InstanceMetric
instanceMetric
=
new
InstanceMetric
(
id
);
InstanceMetric
instanceMetric
=
new
InstanceMetric
();
instanceMetric
.
setId
(
id
);
instanceMetric
.
setApplicationId
(
rs
.
getInt
(
InstanceMetricTable
.
COLUMN_APPLICATION_ID
));
instanceMetric
.
setInstanceId
(
rs
.
getInt
(
InstanceMetricTable
.
COLUMN_INSTANCE_ID
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceReferenceMetricH2PersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -53,7 +53,8 @@ public class InstanceReferenceMetricH2PersistenceDAO extends H2DAO implements II
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
InstanceReferenceMetric
instanceReferenceMetric
=
new
InstanceReferenceMetric
(
id
);
InstanceReferenceMetric
instanceReferenceMetric
=
new
InstanceReferenceMetric
();
instanceReferenceMetric
.
setId
(
id
);
instanceReferenceMetric
.
setFrontInstanceId
(
rs
.
getInt
(
InstanceReferenceMetricTable
.
COLUMN_FRONT_INSTANCE_ID
));
instanceReferenceMetric
.
setBehindInstanceId
(
rs
.
getInt
(
InstanceReferenceMetricTable
.
COLUMN_BEHIND_INSTANCE_ID
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ServiceEntryH2PersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao
;
import
java.sql.ResultSet
;
...
...
@@ -54,7 +53,8 @@ public class ServiceEntryH2PersistenceDAO extends H2DAO implements IServiceEntry
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
ServiceEntry
serviceEntry
=
new
ServiceEntry
(
id
);
ServiceEntry
serviceEntry
=
new
ServiceEntry
();
serviceEntry
.
setId
(
id
);
serviceEntry
.
setApplicationId
(
rs
.
getInt
(
ServiceEntryTable
.
COLUMN_APPLICATION_ID
));
serviceEntry
.
setEntryServiceId
(
rs
.
getInt
(
ServiceEntryTable
.
COLUMN_ENTRY_SERVICE_ID
));
serviceEntry
.
setEntryServiceName
(
rs
.
getString
(
ServiceEntryTable
.
COLUMN_ENTRY_SERVICE_NAME
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ServiceMinuteMetricH2PersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao
;
import
java.sql.ResultSet
;
...
...
@@ -25,14 +24,14 @@ import java.util.ArrayList;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.service.ServiceMetricTable
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.smp.IServiceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.service.ServiceMetric
;
import
org.apache.skywalking.apm.collector.storage.table.service.ServiceMetricTable
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -55,7 +54,8 @@ public class ServiceMinuteMetricH2PersistenceDAO extends H2DAO implements IServi
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
ServiceMetric
serviceMetric
=
new
ServiceMetric
(
id
);
ServiceMetric
serviceMetric
=
new
ServiceMetric
();
serviceMetric
.
setId
(
id
);
serviceMetric
.
setServiceId
(
rs
.
getInt
(
ServiceMetricTable
.
COLUMN_SERVICE_ID
));
serviceMetric
.
setTransactionCalls
(
rs
.
getLong
(
ServiceMetricTable
.
COLUMN_TRANSACTION_CALLS
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ServiceReferenceMetricH2PersistenceDAO.java
浏览文件 @
eb656cd4
...
...
@@ -54,7 +54,8 @@ public class ServiceReferenceMetricH2PersistenceDAO extends H2DAO implements ISe
Object
[]
params
=
new
Object
[]
{
id
};
try
(
ResultSet
rs
=
client
.
executeQuery
(
sql
,
params
))
{
if
(
rs
.
next
())
{
ServiceReferenceMetric
serviceReferenceMetric
=
new
ServiceReferenceMetric
(
id
);
ServiceReferenceMetric
serviceReferenceMetric
=
new
ServiceReferenceMetric
();
serviceReferenceMetric
.
setId
(
id
);
serviceReferenceMetric
.
setFrontServiceId
(
rs
.
getInt
(
ServiceReferenceMetricTable
.
COLUMN_FRONT_SERVICE_ID
));
serviceReferenceMetric
.
setBehindServiceId
(
rs
.
getInt
(
ServiceReferenceMetricTable
.
COLUMN_BEHIND_SERVICE_ID
));
serviceReferenceMetric
.
setSourceValue
(
rs
.
getInt
(
ServiceReferenceMetricTable
.
COLUMN_SOURCE_VALUE
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录