Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
山不在高_有仙则灵
SkyWalking
提交
a39f95fc
S
SkyWalking
项目概览
山不在高_有仙则灵
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
12
Star
0
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a39f95fc
编写于
1月 08, 2018
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Application component pyramid aggregate successful.
上级
11a4cfd3
变更
36
隐藏空白更改
内联
并排
Showing
36 changed file
with
160 addition
and
130 deletion
+160
-130
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
+6
-12
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentDayTransformNode.java
...ation/component/ApplicationComponentDayTransformNode.java
+8
-3
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentGraph.java
...rker/application/component/ApplicationComponentGraph.java
+2
-2
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentHourTransformNode.java
...tion/component/ApplicationComponentHourTransformNode.java
+8
-3
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentMinuteAggregationWorker.java
...omponent/ApplicationComponentMinuteAggregationWorker.java
+5
-5
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentMinuteRemoteWorker.java
...ion/component/ApplicationComponentMinuteRemoteWorker.java
+5
-5
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentMonthTransformNode.java
...ion/component/ApplicationComponentMonthTransformNode.java
+8
-3
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentSpanListener.java
...plication/component/ApplicationComponentSpanListener.java
+5
-9
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/register/ApplicationRegisterSerialWorker.java
...er/provider/register/ApplicationRegisterSerialWorker.java
+1
-1
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/register/InstanceRegisterSerialWorker.java
...ister/provider/register/InstanceRegisterSerialWorker.java
+1
-1
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/register/NetworkAddressRegisterSerialWorker.java
...provider/register/NetworkAddressRegisterSerialWorker.java
+1
-1
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/register/ServiceNameRegisterSerialWorker.java
...er/provider/register/ServiceNameRegisterSerialWorker.java
+1
-1
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/InstanceIDService.java
...analysis/register/provider/service/InstanceIDService.java
+1
-1
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/SegmentParse.java
...analysis/segment/parser/provider/parser/SegmentParse.java
+1
-1
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
+25
-18
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/register/IApplicationRegisterDAO.java
...llector/storage/dao/register/IApplicationRegisterDAO.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/register/IInstanceRegisterDAO.java
.../collector/storage/dao/register/IInstanceRegisterDAO.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/register/INetworkAddressRegisterDAO.java
...ctor/storage/dao/register/INetworkAddressRegisterDAO.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/register/IServiceNameRegisterDAO.java
...llector/storage/dao/register/IServiceNameRegisterDAO.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/application/ApplicationComponent.java
...ector/storage/table/application/ApplicationComponent.java
+8
-4
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
+44
-34
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/acp/AbstractApplicationComponentEsPersistenceDAO.java
...dao/acp/AbstractApplicationComponentEsPersistenceDAO.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/register/ApplicationEsRegisterDAO.java
...tor/storage/es/dao/register/ApplicationEsRegisterDAO.java
+2
-2
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/register/InstanceEsRegisterDAO.java
...lector/storage/es/dao/register/InstanceEsRegisterDAO.java
+2
-2
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/register/NetworkAddressRegisterEsDAO.java
.../storage/es/dao/register/NetworkAddressRegisterEsDAO.java
+2
-2
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/register/ServiceNameEsRegisterDAO.java
...tor/storage/es/dao/register/ServiceNameEsRegisterDAO.java
+2
-2
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/register/ApplicationEsTableDefine.java
.../storage/es/define/register/ApplicationEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/register/InstanceEsTableDefine.java
...tor/storage/es/define/register/InstanceEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/register/NetworkAddressEsTableDefine.java
...orage/es/define/register/NetworkAddressEsTableDefine.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/register/ServiceNameEsTableDefine.java
.../storage/es/define/register/ServiceNameEsTableDefine.java
+1
-2
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
+5
-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
+4
-4
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ApplicationH2RegisterDAO.java
...pm/collector/storage/h2/dao/ApplicationH2RegisterDAO.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceH2RegisterDAO.java
...g/apm/collector/storage/h2/dao/InstanceH2RegisterDAO.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/NetworkAddressRegisterH2DAO.java
...collector/storage/h2/dao/NetworkAddressRegisterH2DAO.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ServiceNameH2RegisterDAO.java
...pm/collector/storage/h2/dao/ServiceNameH2RegisterDAO.java
+1
-1
未找到文件。
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/AnalysisMetricModuleProvider.java
浏览文件 @
a39f95fc
...
...
@@ -23,22 +23,16 @@ import org.apache.skywalking.apm.collector.analysis.metric.define.AnalysisMetric
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.component.ApplicationComponentGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.component.ApplicationComponentSpanListener
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.mapping.ApplicationMappingGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.mapping.ApplicationMappingSpanListener
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.metric.ApplicationMetricGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.refmetric.ApplicationReferenceMetricGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.global.GlobalTraceGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.global.GlobalTraceSpanListener
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance.mapping.InstanceMappingGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.instance.mapping.InstanceMappingSpanListener
;
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
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.service.entry.ServiceEntryGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.service.entry.ServiceEntrySpanListener
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.service.metric.ServiceMetricGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.service.refmetric.ServiceReferenceMetricGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.service.refmetric.ServiceReferenceMetricSpanListener
;
import
org.apache.skywalking.apm.collector.analysis.segment.parser.define.AnalysisSegmentParserModule
;
import
org.apache.skywalking.apm.collector.analysis.segment.parser.define.service.ISegmentParserListenerRegister
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.WorkerCreateListener
;
...
...
@@ -86,13 +80,13 @@ public class AnalysisMetricModuleProvider extends ModuleProvider {
private
void
segmentParserListenerRegister
()
{
ISegmentParserListenerRegister
segmentParserListenerRegister
=
getManager
().
find
(
AnalysisSegmentParserModule
.
NAME
).
getService
(
ISegmentParserListenerRegister
.
class
);
segmentParserListenerRegister
.
register
(
new
ServiceReferenceMetricSpanListener
.
Factory
());
//
segmentParserListenerRegister.register(new ServiceReferenceMetricSpanListener.Factory());
segmentParserListenerRegister
.
register
(
new
ApplicationComponentSpanListener
.
Factory
());
segmentParserListenerRegister
.
register
(
new
ApplicationMappingSpanListener
.
Factory
());
segmentParserListenerRegister
.
register
(
new
InstanceMappingSpanListener
.
Factory
());
segmentParserListenerRegister
.
register
(
new
ServiceEntrySpanListener
.
Factory
());
segmentParserListenerRegister
.
register
(
new
GlobalTraceSpanListener
.
Factory
());
segmentParserListenerRegister
.
register
(
new
SegmentCostSpanListener
.
Factory
());
//
segmentParserListenerRegister.register(new ApplicationMappingSpanListener.Factory());
//
segmentParserListenerRegister.register(new InstanceMappingSpanListener.Factory());
//
segmentParserListenerRegister.register(new ServiceEntrySpanListener.Factory());
//
segmentParserListenerRegister.register(new GlobalTraceSpanListener.Factory());
//
segmentParserListenerRegister.register(new SegmentCostSpanListener.Factory());
}
private
void
graphCreate
(
WorkerCreateListener
workerCreateListener
)
{
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentDayTransformNode.java
浏览文件 @
a39f95fc
...
...
@@ -37,9 +37,14 @@ public class ApplicationComponentDayTransformNode implements NodeProcessor<Appli
@Override
public
void
process
(
ApplicationComponent
applicationComponent
,
Next
<
ApplicationComponent
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToDay
(
applicationComponent
.
getTimeBucket
());
applicationComponent
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationComponent
.
getMetricId
());
applicationComponent
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
applicationComponent
);
ApplicationComponent
newApplicationComponent
=
new
ApplicationComponent
();
newApplicationComponent
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationComponent
.
getMetricId
());
newApplicationComponent
.
setMetricId
(
applicationComponent
.
getMetricId
());
newApplicationComponent
.
setComponentId
(
applicationComponent
.
getComponentId
());
newApplicationComponent
.
setPeerId
(
applicationComponent
.
getPeerId
());
newApplicationComponent
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newApplicationComponent
);
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentGraph.java
浏览文件 @
a39f95fc
...
...
@@ -44,8 +44,8 @@ public class ApplicationComponentGraph {
RemoteSenderService
remoteSenderService
=
moduleManager
.
find
(
RemoteModule
.
NAME
).
getService
(
RemoteSenderService
.
class
);
Node
<
ApplicationComponent
,
ApplicationComponent
>
remoteNode
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
MetricGraphIdDefine
.
APPLICATION_COMPONENT_GRAPH_ID
,
ApplicationComponent
.
class
)
.
addNode
(
new
ApplicationComponentAggregationWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
))
.
addNext
(
new
ApplicationComponentRemoteWorker
.
Factory
(
moduleManager
,
remoteSenderService
,
MetricGraphIdDefine
.
APPLICATION_COMPONENT_GRAPH_ID
).
create
(
workerCreateListener
));
.
addNode
(
new
ApplicationComponent
Minute
AggregationWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
))
.
addNext
(
new
ApplicationComponent
Minute
RemoteWorker
.
Factory
(
moduleManager
,
remoteSenderService
,
MetricGraphIdDefine
.
APPLICATION_COMPONENT_GRAPH_ID
).
create
(
workerCreateListener
));
remoteNode
.
addNext
(
new
ApplicationComponentMinutePersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentHourTransformNode.java
浏览文件 @
a39f95fc
...
...
@@ -37,9 +37,14 @@ public class ApplicationComponentHourTransformNode implements NodeProcessor<Appl
@Override
public
void
process
(
ApplicationComponent
applicationComponent
,
Next
<
ApplicationComponent
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToHour
(
applicationComponent
.
getTimeBucket
());
applicationComponent
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationComponent
.
getMetricId
());
applicationComponent
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
applicationComponent
);
ApplicationComponent
newApplicationComponent
=
new
ApplicationComponent
();
newApplicationComponent
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationComponent
.
getMetricId
());
newApplicationComponent
.
setMetricId
(
applicationComponent
.
getMetricId
());
newApplicationComponent
.
setComponentId
(
applicationComponent
.
getComponentId
());
newApplicationComponent
.
setPeerId
(
applicationComponent
.
getPeerId
());
newApplicationComponent
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newApplicationComponent
);
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentAggregationWorker.java
→
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponent
Minute
AggregationWorker.java
浏览文件 @
a39f95fc
...
...
@@ -27,9 +27,9 @@ import org.apache.skywalking.apm.collector.storage.table.application.Application
/**
* @author peng-yongsheng
*/
public
class
ApplicationComponentAggregationWorker
extends
AggregationWorker
<
ApplicationComponent
,
ApplicationComponent
>
{
public
class
ApplicationComponent
Minute
AggregationWorker
extends
AggregationWorker
<
ApplicationComponent
,
ApplicationComponent
>
{
public
ApplicationComponentAggregationWorker
(
ModuleManager
moduleManager
)
{
public
ApplicationComponent
Minute
AggregationWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
...
...
@@ -37,14 +37,14 @@ public class ApplicationComponentAggregationWorker extends AggregationWorker<App
return
MetricWorkerIdDefine
.
APPLICATION_COMPONENT_MINUTE_AGGREGATION_WORKER_ID
;
}
public
static
class
Factory
extends
AbstractLocalAsyncWorkerProvider
<
ApplicationComponent
,
ApplicationComponent
,
ApplicationComponentAggregationWorker
>
{
public
static
class
Factory
extends
AbstractLocalAsyncWorkerProvider
<
ApplicationComponent
,
ApplicationComponent
,
ApplicationComponent
Minute
AggregationWorker
>
{
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
ApplicationComponentAggregationWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
ApplicationComponentAggregationWorker
(
moduleManager
);
@Override
public
ApplicationComponent
Minute
AggregationWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
ApplicationComponent
Minute
AggregationWorker
(
moduleManager
);
}
@Override
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentRemoteWorker.java
→
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponent
Minute
RemoteWorker.java
浏览文件 @
a39f95fc
...
...
@@ -30,9 +30,9 @@ import org.apache.skywalking.apm.collector.storage.table.application.Application
/**
* @author peng-yongsheng
*/
public
class
ApplicationComponentRemoteWorker
extends
AbstractRemoteWorker
<
ApplicationComponent
,
ApplicationComponent
>
{
public
class
ApplicationComponent
Minute
RemoteWorker
extends
AbstractRemoteWorker
<
ApplicationComponent
,
ApplicationComponent
>
{
ApplicationComponentRemoteWorker
(
ModuleManager
moduleManager
)
{
ApplicationComponent
Minute
RemoteWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
...
...
@@ -48,14 +48,14 @@ public class ApplicationComponentRemoteWorker extends AbstractRemoteWorker<Appli
return
Selector
.
HashCode
;
}
public
static
class
Factory
extends
AbstractRemoteWorkerProvider
<
ApplicationComponent
,
ApplicationComponent
,
ApplicationComponentRemoteWorker
>
{
public
static
class
Factory
extends
AbstractRemoteWorkerProvider
<
ApplicationComponent
,
ApplicationComponent
,
ApplicationComponent
Minute
RemoteWorker
>
{
public
Factory
(
ModuleManager
moduleManager
,
RemoteSenderService
remoteSenderService
,
int
graphId
)
{
super
(
moduleManager
,
remoteSenderService
,
graphId
);
}
@Override
public
ApplicationComponentRemoteWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
ApplicationComponentRemoteWorker
(
moduleManager
);
@Override
public
ApplicationComponent
Minute
RemoteWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
ApplicationComponent
Minute
RemoteWorker
(
moduleManager
);
}
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentMonthTransformNode.java
浏览文件 @
a39f95fc
...
...
@@ -37,9 +37,14 @@ public class ApplicationComponentMonthTransformNode implements NodeProcessor<App
@Override
public
void
process
(
ApplicationComponent
applicationComponent
,
Next
<
ApplicationComponent
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToMonth
(
applicationComponent
.
getTimeBucket
());
applicationComponent
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationComponent
.
getMetricId
());
applicationComponent
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
applicationComponent
);
ApplicationComponent
newApplicationComponent
=
new
ApplicationComponent
();
newApplicationComponent
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationComponent
.
getMetricId
());
newApplicationComponent
.
setMetricId
(
applicationComponent
.
getMetricId
());
newApplicationComponent
.
setComponentId
(
applicationComponent
.
getComponentId
());
newApplicationComponent
.
setPeerId
(
applicationComponent
.
getPeerId
());
newApplicationComponent
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newApplicationComponent
);
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/component/ApplicationComponentSpanListener.java
浏览文件 @
a39f95fc
...
...
@@ -33,25 +33,21 @@ import org.apache.skywalking.apm.collector.core.module.ModuleManager;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.core.util.TimeBucketUtils
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationComponent
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationComponentSpanListener
implements
EntrySpanListener
,
ExitSpanListener
,
FirstSpanListener
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ApplicationComponentSpanListener
.
class
);
private
List
<
ApplicationComponent
>
applicationComponents
=
new
ArrayList
<>();
private
long
timeBucket
;
@Override
public
void
parseExit
(
SpanDecorator
spanDecorator
,
int
applicationId
,
int
instanceId
,
String
segmentId
)
{
String
i
d
=
spanDecorator
.
getPeerId
()
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
spanDecorator
.
getComponentId
());
String
metricI
d
=
spanDecorator
.
getPeerId
()
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
spanDecorator
.
getComponentId
());
ApplicationComponent
applicationComponent
=
new
ApplicationComponent
();
applicationComponent
.
set
Id
(
i
d
);
applicationComponent
.
set
MetricId
(
metricI
d
);
applicationComponent
.
setComponentId
(
spanDecorator
.
getComponentId
());
applicationComponent
.
setPeerId
(
spanDecorator
.
getPeerId
());
applicationComponents
.
add
(
applicationComponent
);
...
...
@@ -59,10 +55,10 @@ public class ApplicationComponentSpanListener implements EntrySpanListener, Exit
@Override
public
void
parseEntry
(
SpanDecorator
spanDecorator
,
int
applicationId
,
int
instanceId
,
String
segmentId
)
{
String
i
d
=
String
.
valueOf
(
applicationId
)
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
spanDecorator
.
getComponentId
());
String
metricI
d
=
String
.
valueOf
(
applicationId
)
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
spanDecorator
.
getComponentId
());
ApplicationComponent
applicationComponent
=
new
ApplicationComponent
();
applicationComponent
.
set
Id
(
i
d
);
applicationComponent
.
set
MetricId
(
metricI
d
);
applicationComponent
.
setComponentId
(
spanDecorator
.
getComponentId
());
applicationComponent
.
setPeerId
(
applicationId
);
applicationComponents
.
add
(
applicationComponent
);
...
...
@@ -78,7 +74,7 @@ public class ApplicationComponentSpanListener implements EntrySpanListener, Exit
Graph
<
ApplicationComponent
>
graph
=
GraphManager
.
INSTANCE
.
findGraph
(
MetricGraphIdDefine
.
APPLICATION_COMPONENT_GRAPH_ID
,
ApplicationComponent
.
class
);
applicationComponents
.
forEach
(
applicationComponent
->
{
applicationComponent
.
setId
(
timeBucket
+
Const
.
ID_SPLIT
+
applicationComponent
.
getId
());
applicationComponent
.
setId
(
timeBucket
+
Const
.
ID_SPLIT
+
applicationComponent
.
get
Metric
Id
());
applicationComponent
.
setTimeBucket
(
timeBucket
);
graph
.
start
(
applicationComponent
);
});
...
...
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/register/ApplicationRegisterSerialWorker.java
浏览文件 @
a39f95fc
...
...
@@ -27,7 +27,7 @@ import org.apache.skywalking.apm.collector.cache.service.ApplicationCacheService
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Application
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/register/InstanceRegisterSerialWorker.java
浏览文件 @
a39f95fc
...
...
@@ -27,7 +27,7 @@ import org.apache.skywalking.apm.collector.cache.service.InstanceCacheService;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/register/NetworkAddressRegisterSerialWorker.java
浏览文件 @
a39f95fc
...
...
@@ -26,7 +26,7 @@ import org.apache.skywalking.apm.collector.cache.CacheModule;
import
org.apache.skywalking.apm.collector.cache.service.NetworkAddressCacheService
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.dao.INetworkAddressRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
INetworkAddressRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.NetworkAddress
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/register/ServiceNameRegisterSerialWorker.java
浏览文件 @
a39f95fc
...
...
@@ -27,7 +27,7 @@ import org.apache.skywalking.apm.collector.cache.service.ServiceIdCacheService;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.ServiceName
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/InstanceIDService.java
浏览文件 @
a39f95fc
...
...
@@ -28,7 +28,7 @@ import org.apache.skywalking.apm.collector.core.module.ModuleManager;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.core.util.ObjectUtils
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/SegmentParse.java
浏览文件 @
a39f95fc
...
...
@@ -167,7 +167,7 @@ public class SegmentParse {
segment
.
setDataBinary
(
dataBinary
);
segment
.
setTimeBucket
(
timeBucket
);
Graph
<
Segment
>
graph
=
GraphManager
.
INSTANCE
.
findGraph
(
GraphIdDefine
.
SEGMENT_PERSISTENCE_GRAPH_ID
,
Segment
.
class
);
graph
.
start
(
segment
);
//
graph.start(segment);
}
private
void
writeToBufferFile
(
String
id
,
UpstreamSegment
upstreamSegment
)
{
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/StorageModule.java
浏览文件 @
a39f95fc
...
...
@@ -25,19 +25,12 @@ import org.apache.skywalking.apm.collector.storage.base.dao.IBatchDAO;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationComponentUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationMappingUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ICpuMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGCMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGlobalTracePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGlobalTraceUIDAO
;
...
...
@@ -45,20 +38,13 @@ import org.apache.skywalking.apm.collector.storage.dao.IInstanceAlarmListPersist
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceAlarmPersistenceDAO
;
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.impp.IInstanceMappingMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
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
;
import
org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memorymp.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryPoolMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.INetworkAddressCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.INetworkAddressRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentCostPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentCostUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentPersistenceDAO
;
...
...
@@ -67,13 +53,30 @@ import org.apache.skywalking.apm.collector.storage.dao.IServiceAlarmListPersiste
import
org.apache.skywalking.apm.collector.storage.dao.IServiceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceEntryPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceEntryUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.smp.IServiceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceNameCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.srmp.IServiceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceReferenceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentDayPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentHourPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMonthPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationMinuteMetricPersistenceDAO
;
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.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.impp.IInstanceMappingMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memorymp.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.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
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.smp.IServiceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.srmp.IServiceReferenceMinuteMetricPersistenceDAO
;
/**
* @author peng-yongsheng
...
...
@@ -119,8 +122,12 @@ public class StorageModule extends Module {
classes
.
add
(
IMemorySecondMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryPoolSecondMetricPersistenceDAO
.
class
);
classes
.
add
(
IGlobalTracePersistenceDAO
.
class
);
classes
.
add
(
IApplicationComponentMinutePersistenceDAO
.
class
);
classes
.
add
(
IApplicationComponentHourPersistenceDAO
.
class
);
classes
.
add
(
IApplicationComponentDayPersistenceDAO
.
class
);
classes
.
add
(
IApplicationComponentMonthPersistenceDAO
.
class
);
classes
.
add
(
IGlobalTracePersistenceDAO
.
class
);
classes
.
add
(
IApplicationMappingMinutePersistenceDAO
.
class
);
classes
.
add
(
IApplicationMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IApplicationReferenceMinuteMetricPersistenceDAO
.
class
);
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/IApplicationRegisterDAO.java
→
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/
register/
IApplicationRegisterDAO.java
浏览文件 @
a39f95fc
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.dao
;
package
org.apache.skywalking.apm.collector.storage.dao
.register
;
import
org.apache.skywalking.apm.collector.storage.base.dao.DAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Application
;
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/IInstanceRegisterDAO.java
→
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/
register/
IInstanceRegisterDAO.java
浏览文件 @
a39f95fc
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.dao
;
package
org.apache.skywalking.apm.collector.storage.dao
.register
;
import
org.apache.skywalking.apm.collector.storage.base.dao.DAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/INetworkAddressRegisterDAO.java
→
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/
register/
INetworkAddressRegisterDAO.java
浏览文件 @
a39f95fc
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.dao
;
package
org.apache.skywalking.apm.collector.storage.dao
.register
;
import
org.apache.skywalking.apm.collector.storage.base.dao.DAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.NetworkAddress
;
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/IServiceNameRegisterDAO.java
→
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/dao/
register/
IServiceNameRegisterDAO.java
浏览文件 @
a39f95fc
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.dao
;
package
org.apache.skywalking.apm.collector.storage.dao
.register
;
import
org.apache.skywalking.apm.collector.storage.base.dao.DAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.ServiceName
;
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/application/ApplicationComponent.java
浏览文件 @
a39f95fc
...
...
@@ -30,18 +30,22 @@ public class ApplicationComponent extends StreamData {
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ApplicationComponentTable
.
COLUMN_ID
,
new
NonOperation
()),
new
Column
(
ApplicationComponentTable
.
COLUMN_METRIC_ID
,
new
NonOperation
()),
};
private
static
final
Column
[]
LONG_COLUMNS
=
{
new
Column
(
ApplicationComponentTable
.
COLUMN_TIME_BUCKET
,
new
CoverOperation
()),
};
private
static
final
Column
[]
DOUBLE_COLUMNS
=
{};
private
static
final
Column
[]
INTEGER_COLUMNS
=
{
new
Column
(
ApplicationComponentTable
.
COLUMN_COMPONENT_ID
,
new
CoverOperation
()),
new
Column
(
ApplicationComponentTable
.
COLUMN_PEER_ID
,
new
CoverOperation
()),
};
private
static
final
Column
[]
BOOLEAN_COLUMNS
=
{};
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
ApplicationComponent
()
{
...
...
@@ -49,19 +53,19 @@ public class ApplicationComponent extends StreamData {
}
@Override
public
String
getId
()
{
return
null
;
return
getDataString
(
0
)
;
}
@Override
public
void
setId
(
String
id
)
{
setDataString
(
0
,
id
);
}
@Override
public
String
getMetricId
()
{
return
null
;
return
getDataString
(
1
)
;
}
@Override
public
void
setMetricId
(
String
metricId
)
{
setDataString
(
1
,
metricId
);
}
public
Long
getTimeBucket
()
{
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/StorageModuleEsProvider.java
浏览文件 @
a39f95fc
...
...
@@ -34,19 +34,12 @@ import org.apache.skywalking.apm.collector.storage.base.dao.IBatchDAO;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationComponentUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationMappingUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ICpuMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGCMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGlobalTracePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGlobalTraceUIDAO
;
...
...
@@ -54,20 +47,13 @@ import org.apache.skywalking.apm.collector.storage.dao.IInstanceAlarmListPersist
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceAlarmPersistenceDAO
;
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.impp.IInstanceMappingMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
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
;
import
org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memorymp.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryPoolMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.INetworkAddressCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.INetworkAddressRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentCostPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentCostUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentPersistenceDAO
;
...
...
@@ -76,52 +62,55 @@ import org.apache.skywalking.apm.collector.storage.dao.IServiceAlarmListPersiste
import
org.apache.skywalking.apm.collector.storage.dao.IServiceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceEntryPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceEntryUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.smp.IServiceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceNameCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.srmp.IServiceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceReferenceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentDayPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentHourPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMonthPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationMinuteMetricPersistenceDAO
;
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.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.impp.IInstanceMappingMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memorymp.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.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
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.smp.IServiceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.srmp.IServiceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.base.dao.BatchEsDAO
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchStorageInstaller
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.acp.ApplicationComponentMinuteEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationComponentEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationEsRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ampp.ApplicationMappingMinuteEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationMappingEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.amp.ApplicationMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationReferenceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationReferenceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.armp.ApplicationReferenceMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationReferenceMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cpump.CpuSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.CpuMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.gcmp.GCSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.GCMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.GlobalTraceEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.GlobalTraceEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceEsCacheDAO
;
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.impp.InstanceMappingMinuteEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.imp.InstanceMinuteMetricEsPersistenceDAO
;
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
;
import
org.apache.skywalking.apm.collector.storage.es.dao.irmp.InstanceReferenceMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.memorymp.MemorySecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.MemoryMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpoolmp.MemoryPoolSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.MemoryPoolMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.NetworkAddressEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.NetworkAddressRegisterEsDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.SegmentCostEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.SegmentCostEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.SegmentEsPersistenceDAO
;
...
...
@@ -130,12 +119,29 @@ import org.apache.skywalking.apm.collector.storage.es.dao.ServiceAlarmEsPersiste
import
org.apache.skywalking.apm.collector.storage.es.dao.ServiceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ServiceEntryEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ServiceEntryEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.smp.ServiceMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ServiceNameEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ServiceNameEsRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ServiceReferenceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ServiceReferenceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ServiceReferenceEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.acp.ApplicationComponentDayEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.acp.ApplicationComponentHourEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.acp.ApplicationComponentMinuteEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.acp.ApplicationComponentMonthEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.amp.ApplicationMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ampp.ApplicationMappingMinuteEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.armp.ApplicationReferenceMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cpump.CpuSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.gcmp.GCSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.imp.InstanceMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.impp.InstanceMappingMinuteEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.irmp.InstanceReferenceMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.memorymp.MemorySecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpoolmp.MemoryPoolSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.register.ApplicationEsRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.register.InstanceEsRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.register.NetworkAddressRegisterEsDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.register.ServiceNameEsRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.smp.ServiceMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.srmp.ServiceReferenceMinuteMetricEsPersistenceDAO
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -232,8 +238,12 @@ public class StorageModuleEsProvider extends ModuleProvider {
this
.
registerServiceImplementation
(
IMemorySecondMetricPersistenceDAO
.
class
,
new
MemorySecondMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryPoolSecondMetricPersistenceDAO
.
class
,
new
MemoryPoolSecondMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IGlobalTracePersistenceDAO
.
class
,
new
GlobalTraceEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationComponentMinutePersistenceDAO
.
class
,
new
ApplicationComponentMinuteEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationComponentHourPersistenceDAO
.
class
,
new
ApplicationComponentHourEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationComponentDayPersistenceDAO
.
class
,
new
ApplicationComponentDayEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationComponentMonthPersistenceDAO
.
class
,
new
ApplicationComponentMonthEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IGlobalTracePersistenceDAO
.
class
,
new
GlobalTraceEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationMappingMinutePersistenceDAO
.
class
,
new
ApplicationMappingMinuteEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationMinuteMetricPersistenceDAO
.
class
,
new
ApplicationMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationReferenceMinuteMetricPersistenceDAO
.
class
,
new
ApplicationReferenceMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/acp/AbstractApplicationComponentEsPersistenceDAO.java
浏览文件 @
a39f95fc
...
...
@@ -45,7 +45,7 @@ public abstract class AbstractApplicationComponentEsPersistenceDAO extends Abstr
applicationComponent
.
setComponentId
(((
Number
)
source
.
get
(
ApplicationComponentTable
.
COLUMN_COMPONENT_ID
)).
intValue
());
applicationComponent
.
setPeerId
(((
Number
)
source
.
get
(
ApplicationComponentTable
.
COLUMN_PEER_ID
)).
intValue
());
applicationComponent
.
setTimeBucket
((
Long
)
source
.
get
(
ApplicationComponentTable
.
COLUMN_TIME_BUCKET
));
applicationComponent
.
setTimeBucket
((
(
Number
)
source
.
get
(
ApplicationComponentTable
.
COLUMN_TIME_BUCKET
)).
longValue
(
));
return
applicationComponent
;
}
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ApplicationEsRegisterDAO.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/
register/
ApplicationEsRegisterDAO.java
浏览文件 @
a39f95fc
...
...
@@ -16,12 +16,12 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.dao
;
package
org.apache.skywalking.apm.collector.storage.es.dao
.register
;
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.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.es.base.dao.EsDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Application
;
import
org.apache.skywalking.apm.collector.storage.table.register.ApplicationTable
;
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/InstanceEsRegisterDAO.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/
register/
InstanceEsRegisterDAO.java
浏览文件 @
a39f95fc
...
...
@@ -16,12 +16,12 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.dao
;
package
org.apache.skywalking.apm.collector.storage.es.dao
.register
;
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.IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.es.base.dao.EsDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
import
org.apache.skywalking.apm.collector.storage.table.register.InstanceTable
;
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/NetworkAddressRegisterEsDAO.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/
register/
NetworkAddressRegisterEsDAO.java
浏览文件 @
a39f95fc
...
...
@@ -16,12 +16,12 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.dao
;
package
org.apache.skywalking.apm.collector.storage.es.dao
.register
;
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.INetworkAddressRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
INetworkAddressRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.es.base.dao.EsDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.NetworkAddress
;
import
org.apache.skywalking.apm.collector.storage.table.register.NetworkAddressTable
;
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ServiceNameEsRegisterDAO.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/
register/
ServiceNameEsRegisterDAO.java
浏览文件 @
a39f95fc
...
...
@@ -16,12 +16,12 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.dao
;
package
org.apache.skywalking.apm.collector.storage.es.dao
.register
;
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.IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.es.base.dao.EsDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.ServiceName
;
import
org.apache.skywalking.apm.collector.storage.table.register.ServiceNameTable
;
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/ApplicationEsTableDefine.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/
register/
ApplicationEsTableDefine.java
浏览文件 @
a39f95fc
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define
;
package
org.apache.skywalking.apm.collector.storage.es.define
.register
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchColumnDefine
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchTableDefine
;
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/InstanceEsTableDefine.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/
register/
InstanceEsTableDefine.java
浏览文件 @
a39f95fc
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define
;
package
org.apache.skywalking.apm.collector.storage.es.define
.register
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchColumnDefine
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchTableDefine
;
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/NetworkAddressEsTableDefine.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/
register/
NetworkAddressEsTableDefine.java
浏览文件 @
a39f95fc
...
...
@@ -16,7 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define
;
package
org.apache.skywalking.apm.collector.storage.es.define
.register
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchColumnDefine
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchTableDefine
;
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/ServiceNameEsTableDefine.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/
register/
ServiceNameEsTableDefine.java
浏览文件 @
a39f95fc
...
...
@@ -16,8 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define
;
package
org.apache.skywalking.apm.collector.storage.es.define.register
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchColumnDefine
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchTableDefine
;
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/resources/META-INF/defines/storage.define
浏览文件 @
a39f95fc
org.apache.skywalking.apm.collector.storage.es.define.register.ApplicationEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.register.InstanceEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.register.ServiceNameEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.register.NetworkAddressEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.appcomp.ApplicationComponentMinuteEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.appcomp.ApplicationComponentHourEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.appcomp.ApplicationComponentDayEsTableDefine
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/StorageModuleH2Provider.java
浏览文件 @
a39f95fc
...
...
@@ -39,7 +39,7 @@ import org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceAlar
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ICpuMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
...
...
@@ -56,14 +56,14 @@ 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
;
import
org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memorymp.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryPoolMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.INetworkAddressCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.INetworkAddressRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
INetworkAddressRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentCostPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentCostUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentPersistenceDAO
;
...
...
@@ -74,7 +74,7 @@ import org.apache.skywalking.apm.collector.storage.dao.IServiceEntryPersistenceD
import
org.apache.skywalking.apm.collector.storage.dao.IServiceEntryUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.smp.IServiceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceNameCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.srmp.IServiceReferenceMinuteMetricPersistenceDAO
;
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ApplicationH2RegisterDAO.java
浏览文件 @
a39f95fc
...
...
@@ -23,7 +23,7 @@ import java.util.Map;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Application
;
import
org.apache.skywalking.apm.collector.storage.table.register.ApplicationTable
;
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/InstanceH2RegisterDAO.java
浏览文件 @
a39f95fc
...
...
@@ -23,7 +23,7 @@ import java.util.Map;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IInstanceRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
import
org.apache.skywalking.apm.collector.storage.table.register.InstanceTable
;
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/NetworkAddressRegisterH2DAO.java
浏览文件 @
a39f95fc
...
...
@@ -23,7 +23,7 @@ import java.util.Map;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.INetworkAddressRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
INetworkAddressRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.h2.base.dao.H2DAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.NetworkAddress
;
import
org.apache.skywalking.apm.collector.storage.table.register.NetworkAddressTable
;
...
...
apm-collector/apm-collector-storage/collector-storage-h2-provider/src/main/java/org/apache/skywalking/apm/collector/storage/h2/dao/ServiceNameH2RegisterDAO.java
浏览文件 @
a39f95fc
...
...
@@ -22,7 +22,7 @@ package org.apache.skywalking.apm.collector.storage.h2.dao;
import
java.util.HashMap
;
import
java.util.Map
;
import
org.apache.skywalking.apm.collector.storage.base.sql.SqlBuilder
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.
register.
IServiceNameRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.ServiceNameTable
;
import
org.apache.skywalking.apm.collector.client.h2.H2Client
;
import
org.apache.skywalking.apm.collector.client.h2.H2ClientException
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录