Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
阿信在这里
SkyWalking
提交
1d0992ee
S
SkyWalking
项目概览
阿信在这里
/
SkyWalking
与 Fork 源项目一致
Fork自
山不在高_有仙则灵 / SkyWalking
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
1d0992ee
编写于
4月 23, 2018
作者:
彭
彭勇升 pengys
提交者:
wu-sheng
4月 23, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Delete aggregate with second time bucket. (#1108)
上级
e11a5df6
变更
71
隐藏空白更改
内联
并排
Showing
71 changed file
with
48 addition
and
1300 deletion
+48
-1300
apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/main/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/JVMMetricsServiceHandler.java
...agent/grpc/provider/handler/JVMMetricsServiceHandler.java
+5
-5
apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/test/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/mock/AgentDataMock.java
...ector/agent/grpc/provider/handler/mock/AgentDataMock.java
+2
-2
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/graph/WorkerIdDefine.java
...m/collector/analysis/jvm/define/graph/WorkerIdDefine.java
+0
-8
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuDayMetricTransformNode.java
...is/jvm/provider/worker/cpu/CpuDayMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuHourMetricTransformNode.java
...s/jvm/provider/worker/cpu/CpuHourMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuMetricPersistenceGraph.java
...is/jvm/provider/worker/cpu/CpuMetricPersistenceGraph.java
+1
-4
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuMinuteMetricTransformNode.java
...jvm/provider/worker/cpu/CpuMinuteMetricTransformNode.java
+0
-45
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuMonthMetricTransformNode.java
.../jvm/provider/worker/cpu/CpuMonthMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuSecondMetricPersistenceWorker.java
...provider/worker/cpu/CpuSecondMetricPersistenceWorker.java
+0
-67
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCDayMetricTransformNode.java
...ysis/jvm/provider/worker/gc/GCDayMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCHourMetricTransformNode.java
...sis/jvm/provider/worker/gc/GCHourMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCMetricPersistenceGraph.java
...ysis/jvm/provider/worker/gc/GCMetricPersistenceGraph.java
+1
-4
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCMinuteMetricTransformNode.java
...s/jvm/provider/worker/gc/GCMinuteMetricTransformNode.java
+0
-45
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCMonthMetricTransformNode.java
...is/jvm/provider/worker/gc/GCMonthMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCSecondMetricPersistenceWorker.java
...m/provider/worker/gc/GCSecondMetricPersistenceWorker.java
+0
-67
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemoryDayMetricTransformNode.java
.../provider/worker/memory/MemoryDayMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemoryHourMetricTransformNode.java
...provider/worker/memory/MemoryHourMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemoryMetricPersistenceGraph.java
.../provider/worker/memory/MemoryMetricPersistenceGraph.java
+1
-4
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemoryMinuteMetricTransformNode.java
...ovider/worker/memory/MemoryMinuteMetricTransformNode.java
+0
-45
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemoryMonthMetricTransformNode.java
...rovider/worker/memory/MemoryMonthMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemorySecondMetricPersistenceWorker.java
...er/worker/memory/MemorySecondMetricPersistenceWorker.java
+0
-67
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolDayMetricTransformNode.java
...r/worker/memorypool/MemoryPoolDayMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolHourMetricTransformNode.java
.../worker/memorypool/MemoryPoolHourMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMetricPersistenceGraph.java
...r/worker/memorypool/MemoryPoolMetricPersistenceGraph.java
+1
-4
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMinuteMetricTransformNode.java
...orker/memorypool/MemoryPoolMinuteMetricTransformNode.java
+0
-45
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMonthMetricTransformNode.java
...worker/memorypool/MemoryPoolMonthMetricTransformNode.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolSecondMetricPersistenceWorker.java
...r/memorypool/MemoryPoolSecondMetricPersistenceWorker.java
+0
-67
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/storage/TimePyramid.java
...he/skywalking/apm/collector/core/storage/TimePyramid.java
+1
-1
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/util/TimeBucketUtils.java
...e/skywalking/apm/collector/core/util/TimeBucketUtils.java
+0
-16
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/StorageModule.java
...pache/skywalking/apm/collector/storage/StorageModule.java
+0
-8
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/cpu/ICpuSecondMetricPersistenceDAO.java
...ector/storage/dao/cpu/ICpuSecondMetricPersistenceDAO.java
+0
-28
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/gc/IGCSecondMetricPersistenceDAO.java
...llector/storage/dao/gc/IGCSecondMetricPersistenceDAO.java
+0
-28
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/memory/IMemorySecondMetricPersistenceDAO.java
...storage/dao/memory/IMemorySecondMetricPersistenceDAO.java
+0
-28
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/mpool/IMemoryPoolSecondMetricPersistenceDAO.java
...rage/dao/mpool/IMemoryPoolSecondMetricPersistenceDAO.java
+0
-28
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/DataTTLKeeperTimer.java
...ywalking/apm/collector/storage/es/DataTTLKeeperTimer.java
+8
-12
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/StorageModuleEsProvider.java
...ing/apm/collector/storage/es/StorageModuleEsProvider.java
+0
-12
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/cpu/CpuSecondMetricEsPersistenceDAO.java
...r/storage/es/dao/cpu/CpuSecondMetricEsPersistenceDAO.java
+0
-42
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/gc/GCSecondMetricEsPersistenceDAO.java
...tor/storage/es/dao/gc/GCSecondMetricEsPersistenceDAO.java
+0
-42
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/memory/MemorySecondMetricEsPersistenceDAO.java
...age/es/dao/memory/MemorySecondMetricEsPersistenceDAO.java
+0
-42
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/mpool/MemoryPoolSecondMetricEsPersistenceDAO.java
.../es/dao/mpool/MemoryPoolSecondMetricEsPersistenceDAO.java
+0
-42
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/cpu/CpuDayMetricEsTableDefine.java
...ctor/storage/es/define/cpu/CpuDayMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/cpu/CpuHourMetricEsTableDefine.java
...tor/storage/es/define/cpu/CpuHourMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/cpu/CpuMinuteMetricEsTableDefine.java
...r/storage/es/define/cpu/CpuMinuteMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/cpu/CpuMonthMetricEsTableDefine.java
...or/storage/es/define/cpu/CpuMonthMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/cpu/CpuSecondMetricEsTableDefine.java
...r/storage/es/define/cpu/CpuSecondMetricEsTableDefine.java
+0
-37
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/gc/GCDayMetricEsTableDefine.java
...lector/storage/es/define/gc/GCDayMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/gc/GCHourMetricEsTableDefine.java
...ector/storage/es/define/gc/GCHourMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/gc/GCMinuteMetricEsTableDefine.java
...tor/storage/es/define/gc/GCMinuteMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/gc/GCMonthMetricEsTableDefine.java
...ctor/storage/es/define/gc/GCMonthMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/gc/GCSecondMetricEsTableDefine.java
...tor/storage/es/define/gc/GCSecondMetricEsTableDefine.java
+0
-37
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/memory/MemoryDayMetricEsTableDefine.java
...torage/es/define/memory/MemoryDayMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/memory/MemoryHourMetricEsTableDefine.java
...orage/es/define/memory/MemoryHourMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/memory/MemoryMinuteMetricEsTableDefine.java
...age/es/define/memory/MemoryMinuteMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/memory/MemoryMonthMetricEsTableDefine.java
...rage/es/define/memory/MemoryMonthMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/memory/MemorySecondMetricEsTableDefine.java
...age/es/define/memory/MemorySecondMetricEsTableDefine.java
+0
-37
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolDayMetricEsTableDefine.java
...age/es/define/mpool/MemoryPoolDayMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolHourMetricEsTableDefine.java
...ge/es/define/mpool/MemoryPoolHourMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolMinuteMetricEsTableDefine.java
.../es/define/mpool/MemoryPoolMinuteMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolMonthMetricEsTableDefine.java
...e/es/define/mpool/MemoryPoolMonthMetricEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolSecondMetricEsTableDefine.java
.../es/define/mpool/MemoryPoolSecondMetricEsTableDefine.java
+0
-37
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/resources/META-INF/defines/storage.define
...ovider/src/main/resources/META-INF/defines/storage.define
+0
-4
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/StorageModuleH2Provider.java
...ing/apm/collector/storage/h2/StorageModuleH2Provider.java
+0
-12
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/cpu/CpuSecondMetricH2PersistenceDAO.java
...r/storage/h2/dao/cpu/CpuSecondMetricH2PersistenceDAO.java
+0
-41
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/gcmp/GCSecondMetricH2PersistenceDAO.java
...r/storage/h2/dao/gcmp/GCSecondMetricH2PersistenceDAO.java
+0
-41
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/memory/MemorySecondMetricH2PersistenceDAO.java
...age/h2/dao/memory/MemorySecondMetricH2PersistenceDAO.java
+0
-41
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/mpool/MemoryPoolSecondMetricH2PersistenceDAO.java
.../h2/dao/mpool/MemoryPoolSecondMetricH2PersistenceDAO.java
+0
-41
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/define/cpu/CpuSecondMetricH2TableDefine.java
...r/storage/h2/define/cpu/CpuSecondMetricH2TableDefine.java
+0
-33
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/define/gc/GCSecondMetricH2TableDefine.java
...tor/storage/h2/define/gc/GCSecondMetricH2TableDefine.java
+0
-33
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/define/memory/MemorySecondMetricH2TableDefine.java
...age/h2/define/memory/MemorySecondMetricH2TableDefine.java
+0
-33
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/define/mpool/MemoryPoolSecondMetricH2TableDefine.java
.../h2/define/mpool/MemoryPoolSecondMetricH2TableDefine.java
+0
-33
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/resources/META-INF/defines/storage.define
...ovider/src/main/resources/META-INF/defines/storage.define
+0
-4
未找到文件。
apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/main/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/JVMMetricsServiceHandler.java
浏览文件 @
1d0992ee
...
...
@@ -66,11 +66,11 @@ public class JVMMetricsServiceHandler extends JVMMetricsServiceGrpc.JVMMetricsSe
logger
.
debug
(
"receive the jvm metric from application instance, id: {}"
,
instanceId
);
request
.
getMetricsList
().
forEach
(
metric
->
{
long
secondTimeBucket
=
TimeBucketUtils
.
INSTANCE
.
getSecond
TimeBucket
(
metric
.
getTime
());
sendToCpuMetricService
(
instanceId
,
second
TimeBucket
,
metric
.
getCpu
());
sendToMemoryMetricService
(
instanceId
,
second
TimeBucket
,
metric
.
getMemoryList
());
sendToMemoryPoolMetricService
(
instanceId
,
second
TimeBucket
,
metric
.
getMemoryPoolList
());
sendToGCMetricService
(
instanceId
,
second
TimeBucket
,
metric
.
getGcList
());
long
minuteTimeBucket
=
TimeBucketUtils
.
INSTANCE
.
getMinute
TimeBucket
(
metric
.
getTime
());
sendToCpuMetricService
(
instanceId
,
minute
TimeBucket
,
metric
.
getCpu
());
sendToMemoryMetricService
(
instanceId
,
minute
TimeBucket
,
metric
.
getMemoryList
());
sendToMemoryPoolMetricService
(
instanceId
,
minute
TimeBucket
,
metric
.
getMemoryPoolList
());
sendToGCMetricService
(
instanceId
,
minute
TimeBucket
,
metric
.
getGcList
());
sendToInstanceHeartBeatService
(
instanceId
,
metric
.
getTime
());
});
...
...
apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/test/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/mock/AgentDataMock.java
浏览文件 @
1d0992ee
...
...
@@ -56,10 +56,10 @@ public class AgentDataMock {
Long
[]
times
=
TimeBuilder
.
INSTANCE
.
generateTimes
();
logger
.
info
(
"times size: {}"
,
times
.
length
);
segmentMock
.
mock
(
upstreamSegments
,
times
,
false
);
//
segmentMock.mock(upstreamSegments, times, false);
JVMMetricMock
jvmMetricMock
=
new
JVMMetricMock
();
//
jvmMetricMock.mock(channel, times);
jvmMetricMock
.
mock
(
channel
,
times
);
Thread
.
sleep
(
60
);
}
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/graph/WorkerIdDefine.java
浏览文件 @
1d0992ee
...
...
@@ -23,9 +23,7 @@ package org.apache.skywalking.apm.collector.analysis.jvm.define.graph;
*/
public
class
WorkerIdDefine
{
public
static
final
int
CPU_METRIC_BRIDGE_NODE_ID
=
3000
;
public
static
final
int
CPU_SECOND_METRIC_PERSISTENCE_WORKER_ID
=
3001
;
public
static
final
int
CPU_MINUTE_METRIC_PERSISTENCE_WORKER_ID
=
3002
;
public
static
final
int
CPU_MINUTE_METRIC_TRANSFORM_NODE_ID
=
3003
;
public
static
final
int
CPU_HOUR_METRIC_PERSISTENCE_WORKER_ID
=
3004
;
public
static
final
int
CPU_HOUR_METRIC_TRANSFORM_NODE_ID
=
3005
;
public
static
final
int
CPU_DAY_METRIC_PERSISTENCE_WORKER_ID
=
3006
;
...
...
@@ -34,9 +32,7 @@ public class WorkerIdDefine {
public
static
final
int
CPU_MONTH_METRIC_TRANSFORM_NODE_ID
=
3009
;
public
static
final
int
GC_METRIC_BRIDGE_NODE_ID
=
3100
;
public
static
final
int
GC_SECOND_METRIC_PERSISTENCE_WORKER_ID
=
3101
;
public
static
final
int
GC_MINUTE_METRIC_PERSISTENCE_WORKER_ID
=
3102
;
public
static
final
int
GC_MINUTE_METRIC_TRANSFORM_NODE_ID
=
3103
;
public
static
final
int
GC_HOUR_METRIC_PERSISTENCE_WORKER_ID
=
3104
;
public
static
final
int
GC_HOUR_METRIC_TRANSFORM_NODE_ID
=
3105
;
public
static
final
int
GC_DAY_METRIC_PERSISTENCE_WORKER_ID
=
3106
;
...
...
@@ -45,9 +41,7 @@ public class WorkerIdDefine {
public
static
final
int
GC_MONTH_METRIC_TRANSFORM_NODE_ID
=
3109
;
public
static
final
int
MEMORY_METRIC_BRIDGE_NODE_ID
=
3200
;
public
static
final
int
MEMORY_SECOND_METRIC_PERSISTENCE_WORKER_ID
=
3201
;
public
static
final
int
MEMORY_MINUTE_METRIC_PERSISTENCE_WORKER_ID
=
3202
;
public
static
final
int
MEMORY_MINUTE_METRIC_TRANSFORM_NODE_ID
=
3203
;
public
static
final
int
MEMORY_HOUR_METRIC_PERSISTENCE_WORKER_ID
=
3204
;
public
static
final
int
MEMORY_HOUR_METRIC_TRANSFORM_NODE_ID
=
3205
;
public
static
final
int
MEMORY_DAY_METRIC_PERSISTENCE_WORKER_ID
=
3206
;
...
...
@@ -56,9 +50,7 @@ public class WorkerIdDefine {
public
static
final
int
MEMORY_MONTH_METRIC_TRANSFORM_NODE_ID
=
3209
;
public
static
final
int
MEMORY_POOL_METRIC_BRIDGE_NODE_ID
=
3300
;
public
static
final
int
MEMORY_POOL_SECOND_METRIC_PERSISTENCE_WORKER_ID
=
3301
;
public
static
final
int
MEMORY_POOL_MINUTE_METRIC_PERSISTENCE_WORKER_ID
=
3302
;
public
static
final
int
MEMORY_POOL_MINUTE_METRIC_TRANSFORM_NODE_ID
=
3303
;
public
static
final
int
MEMORY_POOL_HOUR_METRIC_PERSISTENCE_WORKER_ID
=
3304
;
public
static
final
int
MEMORY_POOL_HOUR_METRIC_TRANSFORM_NODE_ID
=
3305
;
public
static
final
int
MEMORY_POOL_DAY_METRIC_PERSISTENCE_WORKER_ID
=
3306
;
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuDayMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class CpuDayMetricTransformNode implements NodeProcessor<CpuMetric, CpuMe
}
@Override
public
void
process
(
CpuMetric
cpuMetric
,
Next
<
CpuMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToDay
(
cpuMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToDay
(
cpuMetric
.
getTimeBucket
());
CpuMetric
newCpuMetric
=
CpuMetricCopy
.
copy
(
cpuMetric
);
newCpuMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
cpuMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuHourMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class CpuHourMetricTransformNode implements NodeProcessor<CpuMetric, CpuM
}
@Override
public
void
process
(
CpuMetric
cpuMetric
,
Next
<
CpuMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToHour
(
cpuMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToHour
(
cpuMetric
.
getTimeBucket
());
CpuMetric
newCpuMetric
=
CpuMetricCopy
.
copy
(
cpuMetric
);
newCpuMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
cpuMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuMetricPersistenceGraph.java
浏览文件 @
1d0992ee
...
...
@@ -42,10 +42,7 @@ public class CpuMetricPersistenceGraph {
Node
<
CpuMetric
,
CpuMetric
>
bridgeNode
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
GraphIdDefine
.
CPU_METRIC_PERSISTENCE_GRAPH_ID
,
CpuMetric
.
class
)
.
addNode
(
new
CpuMetricBridgeNode
());
bridgeNode
.
addNext
(
new
CpuSecondMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
CpuMinuteMetricTransformNode
())
.
addNext
(
new
CpuMinuteMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
CpuMinuteMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
CpuHourMetricTransformNode
())
.
addNext
(
new
CpuHourMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuMinuteMetricTransformNode.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.cpu
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.core.graph.Next
;
import
org.apache.skywalking.apm.collector.core.graph.NodeProcessor
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.core.util.TimeBucketUtils
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetric
;
/**
* @author peng-yongsheng
*/
public
class
CpuMinuteMetricTransformNode
implements
NodeProcessor
<
CpuMetric
,
CpuMetric
>
{
@Override
public
int
id
()
{
return
WorkerIdDefine
.
CPU_MINUTE_METRIC_TRANSFORM_NODE_ID
;
}
@Override
public
void
process
(
CpuMetric
cpuMetric
,
Next
<
CpuMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
secondToMinute
(
cpuMetric
.
getTimeBucket
());
CpuMetric
newCpuMetric
=
CpuMetricCopy
.
copy
(
cpuMetric
);
newCpuMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
cpuMetric
.
getMetricId
());
newCpuMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newCpuMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuMonthMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class CpuMonthMetricTransformNode implements NodeProcessor<CpuMetric, Cpu
}
@Override
public
void
process
(
CpuMetric
cpuMetric
,
Next
<
CpuMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToMonth
(
cpuMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToMonth
(
cpuMetric
.
getTimeBucket
());
CpuMetric
newCpuMetric
=
CpuMetricCopy
.
copy
(
cpuMetric
);
newCpuMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
cpuMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/cpu/CpuSecondMetricPersistenceWorker.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.cpu
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorkerProvider
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetric
;
/**
* @author peng-yongsheng
*/
public
class
CpuSecondMetricPersistenceWorker
extends
PersistenceWorker
<
CpuMetric
>
{
public
CpuSecondMetricPersistenceWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
int
id
()
{
return
WorkerIdDefine
.
CPU_SECOND_METRIC_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
return
false
;
}
@SuppressWarnings
(
"unchecked"
)
@Override
protected
IPersistenceDAO
<?,
?,
CpuMetric
>
persistenceDAO
()
{
return
getModuleManager
().
find
(
StorageModule
.
NAME
).
getService
(
ICpuSecondMetricPersistenceDAO
.
class
);
}
public
static
class
Factory
extends
PersistenceWorkerProvider
<
CpuMetric
,
CpuSecondMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
CpuSecondMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
CpuSecondMetricPersistenceWorker
(
moduleManager
);
}
@Override
public
int
queueSize
()
{
return
1024
;
}
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCDayMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class GCDayMetricTransformNode implements NodeProcessor<GCMetric, GCMetri
}
@Override
public
void
process
(
GCMetric
gcMetric
,
Next
<
GCMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToDay
(
gcMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToDay
(
gcMetric
.
getTimeBucket
());
GCMetric
newGCMetric
=
GCMetricCopy
.
copy
(
gcMetric
);
newGCMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
gcMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCHourMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class GCHourMetricTransformNode implements NodeProcessor<GCMetric, GCMetr
}
@Override
public
void
process
(
GCMetric
gcMetric
,
Next
<
GCMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToHour
(
gcMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToHour
(
gcMetric
.
getTimeBucket
());
GCMetric
newGCMetric
=
GCMetricCopy
.
copy
(
gcMetric
);
newGCMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
gcMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCMetricPersistenceGraph.java
浏览文件 @
1d0992ee
...
...
@@ -42,10 +42,7 @@ public class GCMetricPersistenceGraph {
Node
<
GCMetric
,
GCMetric
>
bridgeNode
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
GraphIdDefine
.
GC_METRIC_PERSISTENCE_GRAPH_ID
,
GCMetric
.
class
)
.
addNode
(
new
GCMetricBridgeNode
());
bridgeNode
.
addNext
(
new
GCSecondMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
GCMinuteMetricTransformNode
())
.
addNext
(
new
GCMinuteMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
GCMinuteMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
GCHourMetricTransformNode
())
.
addNext
(
new
GCHourMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCMinuteMetricTransformNode.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.gc
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.core.graph.Next
;
import
org.apache.skywalking.apm.collector.core.graph.NodeProcessor
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.core.util.TimeBucketUtils
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetric
;
/**
* @author peng-yongsheng
*/
public
class
GCMinuteMetricTransformNode
implements
NodeProcessor
<
GCMetric
,
GCMetric
>
{
@Override
public
int
id
()
{
return
WorkerIdDefine
.
GC_MINUTE_METRIC_TRANSFORM_NODE_ID
;
}
@Override
public
void
process
(
GCMetric
gcMetric
,
Next
<
GCMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
secondToMinute
(
gcMetric
.
getTimeBucket
());
GCMetric
newGCMetric
=
GCMetricCopy
.
copy
(
gcMetric
);
newGCMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
gcMetric
.
getMetricId
());
newGCMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newGCMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCMonthMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class GCMonthMetricTransformNode implements NodeProcessor<GCMetric, GCMet
}
@Override
public
void
process
(
GCMetric
gcMetric
,
Next
<
GCMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToMonth
(
gcMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToMonth
(
gcMetric
.
getTimeBucket
());
GCMetric
newGCMetric
=
GCMetricCopy
.
copy
(
gcMetric
);
newGCMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
gcMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/gc/GCSecondMetricPersistenceWorker.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.gc
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorkerProvider
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetric
;
/**
* @author peng-yongsheng
*/
public
class
GCSecondMetricPersistenceWorker
extends
PersistenceWorker
<
GCMetric
>
{
public
GCSecondMetricPersistenceWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
int
id
()
{
return
WorkerIdDefine
.
GC_SECOND_METRIC_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
return
false
;
}
@SuppressWarnings
(
"unchecked"
)
@Override
protected
IPersistenceDAO
<?,
?,
GCMetric
>
persistenceDAO
()
{
return
getModuleManager
().
find
(
StorageModule
.
NAME
).
getService
(
IGCSecondMetricPersistenceDAO
.
class
);
}
public
static
class
Factory
extends
PersistenceWorkerProvider
<
GCMetric
,
GCSecondMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
GCSecondMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
GCSecondMetricPersistenceWorker
(
moduleManager
);
}
@Override
public
int
queueSize
()
{
return
1024
;
}
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemoryDayMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class MemoryDayMetricTransformNode implements NodeProcessor<MemoryMetric,
}
@Override
public
void
process
(
MemoryMetric
memoryMetric
,
Next
<
MemoryMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToDay
(
memoryMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToDay
(
memoryMetric
.
getTimeBucket
());
MemoryMetric
newMemoryMetric
=
MemoryMetricCopy
.
copy
(
memoryMetric
);
newMemoryMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemoryHourMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class MemoryHourMetricTransformNode implements NodeProcessor<MemoryMetric
}
@Override
public
void
process
(
MemoryMetric
memoryMetric
,
Next
<
MemoryMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToHour
(
memoryMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToHour
(
memoryMetric
.
getTimeBucket
());
MemoryMetric
newMemoryMetric
=
MemoryMetricCopy
.
copy
(
memoryMetric
);
newMemoryMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemoryMetricPersistenceGraph.java
浏览文件 @
1d0992ee
...
...
@@ -42,10 +42,7 @@ public class MemoryMetricPersistenceGraph {
Node
<
MemoryMetric
,
MemoryMetric
>
bridgeNode
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
GraphIdDefine
.
MEMORY_METRIC_PERSISTENCE_GRAPH_ID
,
MemoryMetric
.
class
)
.
addNode
(
new
MemoryMetricBridgeNode
());
bridgeNode
.
addNext
(
new
MemorySecondMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
MemoryMinuteMetricTransformNode
())
.
addNext
(
new
MemoryMinuteMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
MemoryMinuteMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
MemoryHourMetricTransformNode
())
.
addNext
(
new
MemoryHourMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemoryMinuteMetricTransformNode.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.memory
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.core.graph.Next
;
import
org.apache.skywalking.apm.collector.core.graph.NodeProcessor
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.core.util.TimeBucketUtils
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetric
;
/**
* @author peng-yongsheng
*/
public
class
MemoryMinuteMetricTransformNode
implements
NodeProcessor
<
MemoryMetric
,
MemoryMetric
>
{
@Override
public
int
id
()
{
return
WorkerIdDefine
.
MEMORY_MINUTE_METRIC_TRANSFORM_NODE_ID
;
}
@Override
public
void
process
(
MemoryMetric
memoryMetric
,
Next
<
MemoryMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
secondToMinute
(
memoryMetric
.
getTimeBucket
());
MemoryMetric
newMemoryMetric
=
MemoryMetricCopy
.
copy
(
memoryMetric
);
newMemoryMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryMetric
.
getMetricId
());
newMemoryMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newMemoryMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemoryMonthMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class MemoryMonthMetricTransformNode implements NodeProcessor<MemoryMetri
}
@Override
public
void
process
(
MemoryMetric
memoryMetric
,
Next
<
MemoryMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToMonth
(
memoryMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToMonth
(
memoryMetric
.
getTimeBucket
());
MemoryMetric
newMemoryMetric
=
MemoryMetricCopy
.
copy
(
memoryMetric
);
newMemoryMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memory/MemorySecondMetricPersistenceWorker.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.memory
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorkerProvider
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetric
;
/**
* @author peng-yongsheng
*/
public
class
MemorySecondMetricPersistenceWorker
extends
PersistenceWorker
<
MemoryMetric
>
{
public
MemorySecondMetricPersistenceWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
int
id
()
{
return
WorkerIdDefine
.
MEMORY_SECOND_METRIC_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
return
false
;
}
@SuppressWarnings
(
"unchecked"
)
@Override
protected
IPersistenceDAO
<?,
?,
MemoryMetric
>
persistenceDAO
()
{
return
getModuleManager
().
find
(
StorageModule
.
NAME
).
getService
(
IMemorySecondMetricPersistenceDAO
.
class
);
}
public
static
class
Factory
extends
PersistenceWorkerProvider
<
MemoryMetric
,
MemorySecondMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
MemorySecondMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
MemorySecondMetricPersistenceWorker
(
moduleManager
);
}
@Override
public
int
queueSize
()
{
return
1024
;
}
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolDayMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class MemoryPoolDayMetricTransformNode implements NodeProcessor<MemoryPoo
}
@Override
public
void
process
(
MemoryPoolMetric
memoryPoolMetric
,
Next
<
MemoryPoolMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToDay
(
memoryPoolMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToDay
(
memoryPoolMetric
.
getTimeBucket
());
MemoryPoolMetric
newMemoryPoolMetric
=
MemoryPoolMetricCopy
.
copy
(
memoryPoolMetric
);
newMemoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolHourMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class MemoryPoolHourMetricTransformNode implements NodeProcessor<MemoryPo
}
@Override
public
void
process
(
MemoryPoolMetric
memoryPoolMetric
,
Next
<
MemoryPoolMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToHour
(
memoryPoolMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToHour
(
memoryPoolMetric
.
getTimeBucket
());
MemoryPoolMetric
newMemoryPoolMetric
=
MemoryPoolMetricCopy
.
copy
(
memoryPoolMetric
);
newMemoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMetricPersistenceGraph.java
浏览文件 @
1d0992ee
...
...
@@ -42,10 +42,7 @@ public class MemoryPoolMetricPersistenceGraph {
Node
<
MemoryPoolMetric
,
MemoryPoolMetric
>
bridgeNode
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
GraphIdDefine
.
MEMORY_POOL_METRIC_PERSISTENCE_GRAPH_ID
,
MemoryPoolMetric
.
class
)
.
addNode
(
new
MemoryPoolMetricBridgeNode
());
bridgeNode
.
addNext
(
new
MemoryPoolSecondMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
MemoryPoolMinuteMetricTransformNode
())
.
addNext
(
new
MemoryPoolMinuteMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
MemoryPoolMinuteMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
bridgeNode
.
addNext
(
new
MemoryPoolHourMetricTransformNode
())
.
addNext
(
new
MemoryPoolHourMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMinuteMetricTransformNode.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.memorypool
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.core.graph.Next
;
import
org.apache.skywalking.apm.collector.core.graph.NodeProcessor
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.core.util.TimeBucketUtils
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetric
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolMinuteMetricTransformNode
implements
NodeProcessor
<
MemoryPoolMetric
,
MemoryPoolMetric
>
{
@Override
public
int
id
()
{
return
WorkerIdDefine
.
MEMORY_POOL_MINUTE_METRIC_TRANSFORM_NODE_ID
;
}
@Override
public
void
process
(
MemoryPoolMetric
memoryPoolMetric
,
Next
<
MemoryPoolMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
secondToMinute
(
memoryPoolMetric
.
getTimeBucket
());
MemoryPoolMetric
newMemoryPoolMetric
=
MemoryPoolMetricCopy
.
copy
(
memoryPoolMetric
);
newMemoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
newMemoryPoolMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newMemoryPoolMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMonthMetricTransformNode.java
浏览文件 @
1d0992ee
...
...
@@ -35,7 +35,7 @@ public class MemoryPoolMonthMetricTransformNode implements NodeProcessor<MemoryP
}
@Override
public
void
process
(
MemoryPoolMetric
memoryPoolMetric
,
Next
<
MemoryPoolMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
second
ToMonth
(
memoryPoolMetric
.
getTimeBucket
());
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minute
ToMonth
(
memoryPoolMetric
.
getTimeBucket
());
MemoryPoolMetric
newMemoryPoolMetric
=
MemoryPoolMetricCopy
.
copy
(
memoryPoolMetric
);
newMemoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolSecondMetricPersistenceWorker.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.memorypool
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorkerProvider
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetric
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolSecondMetricPersistenceWorker
extends
PersistenceWorker
<
MemoryPoolMetric
>
{
@Override
public
int
id
()
{
return
WorkerIdDefine
.
MEMORY_POOL_SECOND_METRIC_PERSISTENCE_WORKER_ID
;
}
public
MemoryPoolSecondMetricPersistenceWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
protected
boolean
needMergeDBData
()
{
return
false
;
}
@SuppressWarnings
(
"unchecked"
)
@Override
protected
IPersistenceDAO
<?,
?,
MemoryPoolMetric
>
persistenceDAO
()
{
return
getModuleManager
().
find
(
StorageModule
.
NAME
).
getService
(
IMemoryPoolSecondMetricPersistenceDAO
.
class
);
}
public
static
class
Factory
extends
PersistenceWorkerProvider
<
MemoryPoolMetric
,
MemoryPoolSecondMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
MemoryPoolSecondMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
MemoryPoolSecondMetricPersistenceWorker
(
moduleManager
);
}
@Override
public
int
queueSize
()
{
return
1024
;
}
}
}
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/storage/TimePyramid.java
浏览文件 @
1d0992ee
...
...
@@ -22,7 +22,7 @@ package org.apache.skywalking.apm.collector.core.storage;
* @author peng-yongsheng
*/
public
enum
TimePyramid
{
Second
(
0
,
"second"
),
Minute
(
1
,
"minute"
),
Hour
(
2
,
"hour"
),
Day
(
3
,
"day"
),
Month
(
4
,
"month"
);
Minute
(
1
,
"minute"
),
Hour
(
2
,
"hour"
),
Day
(
3
,
"day"
),
Month
(
4
,
"month"
);
private
final
int
value
;
private
final
String
name
;
...
...
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/util/TimeBucketUtils.java
浏览文件 @
1d0992ee
...
...
@@ -77,20 +77,4 @@ public enum TimeBucketUtils {
public
long
minuteToMonth
(
long
minuteBucket
)
{
return
minuteBucket
/
100
/
100
/
100
;
}
public
long
secondToMinute
(
long
secondBucket
)
{
return
secondBucket
/
100
;
}
public
long
secondToHour
(
long
secondBucket
)
{
return
secondBucket
/
100
/
100
;
}
public
long
secondToDay
(
long
secondBucket
)
{
return
secondBucket
/
100
/
100
/
100
;
}
public
long
secondToMonth
(
long
secondBucket
)
{
return
secondBucket
/
100
/
100
/
100
/
100
;
}
}
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/StorageModule.java
浏览文件 @
1d0992ee
...
...
@@ -65,12 +65,10 @@ import org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuDayMetricPersiste
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
...
...
@@ -87,12 +85,10 @@ import org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryDayMetricPe
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.INetworkAddressRegisterDAO
;
...
...
@@ -170,25 +166,21 @@ public class StorageModule extends Module {
}
private
void
addPersistenceDAO
(
List
<
Class
>
classes
)
{
classes
.
add
(
ICpuSecondMetricPersistenceDAO
.
class
);
classes
.
add
(
ICpuMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
ICpuHourMetricPersistenceDAO
.
class
);
classes
.
add
(
ICpuDayMetricPersistenceDAO
.
class
);
classes
.
add
(
ICpuMonthMetricPersistenceDAO
.
class
);
classes
.
add
(
IGCSecondMetricPersistenceDAO
.
class
);
classes
.
add
(
IGCMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IGCHourMetricPersistenceDAO
.
class
);
classes
.
add
(
IGCDayMetricPersistenceDAO
.
class
);
classes
.
add
(
IGCMonthMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemorySecondMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryHourMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryDayMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryMonthMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryPoolSecondMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryPoolMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryPoolHourMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryPoolDayMetricPersistenceDAO
.
class
);
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/cpu/ICpuSecondMetricPersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.dao.cpu
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetric
;
/**
* @author peng-yongsheng
*/
public
interface
ICpuSecondMetricPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
extends
CpuMetric
>
extends
IPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
>
{
}
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/gc/IGCSecondMetricPersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.dao.gc
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetric
;
/**
* @author peng-yongsheng
*/
public
interface
IGCSecondMetricPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
extends
GCMetric
>
extends
IPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
>
{
}
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/memory/IMemorySecondMetricPersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.dao.memory
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetric
;
/**
* @author peng-yongsheng
*/
public
interface
IMemorySecondMetricPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
extends
MemoryMetric
>
extends
IPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
>
{
}
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/mpool/IMemoryPoolSecondMetricPersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.dao.mpool
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetric
;
/**
* @author peng-yongsheng
*/
public
interface
IMemoryPoolSecondMetricPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
extends
MemoryPoolMetric
>
extends
IPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
>
{
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/DataTTLKeeperTimer.java
浏览文件 @
1d0992ee
...
...
@@ -29,11 +29,11 @@ import org.apache.skywalking.apm.collector.storage.dao.ISegmentPersistenceDAO;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpu
Second
MetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGC
Second
MetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpu
Minute
MetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGC
Minute
MetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemory
Second
MetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPool
Second
MetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemory
Minute
MetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPool
Minute
MetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.srmp.IServiceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.util.RunnableWithExceptionProtection
;
import
org.slf4j.Logger
;
...
...
@@ -84,17 +84,13 @@ public class DataTTLKeeperTimer {
}
private
void
deleteJVMRelatedData
(
long
startTimestamp
,
long
endTimestamp
)
{
ICpuSecondMetricPersistenceDAO
cpuMetricPersistenceDAO
=
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
ICpuSecondMetricPersistenceDAO
.
class
);
cpuMetricPersistenceDAO
.
deleteHistory
(
startTimestamp
,
endTimestamp
);
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
ICpuMinuteMetricPersistenceDAO
.
class
).
deleteHistory
(
startTimestamp
,
endTimestamp
);
IGCSecondMetricPersistenceDAO
gcMetricPersistenceDAO
=
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
IGCSecondMetricPersistenceDAO
.
class
);
gcMetricPersistenceDAO
.
deleteHistory
(
startTimestamp
,
endTimestamp
);
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
IGCMinuteMetricPersistenceDAO
.
class
).
deleteHistory
(
startTimestamp
,
endTimestamp
);
IMemorySecondMetricPersistenceDAO
memoryMetricPersistenceDAO
=
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
IMemorySecondMetricPersistenceDAO
.
class
);
memoryMetricPersistenceDAO
.
deleteHistory
(
startTimestamp
,
endTimestamp
);
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
IMemoryMinuteMetricPersistenceDAO
.
class
).
deleteHistory
(
startTimestamp
,
endTimestamp
);
IMemoryPoolSecondMetricPersistenceDAO
memoryPoolMetricPersistenceDAO
=
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
IMemoryPoolSecondMetricPersistenceDAO
.
class
);
memoryPoolMetricPersistenceDAO
.
deleteHistory
(
startTimestamp
,
endTimestamp
);
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
IMemoryPoolMinuteMetricPersistenceDAO
.
class
).
deleteHistory
(
startTimestamp
,
endTimestamp
);
}
private
void
deleteTraceRelatedData
(
long
startTimestamp
,
long
endTimestamp
)
{
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/StorageModuleEsProvider.java
浏览文件 @
1d0992ee
...
...
@@ -79,12 +79,10 @@ import org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuDayMetricPersiste
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
...
...
@@ -101,12 +99,10 @@ import org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryDayMetricPe
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.INetworkAddressRegisterDAO
;
...
...
@@ -189,12 +185,10 @@ import org.apache.skywalking.apm.collector.storage.es.dao.cpu.CpuDayMetricEsPers
import
org.apache.skywalking.apm.collector.storage.es.dao.cpu.CpuHourMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cpu.CpuMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cpu.CpuMonthMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cpu.CpuSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.gc.GCDayMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.gc.GCHourMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.gc.GCMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.gc.GCMonthMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.gc.GCSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.imp.InstanceDayMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.imp.InstanceHourMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.imp.InstanceMinuteMetricEsPersistenceDAO
;
...
...
@@ -211,12 +205,10 @@ import org.apache.skywalking.apm.collector.storage.es.dao.memory.MemoryDayMetric
import
org.apache.skywalking.apm.collector.storage.es.dao.memory.MemoryHourMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.memory.MemoryMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.memory.MemoryMonthMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.memory.MemorySecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpool.MemoryPoolDayMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpool.MemoryPoolHourMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpool.MemoryPoolMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpool.MemoryPoolMonthMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpool.MemoryPoolSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.register.ApplicationRegisterEsDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.register.InstanceRegisterEsDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.register.NetworkAddressRegisterEsDAO
;
...
...
@@ -345,25 +337,21 @@ public class StorageModuleEsProvider extends ModuleProvider {
}
private
void
registerPersistenceDAO
()
throws
ServiceNotProvidedException
{
this
.
registerServiceImplementation
(
ICpuSecondMetricPersistenceDAO
.
class
,
new
CpuSecondMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
ICpuMinuteMetricPersistenceDAO
.
class
,
new
CpuMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
ICpuHourMetricPersistenceDAO
.
class
,
new
CpuHourMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
ICpuDayMetricPersistenceDAO
.
class
,
new
CpuDayMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
ICpuMonthMetricPersistenceDAO
.
class
,
new
CpuMonthMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IGCSecondMetricPersistenceDAO
.
class
,
new
GCSecondMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IGCMinuteMetricPersistenceDAO
.
class
,
new
GCMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IGCHourMetricPersistenceDAO
.
class
,
new
GCHourMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IGCDayMetricPersistenceDAO
.
class
,
new
GCDayMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IGCMonthMetricPersistenceDAO
.
class
,
new
GCMonthMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemorySecondMetricPersistenceDAO
.
class
,
new
MemorySecondMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryMinuteMetricPersistenceDAO
.
class
,
new
MemoryMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryHourMetricPersistenceDAO
.
class
,
new
MemoryHourMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryDayMetricPersistenceDAO
.
class
,
new
MemoryDayMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryMonthMetricPersistenceDAO
.
class
,
new
MemoryMonthMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryPoolSecondMetricPersistenceDAO
.
class
,
new
MemoryPoolSecondMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryPoolMinuteMetricPersistenceDAO
.
class
,
new
MemoryPoolMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryPoolHourMetricPersistenceDAO
.
class
,
new
MemoryPoolHourMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryPoolDayMetricPersistenceDAO
.
class
,
new
MemoryPoolDayMetricEsPersistenceDAO
(
elasticSearchClient
));
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/cpu/CpuSecondMetricEsPersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.dao.cpu
;
import
org.apache.skywalking.apm.collector.client.elasticsearch.ElasticSearchClient
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetric
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetricTable
;
import
org.elasticsearch.action.index.IndexRequestBuilder
;
import
org.elasticsearch.action.update.UpdateRequestBuilder
;
/**
* @author peng-yongsheng
*/
public
class
CpuSecondMetricEsPersistenceDAO
extends
AbstractCpuMetricEsPersistenceDAO
implements
ICpuSecondMetricPersistenceDAO
<
IndexRequestBuilder
,
UpdateRequestBuilder
,
CpuMetric
>
{
public
CpuSecondMetricEsPersistenceDAO
(
ElasticSearchClient
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
CpuMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/gc/GCSecondMetricEsPersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.dao.gc
;
import
org.apache.skywalking.apm.collector.client.elasticsearch.ElasticSearchClient
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetric
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetricTable
;
import
org.elasticsearch.action.index.IndexRequestBuilder
;
import
org.elasticsearch.action.update.UpdateRequestBuilder
;
/**
* @author peng-yongsheng
*/
public
class
GCSecondMetricEsPersistenceDAO
extends
AbstractGCMetricEsPersistenceDAO
implements
IGCSecondMetricPersistenceDAO
<
IndexRequestBuilder
,
UpdateRequestBuilder
,
GCMetric
>
{
public
GCSecondMetricEsPersistenceDAO
(
ElasticSearchClient
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
GCMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/memory/MemorySecondMetricEsPersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.dao.memory
;
import
org.apache.skywalking.apm.collector.client.elasticsearch.ElasticSearchClient
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetric
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetricTable
;
import
org.elasticsearch.action.index.IndexRequestBuilder
;
import
org.elasticsearch.action.update.UpdateRequestBuilder
;
/**
* @author peng-yongsheng
*/
public
class
MemorySecondMetricEsPersistenceDAO
extends
AbstractMemoryMetricEsPersistenceDAO
implements
IMemorySecondMetricPersistenceDAO
<
IndexRequestBuilder
,
UpdateRequestBuilder
,
MemoryMetric
>
{
public
MemorySecondMetricEsPersistenceDAO
(
ElasticSearchClient
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
MemoryMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/mpool/MemoryPoolSecondMetricEsPersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.dao.mpool
;
import
org.apache.skywalking.apm.collector.client.elasticsearch.ElasticSearchClient
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetric
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetricTable
;
import
org.elasticsearch.action.index.IndexRequestBuilder
;
import
org.elasticsearch.action.update.UpdateRequestBuilder
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolSecondMetricEsPersistenceDAO
extends
AbstractMemoryPoolMetricEsPersistenceDAO
implements
IMemoryPoolSecondMetricPersistenceDAO
<
IndexRequestBuilder
,
UpdateRequestBuilder
,
MemoryPoolMetric
>
{
public
MemoryPoolSecondMetricEsPersistenceDAO
(
ElasticSearchClient
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
MemoryPoolMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/cpu/CpuDayMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class CpuDayMetricEsTableDefine extends AbstractCpuMetricEsTableDefine {
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/cpu/CpuHourMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class CpuHourMetricEsTableDefine extends AbstractCpuMetricEsTableDefine {
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/cpu/CpuMinuteMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class CpuMinuteMetricEsTableDefine extends AbstractCpuMetricEsTableDefine
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/cpu/CpuMonthMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class CpuMonthMetricEsTableDefine extends AbstractCpuMetricEsTableDefine
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/cpu/CpuSecondMetricEsTableDefine.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define.cpu
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
CpuSecondMetricEsTableDefine
extends
AbstractCpuMetricEsTableDefine
{
public
CpuSecondMetricEsTableDefine
()
{
super
(
CpuMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
1
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/gc/GCDayMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class GCDayMetricEsTableDefine extends AbstractGCMetricEsTableDefine {
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/gc/GCHourMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class GCHourMetricEsTableDefine extends AbstractGCMetricEsTableDefine {
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/gc/GCMinuteMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class GCMinuteMetricEsTableDefine extends AbstractGCMetricEsTableDefine {
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/gc/GCMonthMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class GCMonthMetricEsTableDefine extends AbstractGCMetricEsTableDefine {
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/gc/GCSecondMetricEsTableDefine.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define.gc
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
GCSecondMetricEsTableDefine
extends
AbstractGCMetricEsTableDefine
{
public
GCSecondMetricEsTableDefine
()
{
super
(
GCMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
1
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/memory/MemoryDayMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class MemoryDayMetricEsTableDefine extends AbstractMemoryMetricEsTableDef
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/memory/MemoryHourMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class MemoryHourMetricEsTableDefine extends AbstractMemoryMetricEsTableDe
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/memory/MemoryMinuteMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class MemoryMinuteMetricEsTableDefine extends AbstractMemoryMetricEsTable
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/memory/MemoryMonthMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class MemoryMonthMetricEsTableDefine extends AbstractMemoryMetricEsTableD
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/memory/MemorySecondMetricEsTableDefine.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define.memory
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemorySecondMetricEsTableDefine
extends
AbstractMemoryMetricEsTableDefine
{
public
MemorySecondMetricEsTableDefine
()
{
super
(
MemoryMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
1
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolDayMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class MemoryPoolDayMetricEsTableDefine extends AbstractMemoryPoolMetricEs
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolHourMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class MemoryPoolHourMetricEsTableDefine extends AbstractMemoryPoolMetricE
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolMinuteMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class MemoryPoolMinuteMetricEsTableDefine extends AbstractMemoryPoolMetri
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolMonthMetricEsTableDefine.java
浏览文件 @
1d0992ee
...
...
@@ -32,6 +32,6 @@ public class MemoryPoolMonthMetricEsTableDefine extends AbstractMemoryPoolMetric
}
@Override
public
int
refreshInterval
()
{
return
1
;
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolSecondMetricEsTableDefine.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define.mpool
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolSecondMetricEsTableDefine
extends
AbstractMemoryPoolMetricEsTableDefine
{
public
MemoryPoolSecondMetricEsTableDefine
()
{
super
(
MemoryPoolMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
1
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/resources/META-INF/defines/storage.define
浏览文件 @
1d0992ee
...
...
@@ -93,25 +93,21 @@ org.apache.skywalking.apm.collector.storage.es.define.alarm.ServiceAlarmListEsTa
org.apache.skywalking.apm.collector.storage.es.define.alarm.ServiceReferenceAlarmEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.alarm.ServiceReferenceAlarmListEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.mpool.MemoryPoolSecondMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.mpool.MemoryPoolMinuteMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.mpool.MemoryPoolHourMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.mpool.MemoryPoolDayMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.mpool.MemoryPoolMonthMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.memory.MemorySecondMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.memory.MemoryMinuteMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.memory.MemoryHourMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.memory.MemoryDayMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.memory.MemoryMonthMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.gc.GCSecondMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.gc.GCMinuteMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.gc.GCHourMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.gc.GCDayMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.gc.GCMonthMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.cpu.CpuSecondMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.cpu.CpuMinuteMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.cpu.CpuHourMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.cpu.CpuDayMetricEsTableDefine
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/StorageModuleH2Provider.java
浏览文件 @
1d0992ee
...
...
@@ -73,12 +73,10 @@ import org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuDayMetricPersiste
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
...
...
@@ -95,12 +93,10 @@ import org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryDayMetricPe
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemoryMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.INetworkAddressRegisterDAO
;
...
...
@@ -183,12 +179,10 @@ import org.apache.skywalking.apm.collector.storage.h2.dao.cpu.CpuDayMetricH2Pers
import
org.apache.skywalking.apm.collector.storage.h2.dao.cpu.CpuHourMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.cpu.CpuMinuteMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.cpu.CpuMonthMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.cpu.CpuSecondMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.gcmp.GCDayMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.gcmp.GCHourMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.gcmp.GCMinuteMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.gcmp.GCMonthMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.gcmp.GCSecondMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.imp.InstanceDayMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.imp.InstanceHourMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.imp.InstanceMinuteMetricH2PersistenceDAO
;
...
...
@@ -205,12 +199,10 @@ import org.apache.skywalking.apm.collector.storage.h2.dao.memory.MemoryDayMetric
import
org.apache.skywalking.apm.collector.storage.h2.dao.memory.MemoryHourMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.memory.MemoryMinuteMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.memory.MemoryMonthMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.memory.MemorySecondMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.mpool.MemoryPoolDayMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.mpool.MemoryPoolHourMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.mpool.MemoryPoolMinuteMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.mpool.MemoryPoolMonthMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.mpool.MemoryPoolSecondMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.register.ApplicationRegisterH2DAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.register.InstanceRegisterH2DAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.register.NetworkAddressRegisterH2DAO
;
...
...
@@ -321,25 +313,21 @@ public class StorageModuleH2Provider extends ModuleProvider {
}
private
void
registerPersistenceDAO
()
throws
ServiceNotProvidedException
{
this
.
registerServiceImplementation
(
ICpuSecondMetricPersistenceDAO
.
class
,
new
CpuSecondMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
ICpuMinuteMetricPersistenceDAO
.
class
,
new
CpuMinuteMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
ICpuHourMetricPersistenceDAO
.
class
,
new
CpuHourMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
ICpuDayMetricPersistenceDAO
.
class
,
new
CpuDayMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
ICpuMonthMetricPersistenceDAO
.
class
,
new
CpuMonthMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IGCSecondMetricPersistenceDAO
.
class
,
new
GCSecondMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IGCMinuteMetricPersistenceDAO
.
class
,
new
GCMinuteMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IGCHourMetricPersistenceDAO
.
class
,
new
GCHourMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IGCDayMetricPersistenceDAO
.
class
,
new
GCDayMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IGCMonthMetricPersistenceDAO
.
class
,
new
GCMonthMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IMemorySecondMetricPersistenceDAO
.
class
,
new
MemorySecondMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IMemoryMinuteMetricPersistenceDAO
.
class
,
new
MemoryMinuteMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IMemoryHourMetricPersistenceDAO
.
class
,
new
MemoryHourMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IMemoryDayMetricPersistenceDAO
.
class
,
new
MemoryDayMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IMemoryMonthMetricPersistenceDAO
.
class
,
new
MemoryMonthMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IMemoryPoolSecondMetricPersistenceDAO
.
class
,
new
MemoryPoolSecondMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IMemoryPoolMinuteMetricPersistenceDAO
.
class
,
new
MemoryPoolMinuteMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IMemoryPoolHourMetricPersistenceDAO
.
class
,
new
MemoryPoolHourMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IMemoryPoolDayMetricPersistenceDAO
.
class
,
new
MemoryPoolDayMetricH2PersistenceDAO
(
h2Client
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/cpu/CpuSecondMetricH2PersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao.cpu
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.dao.cpu.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetric
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
CpuSecondMetricH2PersistenceDAO
extends
AbstractCpuMetricH2PersistenceDAO
implements
ICpuSecondMetricPersistenceDAO
<
H2SqlEntity
,
H2SqlEntity
,
CpuMetric
>
{
public
CpuSecondMetricH2PersistenceDAO
(
H2Client
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
CpuMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/gcmp/GCSecondMetricH2PersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao.gcmp
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.dao.gc.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetric
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
GCSecondMetricH2PersistenceDAO
extends
AbstractGCMetricH2PersistenceDAO
implements
IGCSecondMetricPersistenceDAO
<
H2SqlEntity
,
H2SqlEntity
,
GCMetric
>
{
public
GCSecondMetricH2PersistenceDAO
(
H2Client
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
GCMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/memory/MemorySecondMetricH2PersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao.memory
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.dao.memory.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetric
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemorySecondMetricH2PersistenceDAO
extends
AbstractMemoryMetricH2PersistenceDAO
implements
IMemorySecondMetricPersistenceDAO
<
H2SqlEntity
,
H2SqlEntity
,
MemoryMetric
>
{
public
MemorySecondMetricH2PersistenceDAO
(
H2Client
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
MemoryMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/mpool/MemoryPoolSecondMetricH2PersistenceDAO.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.dao.mpool
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.dao.mpool.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetric
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolSecondMetricH2PersistenceDAO
extends
AbstractMemoryPoolMetricH2PersistenceDAO
implements
IMemoryPoolSecondMetricPersistenceDAO
<
H2SqlEntity
,
H2SqlEntity
,
MemoryPoolMetric
>
{
public
MemoryPoolSecondMetricH2PersistenceDAO
(
H2Client
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
MemoryPoolMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/define/cpu/CpuSecondMetricH2TableDefine.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.define.cpu
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
CpuSecondMetricH2TableDefine
extends
AbstractCpuMetricH2TableDefine
{
public
CpuSecondMetricH2TableDefine
()
{
super
(
CpuMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
());
}
}
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/define/gc/GCSecondMetricH2TableDefine.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.define.gc
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
GCSecondMetricH2TableDefine
extends
AbstractGCMetricH2TableDefine
{
public
GCSecondMetricH2TableDefine
()
{
super
(
GCMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
());
}
}
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/define/memory/MemorySecondMetricH2TableDefine.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.define.memory
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemorySecondMetricH2TableDefine
extends
AbstractMemoryMetricH2TableDefine
{
public
MemorySecondMetricH2TableDefine
()
{
super
(
MemoryMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
());
}
}
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/define/mpool/MemoryPoolSecondMetricH2TableDefine.java
已删除
100644 → 0
浏览文件 @
e11a5df6
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.h2.define.mpool
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolSecondMetricH2TableDefine
extends
AbstractMemoryPoolMetricH2TableDefine
{
public
MemoryPoolSecondMetricH2TableDefine
()
{
super
(
MemoryPoolMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
());
}
}
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/resources/META-INF/defines/storage.define
浏览文件 @
1d0992ee
...
...
@@ -21,25 +21,21 @@ org.apache.skywalking.apm.collector.storage.h2.define.register.ApplicationH2Tabl
org.apache.skywalking.apm.collector.storage.h2.define.register.InstanceH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.register.ServiceNameH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.cpu.CpuSecondMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.cpu.CpuMinuteMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.cpu.CpuHourMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.cpu.CpuDayMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.cpu.CpuMonthMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.gc.GCSecondMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.gc.GCMinuteMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.gc.GCHourMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.gc.GCDayMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.gc.GCMonthMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.memory.MemorySecondMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.memory.MemoryMinuteMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.memory.MemoryHourMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.memory.MemoryDayMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.memory.MemoryMonthMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.mpool.MemoryPoolSecondMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.mpool.MemoryPoolMinuteMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.mpool.MemoryPoolHourMetricH2TableDefine
org.apache.skywalking.apm.collector.storage.h2.define.mpool.MemoryPoolDayMetricH2TableDefine
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录