Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
0145361a
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0145361a
编写于
1月 07, 2018
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Instance metric pyramid aggregate.
上级
f3fc9192
变更
27
隐藏空白更改
内联
并排
Showing
27 changed file
with
658 addition
and
53 deletion
+658
-53
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/instance/InstanceMetricAlarmGraph.java
...rm/provider/worker/instance/InstanceMetricAlarmGraph.java
+1
-1
apm-collector/apm-collector-analysis/analysis-metric/metric-define/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/define/graph/MetricWorkerIdDefine.java
...or/analysis/metric/define/graph/MetricWorkerIdDefine.java
+9
-3
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/AnalysisMetricModuleProvider.java
...nalysis/metric/provider/AnalysisMetricModuleProvider.java
+1
-1
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceDayMetricPersistenceWorker.java
...r/instance/metric/InstanceDayMetricPersistenceWorker.java
+9
-9
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceDayMetricTransformNode.java
...orker/instance/metric/InstanceDayMetricTransformNode.java
+44
-0
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceHourMetricPersistenceWorker.java
.../instance/metric/InstanceHourMetricPersistenceWorker.java
+67
-0
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceHourMetricTransformNode.java
...rker/instance/metric/InstanceHourMetricTransformNode.java
+44
-0
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceMetricAggregationWorker.java
...rker/instance/metric/InstanceMetricAggregationWorker.java
+8
-4
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceMetricGraph.java
.../provider/worker/instance/metric/InstanceMetricGraph.java
+15
-4
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceMetricRemoteWorker.java
...er/worker/instance/metric/InstanceMetricRemoteWorker.java
+2
-2
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceMinuteMetricPersistenceWorker.java
...nstance/metric/InstanceMinuteMetricPersistenceWorker.java
+67
-0
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceMonthMetricPersistenceWorker.java
...instance/metric/InstanceMonthMetricPersistenceWorker.java
+67
-0
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceMonthMetricTransformNode.java
...ker/instance/metric/InstanceMonthMetricTransformNode.java
+44
-0
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
+2
-2
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/imp/IInstanceDayMetricPersistenceDAO.java
...tor/storage/dao/imp/IInstanceDayMetricPersistenceDAO.java
+2
-2
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/imp/IInstanceHourMetricPersistenceDAO.java
...or/storage/dao/imp/IInstanceHourMetricPersistenceDAO.java
+28
-0
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/imp/IInstanceMinuteMetricPersistenceDAO.java
.../storage/dao/imp/IInstanceMinuteMetricPersistenceDAO.java
+28
-0
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/imp/IInstanceMonthMetricPersistenceDAO.java
...r/storage/dao/imp/IInstanceMonthMetricPersistenceDAO.java
+28
-0
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
+2
-1
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
+3
-3
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/imp/AbstractInstanceMetricEsPersistenceDAO.java
...ge/es/dao/imp/AbstractInstanceMetricEsPersistenceDAO.java
+11
-14
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/imp/InstanceDayMetricEsPersistenceDAO.java
...storage/es/dao/imp/InstanceDayMetricEsPersistenceDAO.java
+43
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/imp/InstanceHourMetricEsPersistenceDAO.java
...torage/es/dao/imp/InstanceHourMetricEsPersistenceDAO.java
+42
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/imp/InstanceMinuteMetricEsPersistenceDAO.java
...rage/es/dao/imp/InstanceMinuteMetricEsPersistenceDAO.java
+42
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/imp/InstanceMonthMetricEsPersistenceDAO.java
...orage/es/dao/imp/InstanceMonthMetricEsPersistenceDAO.java
+42
-0
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
+3
-3
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceMinuteMetricH2PersistenceDAO.java
.../storage/h2/dao/InstanceMinuteMetricH2PersistenceDAO.java
+4
-4
未找到文件。
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/instance/InstanceMetricAlarmGraph.java
浏览文件 @
0145361a
...
...
@@ -64,7 +64,7 @@ public class InstanceMetricAlarmGraph {
private
void
link
(
Graph
<
InstanceMetric
>
graph
)
{
GraphManager
.
INSTANCE
.
findGraph
(
MetricGraphIdDefine
.
INSTANCE_METRIC_GRAPH_ID
,
InstanceMetric
.
class
)
.
toFinder
().
findNode
(
MetricWorkerIdDefine
.
INSTANCE_METRIC_PERSISTENCE_WORKER_ID
,
InstanceMetric
.
class
)
.
toFinder
().
findNode
(
MetricWorkerIdDefine
.
INSTANCE_M
INUTE_M
ETRIC_PERSISTENCE_WORKER_ID
,
InstanceMetric
.
class
)
.
addNext
(
new
NodeProcessor
<
InstanceMetric
,
InstanceMetric
>()
{
@Override
public
int
id
()
{
return
AlarmWorkerIdDefine
.
INSTANCE_METRIC_ALARM_GRAPH_BRIDGE_WORKER_ID
;
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-define/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/define/graph/MetricWorkerIdDefine.java
浏览文件 @
0145361a
...
...
@@ -62,9 +62,15 @@ public class MetricWorkerIdDefine {
public
static
final
int
SERVICE_MONTH_METRIC_PERSISTENCE_WORKER_ID
=
4407
;
public
static
final
int
SERVICE_MONTH_METRIC_TRANSFORM_NODE_ID
=
4408
;
public
static
final
int
INSTANCE_METRIC_AGGREGATION_WORKER_ID
=
412
;
public
static
final
int
INSTANCE_METRIC_REMOTE_WORKER_ID
=
413
;
public
static
final
int
INSTANCE_METRIC_PERSISTENCE_WORKER_ID
=
414
;
public
static
final
int
INSTANCE_MINUTE_METRIC_AGGREGATION_WORKER_ID
=
4500
;
public
static
final
int
INSTANCE_MINUTE_METRIC_REMOTE_WORKER_ID
=
4501
;
public
static
final
int
INSTANCE_MINUTE_METRIC_PERSISTENCE_WORKER_ID
=
4502
;
public
static
final
int
INSTANCE_HOUR_METRIC_PERSISTENCE_WORKER_ID
=
4503
;
public
static
final
int
INSTANCE_HOUR_METRIC_TRANSFORM_NODE_ID
=
4504
;
public
static
final
int
INSTANCE_DAY_METRIC_PERSISTENCE_WORKER_ID
=
4505
;
public
static
final
int
INSTANCE_DAY_METRIC_TRANSFORM_NODE_ID
=
4506
;
public
static
final
int
INSTANCE_MONTH_METRIC_PERSISTENCE_WORKER_ID
=
4507
;
public
static
final
int
INSTANCE_MONTH_METRIC_TRANSFORM_NODE_ID
=
4508
;
public
static
final
int
APPLICATION_METRIC_AGGREGATION_WORKER_ID
=
415
;
public
static
final
int
APPLICATION_METRIC_REMOTE_WORKER_ID
=
416
;
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/AnalysisMetricModuleProvider.java
浏览文件 @
0145361a
...
...
@@ -30,7 +30,7 @@ import org.apache.skywalking.apm.collector.analysis.metric.provider.worker.globa
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.global.GlobalTraceSpanListener
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance.InstanceMappingGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance.InstanceMappingSpanListener
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance.InstanceMetricGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance.
metric.
InstanceMetricGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance.refmetric.InstanceReferenceMetricGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.segment.SegmentCostGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.segment.SegmentCostSpanListener
;
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/
Instance
MetricPersistenceWorker.java
→
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/
metric/InstanceDay
MetricPersistenceWorker.java
浏览文件 @
0145361a
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance
;
package
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance
.metric
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricWorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
...
...
@@ -24,20 +24,20 @@ import org.apache.skywalking.apm.collector.analysis.worker.model.impl.Persistenc
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.
IInstance
MetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
imp.IInstanceDay
MetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
/**
* @author peng-yongsheng
*/
public
class
InstanceMetricPersistenceWorker
extends
PersistenceWorker
<
InstanceMetric
>
{
public
class
Instance
Day
MetricPersistenceWorker
extends
PersistenceWorker
<
InstanceMetric
>
{
public
InstanceMetricPersistenceWorker
(
ModuleManager
moduleManager
)
{
public
Instance
Day
MetricPersistenceWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
int
id
()
{
return
MetricWorkerIdDefine
.
INSTANCE_METRIC_PERSISTENCE_WORKER_ID
;
return
MetricWorkerIdDefine
.
INSTANCE_
DAY_
METRIC_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
...
...
@@ -46,17 +46,17 @@ public class InstanceMetricPersistenceWorker extends PersistenceWorker<InstanceM
@SuppressWarnings
(
"unchecked"
)
@Override
protected
IPersistenceDAO
<?,
?,
InstanceMetric
>
persistenceDAO
()
{
return
getModuleManager
().
find
(
StorageModule
.
NAME
).
getService
(
IInstanceMetricPersistenceDAO
.
class
);
return
getModuleManager
().
find
(
StorageModule
.
NAME
).
getService
(
IInstance
Day
MetricPersistenceDAO
.
class
);
}
public
static
class
Factory
extends
PersistenceWorkerProvider
<
InstanceMetric
,
InstanceMetricPersistenceWorker
>
{
public
static
class
Factory
extends
PersistenceWorkerProvider
<
InstanceMetric
,
Instance
Day
MetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
InstanceMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
InstanceMetricPersistenceWorker
(
moduleManager
);
@Override
public
Instance
Day
MetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
Instance
Day
MetricPersistenceWorker
(
moduleManager
);
}
@Override
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceDayMetricTransformNode.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.metric.provider.worker.instance.metric
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricWorkerIdDefine
;
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.instance.InstanceMetric
;
/**
* @author peng-yongsheng
*/
public
class
InstanceDayMetricTransformNode
implements
NodeProcessor
<
InstanceMetric
,
InstanceMetric
>
{
@Override
public
int
id
()
{
return
MetricWorkerIdDefine
.
INSTANCE_DAY_METRIC_TRANSFORM_NODE_ID
;
}
@Override
public
void
process
(
InstanceMetric
instanceMetric
,
Next
<
InstanceMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToDay
(
instanceMetric
.
getTimeBucket
());
instanceMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
instanceMetric
.
getMetricId
());
instanceMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
instanceMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceHourMetricPersistenceWorker.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.metric.provider.worker.instance.metric
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricWorkerIdDefine
;
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.imp.IInstanceHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
/**
* @author peng-yongsheng
*/
public
class
InstanceHourMetricPersistenceWorker
extends
PersistenceWorker
<
InstanceMetric
>
{
public
InstanceHourMetricPersistenceWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
int
id
()
{
return
MetricWorkerIdDefine
.
INSTANCE_HOUR_METRIC_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
return
true
;
}
@SuppressWarnings
(
"unchecked"
)
@Override
protected
IPersistenceDAO
<?,
?,
InstanceMetric
>
persistenceDAO
()
{
return
getModuleManager
().
find
(
StorageModule
.
NAME
).
getService
(
IInstanceHourMetricPersistenceDAO
.
class
);
}
public
static
class
Factory
extends
PersistenceWorkerProvider
<
InstanceMetric
,
InstanceHourMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
InstanceHourMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
InstanceHourMetricPersistenceWorker
(
moduleManager
);
}
@Override
public
int
queueSize
()
{
return
1024
;
}
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceHourMetricTransformNode.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.metric.provider.worker.instance.metric
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricWorkerIdDefine
;
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.instance.InstanceMetric
;
/**
* @author peng-yongsheng
*/
public
class
InstanceHourMetricTransformNode
implements
NodeProcessor
<
InstanceMetric
,
InstanceMetric
>
{
@Override
public
int
id
()
{
return
MetricWorkerIdDefine
.
INSTANCE_HOUR_METRIC_TRANSFORM_NODE_ID
;
}
@Override
public
void
process
(
InstanceMetric
instanceMetric
,
Next
<
InstanceMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToHour
(
instanceMetric
.
getTimeBucket
());
instanceMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
instanceMetric
.
getMetricId
());
instanceMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
instanceMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/InstanceMetricAggregationWorker.java
→
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/
metric/
InstanceMetricAggregationWorker.java
浏览文件 @
0145361a
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance
;
package
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance
.metric
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricWorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
...
...
@@ -36,13 +36,17 @@ public class InstanceMetricAggregationWorker extends AggregationWorker<InstanceR
}
@Override
public
int
id
()
{
return
MetricWorkerIdDefine
.
INSTANCE_METRIC_AGGREGATION_WORKER_ID
;
return
MetricWorkerIdDefine
.
INSTANCE_M
INUTE_M
ETRIC_AGGREGATION_WORKER_ID
;
}
@Override
protected
InstanceMetric
transform
(
InstanceReferenceMetric
instanceReferenceMetric
)
{
String
id
=
instanceReferenceMetric
.
getTimeBucket
()
+
Const
.
ID_SPLIT
+
instanceReferenceMetric
.
getBehindInstanceId
()
+
Const
.
ID_SPLIT
+
instanceReferenceMetric
.
getSourceValue
();
String
metricId
=
instanceReferenceMetric
.
getBehindInstanceId
()
+
Const
.
ID_SPLIT
+
instanceReferenceMetric
.
getSourceValue
();
String
id
=
instanceReferenceMetric
.
getTimeBucket
()
+
Const
.
ID_SPLIT
+
metricId
;
InstanceMetric
instanceMetric
=
new
InstanceMetric
();
instanceMetric
.
setId
(
id
);
instanceMetric
.
setMetricId
(
metricId
);
InstanceMetric
instanceMetric
=
new
InstanceMetric
(
id
);
instanceMetric
.
setApplicationId
(
instanceReferenceMetric
.
getBehindApplicationId
());
instanceMetric
.
setInstanceId
(
instanceReferenceMetric
.
getBehindInstanceId
());
instanceMetric
.
setSourceValue
(
instanceReferenceMetric
.
getSourceValue
());
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/InstanceMetricGraph.java
→
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/
metric/
InstanceMetricGraph.java
浏览文件 @
0145361a
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance
;
package
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance
.metric
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricGraphIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricWorkerIdDefine
;
...
...
@@ -24,10 +24,12 @@ import org.apache.skywalking.apm.collector.analysis.worker.model.base.WorkerCrea
import
org.apache.skywalking.apm.collector.core.graph.Graph
;
import
org.apache.skywalking.apm.collector.core.graph.GraphManager
;
import
org.apache.skywalking.apm.collector.core.graph.Next
;
import
org.apache.skywalking.apm.collector.core.graph.Node
;
import
org.apache.skywalking.apm.collector.core.graph.NodeProcessor
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.remote.RemoteModule
;
import
org.apache.skywalking.apm.collector.remote.service.RemoteSenderService
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceReferenceMetric
;
/**
...
...
@@ -48,10 +50,19 @@ public class InstanceMetricGraph {
Graph
<
InstanceReferenceMetric
>
graph
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
MetricGraphIdDefine
.
INSTANCE_METRIC_GRAPH_ID
,
InstanceReferenceMetric
.
class
);
graph
.
addNode
(
new
InstanceMetricAggregationWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
))
.
addNext
(
new
InstanceMetricRemoteWorker
.
Factory
(
moduleManager
,
remoteSenderService
,
MetricGraphIdDefine
.
INSTANCE_METRIC_GRAPH_ID
).
create
(
workerCreateListener
))
.
addNext
(
new
InstanceMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
Node
<
InstanceMetric
,
InstanceMetric
>
remoteNode
=
graph
.
addNode
(
new
InstanceMetricAggregationWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
))
.
addNext
(
new
InstanceMetricRemoteWorker
.
Factory
(
moduleManager
,
remoteSenderService
,
MetricGraphIdDefine
.
INSTANCE_METRIC_GRAPH_ID
).
create
(
workerCreateListener
));
remoteNode
.
addNext
(
new
InstanceMinuteMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
remoteNode
.
addNext
(
new
InstanceHourMetricTransformNode
())
.
addNext
(
new
InstanceHourMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
remoteNode
.
addNext
(
new
InstanceDayMetricTransformNode
())
.
addNext
(
new
InstanceDayMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
remoteNode
.
addNext
(
new
InstanceMonthMetricTransformNode
())
.
addNext
(
new
InstanceMonthMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
link
(
graph
);
}
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/InstanceMetricRemoteWorker.java
→
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/
metric/
InstanceMetricRemoteWorker.java
浏览文件 @
0145361a
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance
;
package
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance
.metric
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricWorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractRemoteWorker
;
...
...
@@ -37,7 +37,7 @@ public class InstanceMetricRemoteWorker extends AbstractRemoteWorker<InstanceMet
}
@Override
public
int
id
()
{
return
MetricWorkerIdDefine
.
INSTANCE_METRIC_REMOTE_WORKER_ID
;
return
MetricWorkerIdDefine
.
INSTANCE_M
INUTE_M
ETRIC_REMOTE_WORKER_ID
;
}
@Override
public
Selector
selector
()
{
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceMinuteMetricPersistenceWorker.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.metric.provider.worker.instance.metric
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricWorkerIdDefine
;
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.imp.IInstanceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
/**
* @author peng-yongsheng
*/
public
class
InstanceMinuteMetricPersistenceWorker
extends
PersistenceWorker
<
InstanceMetric
>
{
public
InstanceMinuteMetricPersistenceWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
int
id
()
{
return
MetricWorkerIdDefine
.
INSTANCE_MINUTE_METRIC_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
return
true
;
}
@SuppressWarnings
(
"unchecked"
)
@Override
protected
IPersistenceDAO
<?,
?,
InstanceMetric
>
persistenceDAO
()
{
return
getModuleManager
().
find
(
StorageModule
.
NAME
).
getService
(
IInstanceMinuteMetricPersistenceDAO
.
class
);
}
public
static
class
Factory
extends
PersistenceWorkerProvider
<
InstanceMetric
,
InstanceMinuteMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
InstanceMinuteMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
InstanceMinuteMetricPersistenceWorker
(
moduleManager
);
}
@Override
public
int
queueSize
()
{
return
1024
;
}
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceMonthMetricPersistenceWorker.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.metric.provider.worker.instance.metric
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricWorkerIdDefine
;
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.imp.IInstanceMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
/**
* @author peng-yongsheng
*/
public
class
InstanceMonthMetricPersistenceWorker
extends
PersistenceWorker
<
InstanceMetric
>
{
public
InstanceMonthMetricPersistenceWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
int
id
()
{
return
MetricWorkerIdDefine
.
INSTANCE_MONTH_METRIC_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
return
true
;
}
@SuppressWarnings
(
"unchecked"
)
@Override
protected
IPersistenceDAO
<?,
?,
InstanceMetric
>
persistenceDAO
()
{
return
getModuleManager
().
find
(
StorageModule
.
NAME
).
getService
(
IInstanceMonthMetricPersistenceDAO
.
class
);
}
public
static
class
Factory
extends
PersistenceWorkerProvider
<
InstanceMetric
,
InstanceMonthMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
InstanceMonthMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
InstanceMonthMetricPersistenceWorker
(
moduleManager
);
}
@Override
public
int
queueSize
()
{
return
1024
;
}
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/instance/metric/InstanceMonthMetricTransformNode.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.metric.provider.worker.instance.metric
;
import
org.apache.skywalking.apm.collector.analysis.metric.define.graph.MetricWorkerIdDefine
;
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.instance.InstanceMetric
;
/**
* @author peng-yongsheng
*/
public
class
InstanceMonthMetricTransformNode
implements
NodeProcessor
<
InstanceMetric
,
InstanceMetric
>
{
@Override
public
int
id
()
{
return
MetricWorkerIdDefine
.
INSTANCE_MONTH_METRIC_TRANSFORM_NODE_ID
;
}
@Override
public
void
process
(
InstanceMetric
instanceMetric
,
Next
<
InstanceMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToMonth
(
instanceMetric
.
getTimeBucket
());
instanceMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
instanceMetric
.
getMetricId
());
instanceMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
instanceMetric
);
}
}
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/StorageModule.java
浏览文件 @
0145361a
...
...
@@ -46,7 +46,7 @@ import org.apache.skywalking.apm.collector.storage.dao.IInstanceAlarmPersistence
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceHeartBeatPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceMappingPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
IInstanc
eMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
imp.IInstanceMinut
eMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceReferenceAlarmPersistenceDAO
;
...
...
@@ -130,7 +130,7 @@ public class StorageModule extends Module {
classes
.
add
(
IServiceMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IServiceReferenceMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IInstanceMetricPersistenceDAO
.
class
);
classes
.
add
(
IInstanceM
inuteM
etricPersistenceDAO
.
class
);
classes
.
add
(
IInstanceReferenceMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IInstanceMappingPersistenceDAO
.
class
);
classes
.
add
(
IInstanceHeartBeatPersistenceDAO
.
class
);
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/
IInstance
MetricPersistenceDAO.java
→
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/
imp/IInstanceDay
MetricPersistenceDAO.java
浏览文件 @
0145361a
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.dao
;
package
org.apache.skywalking.apm.collector.storage.dao
.imp
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
...
...
@@ -24,5 +24,5 @@ import org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
/**
* @author peng-yongsheng
*/
public
interface
IInstanceMetricPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
extends
InstanceMetric
>
extends
IPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
>
{
public
interface
IInstance
Day
MetricPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
extends
InstanceMetric
>
extends
IPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
>
{
}
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/imp/IInstanceHourMetricPersistenceDAO.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.imp
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
/**
* @author peng-yongsheng
*/
public
interface
IInstanceHourMetricPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
extends
InstanceMetric
>
extends
IPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
>
{
}
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/imp/IInstanceMinuteMetricPersistenceDAO.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.imp
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
/**
* @author peng-yongsheng
*/
public
interface
IInstanceMinuteMetricPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
extends
InstanceMetric
>
extends
IPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
>
{
}
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/imp/IInstanceMonthMetricPersistenceDAO.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.imp
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
/**
* @author peng-yongsheng
*/
public
interface
IInstanceMonthMetricPersistenceDAO
<
INSERT
,
UPDATE
,
STREAM_DATA
extends
InstanceMetric
>
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
浏览文件 @
0145361a
...
...
@@ -27,6 +27,7 @@ import java.util.Calendar;
import
java.util.concurrent.Executors
;
import
java.util.concurrent.TimeUnit
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.srmp.IServiceReferenceMinuteMetricPersistenceDAO
;
/**
...
...
@@ -88,7 +89,7 @@ public class DataTTLKeeperTimer {
IGlobalTracePersistenceDAO
globalTracePersistenceDAO
=
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
IGlobalTracePersistenceDAO
.
class
);
globalTracePersistenceDAO
.
deleteHistory
(
startTimestamp
,
endTimestamp
);
IInstanceM
etricPersistenceDAO
instanceMetricPersistenceDAO
=
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
IInstanc
eMetricPersistenceDAO
.
class
);
IInstanceM
inuteMetricPersistenceDAO
instanceMetricPersistenceDAO
=
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
IInstanceMinut
eMetricPersistenceDAO
.
class
);
instanceMetricPersistenceDAO
.
deleteHistory
(
startTimestamp
,
endTimestamp
);
IApplicationComponentPersistenceDAO
applicationComponentPersistenceDAO
=
moduleManager
.
find
(
StorageModule
.
NAME
).
getService
(
IApplicationComponentPersistenceDAO
.
class
);
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/StorageModuleEsProvider.java
浏览文件 @
0145361a
...
...
@@ -55,7 +55,7 @@ import org.apache.skywalking.apm.collector.storage.dao.IInstanceAlarmPersistence
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceHeartBeatPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceMappingPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
IInstanc
eMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
imp.IInstanceMinut
eMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceReferenceAlarmPersistenceDAO
;
...
...
@@ -111,7 +111,7 @@ import org.apache.skywalking.apm.collector.storage.es.dao.InstanceEsRegisterDAO;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceHeartBeatEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceMappingEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.
Instanc
eMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.
imp.InstanceMinut
eMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceReferenceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceReferenceAlarmListEsPersistenceDAO
;
...
...
@@ -243,7 +243,7 @@ public class StorageModuleEsProvider extends ModuleProvider {
this
.
registerServiceImplementation
(
IServiceMinuteMetricPersistenceDAO
.
class
,
new
ServiceMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IServiceReferenceMinuteMetricPersistenceDAO
.
class
,
new
ServiceReferenceMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IInstanceM
etricPersistenceDAO
.
class
,
new
Instanc
eMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IInstanceM
inuteMetricPersistenceDAO
.
class
,
new
InstanceMinut
eMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IInstanceReferenceMinuteMetricPersistenceDAO
.
class
,
new
InstanceReferenceMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IInstanceMappingPersistenceDAO
.
class
,
new
InstanceMappingEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IInstanceHeartBeatPersistenceDAO
.
class
,
new
InstanceHeartBeatEsPersistenceDAO
(
elasticSearchClient
));
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceMetricEsPersistenceDAO.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/
imp/Abstract
InstanceMetricEsPersistenceDAO.java
浏览文件 @
0145361a
...
...
@@ -16,37 +16,31 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.dao
;
package
org.apache.skywalking.apm.collector.storage.es.dao
.imp
;
import
java.util.HashMap
;
import
java.util.Map
;
import
org.apache.skywalking.apm.collector.client.elasticsearch.ElasticSearchClient
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.base.dao.AbstractPersistenceEsDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetricTable
;
import
org.elasticsearch.action.index.IndexRequestBuilder
;
import
org.elasticsearch.action.update.UpdateRequestBuilder
;
/**
* @author peng-yongsheng
*/
public
class
InstanceMetricEsPersistenceDAO
extends
AbstractPersistenceEsDAO
<
InstanceMetric
>
implements
IInstanceMetricPersistenceDAO
<
IndexRequestBuilder
,
UpdateRequestBuilder
,
InstanceMetric
>
{
public
abstract
class
AbstractInstanceMetricEsPersistenceDAO
extends
AbstractPersistenceEsDAO
<
InstanceMetric
>
{
public
InstanceMetricEsPersistenceDAO
(
ElasticSearchClient
client
)
{
Abstract
InstanceMetricEsPersistenceDAO
(
ElasticSearchClient
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
InstanceMetricTable
.
TABLE
;
}
@Override
protected
String
timeBucketColumnNameForDelete
()
{
@Override
protected
final
String
timeBucketColumnNameForDelete
()
{
return
InstanceMetricTable
.
COLUMN_TIME_BUCKET
;
}
@Override
protected
InstanceMetric
esDataToStreamData
(
Map
<
String
,
Object
>
source
)
{
@Override
protected
final
InstanceMetric
esDataToStreamData
(
Map
<
String
,
Object
>
source
)
{
InstanceMetric
instanceMetric
=
new
InstanceMetric
();
instanceMetric
.
setId
((
String
)
source
.
get
(
InstanceMetricTable
.
COLUMN_ID
));
instanceMetric
.
setMetricId
((
String
)
source
.
get
(
InstanceMetricTable
.
COLUMN_METRIC_ID
));
instanceMetric
.
setApplicationId
((
Integer
)
source
.
get
(
InstanceMetricTable
.
COLUMN_APPLICATION_ID
));
...
...
@@ -69,11 +63,14 @@ public class InstanceMetricEsPersistenceDAO extends AbstractPersistenceEsDAO<Ins
instanceMetric
.
setMqTransactionErrorDurationSum
(((
Number
)
source
.
get
(
InstanceMetricTable
.
COLUMN_MQ_TRANSACTION_ERROR_DURATION_SUM
)).
longValue
());
instanceMetric
.
setTimeBucket
(((
Number
)
source
.
get
(
InstanceMetricTable
.
COLUMN_TIME_BUCKET
)).
longValue
());
return
null
;
return
instanceMetric
;
}
@Override
protected
Map
<
String
,
Object
>
esStreamDataToEsData
(
InstanceMetric
streamData
)
{
@Override
protected
final
Map
<
String
,
Object
>
esStreamDataToEsData
(
InstanceMetric
streamData
)
{
Map
<
String
,
Object
>
source
=
new
HashMap
<>();
source
.
put
(
InstanceMetricTable
.
COLUMN_ID
,
streamData
.
getId
());
source
.
put
(
InstanceMetricTable
.
COLUMN_METRIC_ID
,
streamData
.
getMetricId
());
source
.
put
(
InstanceMetricTable
.
COLUMN_METRIC_ID
,
streamData
.
getMetricId
());
source
.
put
(
InstanceMetricTable
.
COLUMN_APPLICATION_ID
,
streamData
.
getApplicationId
());
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/imp/InstanceDayMetricEsPersistenceDAO.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.imp
;
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.imp.IInstanceDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetricTable
;
import
org.elasticsearch.action.index.IndexRequestBuilder
;
import
org.elasticsearch.action.update.UpdateRequestBuilder
;
/**
* @author peng-yongsheng
*/
public
class
InstanceDayMetricEsPersistenceDAO
extends
AbstractInstanceMetricEsPersistenceDAO
implements
IInstanceDayMetricPersistenceDAO
<
IndexRequestBuilder
,
UpdateRequestBuilder
,
InstanceMetric
>
{
public
InstanceDayMetricEsPersistenceDAO
(
ElasticSearchClient
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
InstanceMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Day
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/imp/InstanceHourMetricEsPersistenceDAO.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.imp
;
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.imp.IInstanceHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetricTable
;
import
org.elasticsearch.action.index.IndexRequestBuilder
;
import
org.elasticsearch.action.update.UpdateRequestBuilder
;
/**
* @author peng-yongsheng
*/
public
class
InstanceHourMetricEsPersistenceDAO
extends
AbstractInstanceMetricEsPersistenceDAO
implements
IInstanceHourMetricPersistenceDAO
<
IndexRequestBuilder
,
UpdateRequestBuilder
,
InstanceMetric
>
{
public
InstanceHourMetricEsPersistenceDAO
(
ElasticSearchClient
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
InstanceMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Hour
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/imp/InstanceMinuteMetricEsPersistenceDAO.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.imp
;
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.imp.IInstanceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetricTable
;
import
org.elasticsearch.action.index.IndexRequestBuilder
;
import
org.elasticsearch.action.update.UpdateRequestBuilder
;
/**
* @author peng-yongsheng
*/
public
class
InstanceMinuteMetricEsPersistenceDAO
extends
AbstractInstanceMetricEsPersistenceDAO
implements
IInstanceMinuteMetricPersistenceDAO
<
IndexRequestBuilder
,
UpdateRequestBuilder
,
InstanceMetric
>
{
public
InstanceMinuteMetricEsPersistenceDAO
(
ElasticSearchClient
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
InstanceMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Minute
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/imp/InstanceMonthMetricEsPersistenceDAO.java
0 → 100644
浏览文件 @
0145361a
/*
* 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.imp
;
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.imp.IInstanceMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetricTable
;
import
org.elasticsearch.action.index.IndexRequestBuilder
;
import
org.elasticsearch.action.update.UpdateRequestBuilder
;
/**
* @author peng-yongsheng
*/
public
class
InstanceMonthMetricEsPersistenceDAO
extends
AbstractInstanceMetricEsPersistenceDAO
implements
IInstanceMonthMetricPersistenceDAO
<
IndexRequestBuilder
,
UpdateRequestBuilder
,
InstanceMetric
>
{
public
InstanceMonthMetricEsPersistenceDAO
(
ElasticSearchClient
client
)
{
super
(
client
);
}
@Override
protected
String
tableName
()
{
return
InstanceMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Month
.
getName
();
}
}
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/StorageModuleH2Provider.java
浏览文件 @
0145361a
...
...
@@ -51,7 +51,7 @@ import org.apache.skywalking.apm.collector.storage.dao.IInstanceAlarmPersistence
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceHeartBeatPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceMappingPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
IInstanc
eMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
imp.IInstanceMinut
eMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceReferenceAlarmPersistenceDAO
;
...
...
@@ -107,7 +107,7 @@ import org.apache.skywalking.apm.collector.storage.h2.dao.InstanceH2RegisterDAO;
import
org.apache.skywalking.apm.collector.storage.h2.dao.InstanceH2UIDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.InstanceHeartBeatH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.InstanceMappingH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.InstanceMetricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.InstanceM
inuteM
etricH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.InstanceMetricH2UIDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.InstanceReferenceAlarmH2PersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.dao.InstanceReferenceAlarmListH2PersistenceDAO
;
...
...
@@ -221,7 +221,7 @@ public class StorageModuleH2Provider extends ModuleProvider {
this
.
registerServiceImplementation
(
IServiceMinuteMetricPersistenceDAO
.
class
,
new
ServiceMinuteMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IServiceReferenceMinuteMetricPersistenceDAO
.
class
,
new
ServiceReferenceMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IInstanceM
etricPersistenceDAO
.
class
,
new
Instanc
eMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IInstanceM
inuteMetricPersistenceDAO
.
class
,
new
InstanceMinut
eMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IInstanceReferenceMinuteMetricPersistenceDAO
.
class
,
new
InstanceReferenceMetricH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IInstanceMappingPersistenceDAO
.
class
,
new
InstanceMappingH2PersistenceDAO
(
h2Client
));
this
.
registerServiceImplementation
(
IInstanceHeartBeatPersistenceDAO
.
class
,
new
InstanceHeartBeatH2PersistenceDAO
(
h2Client
));
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceMetricH2PersistenceDAO.java
→
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceM
inuteM
etricH2PersistenceDAO.java
浏览文件 @
0145361a
...
...
@@ -26,7 +26,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.
IInstanc
eMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
imp.IInstanceMinut
eMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.define.H2SqlEntity
;
import
org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetric
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
...
...
@@ -39,12 +39,12 @@ import org.slf4j.LoggerFactory;
/**
* @author peng-yongsheng, clevertension
*/
public
class
InstanceM
etricH2PersistenceDAO
extends
H2DAO
implements
IInstanc
eMetricPersistenceDAO
<
H2SqlEntity
,
H2SqlEntity
,
InstanceMetric
>
{
public
class
InstanceM
inuteMetricH2PersistenceDAO
extends
H2DAO
implements
IInstanceMinut
eMetricPersistenceDAO
<
H2SqlEntity
,
H2SqlEntity
,
InstanceMetric
>
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
InstanceMetricH2PersistenceDAO
.
class
);
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
InstanceM
inuteM
etricH2PersistenceDAO
.
class
);
private
static
final
String
GET_SQL
=
"select * from {0} where {1} = ?"
;
public
InstanceMetricH2PersistenceDAO
(
H2Client
client
)
{
public
InstanceM
inuteM
etricH2PersistenceDAO
(
H2Client
client
)
{
super
(
client
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录