Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
月轩居士
SkyWalking
提交
46ac6ee4
S
SkyWalking
项目概览
月轩居士
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
46ac6ee4
编写于
12月 17, 2017
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Define analysis layer register module that use for register application, instance, service id.
上级
7c4c914a
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
301 addition
and
62 deletion
+301
-62
apm-collector/apm-collector-agent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/AgentStreamModuleProvider.java
...apm/collector/agent/stream/AgentStreamModuleProvider.java
+0
-4
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-define/pom.xml
...sis/analysis-layer-register/layer-register-define/pom.xml
+32
-0
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-define/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/define/AnalysisLayerRegisterModule.java
...is/layer/register/define/AnalysisLayerRegisterModule.java
+40
-0
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-define/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/define/service/IApplicationIDService.java
.../layer/register/define/service/IApplicationIDService.java
+1
-1
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-define/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/define/service/IInstanceIDService.java
...sis/layer/register/define/service/IInstanceIDService.java
+1
-1
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-define/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/define/service/IServiceNameService.java
...is/layer/register/define/service/IServiceNameService.java
+1
-1
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-define/src/main/resources/META-INF/services/org.apache.skywalking.apm.collector.core.module.Module
...es/org.apache.skywalking.apm.collector.core.module.Module
+19
-0
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-provider/pom.xml
...s/analysis-layer-register/layer-register-provider/pom.xml
+45
-0
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/provider/AnalysisLayerRegisterModuleProvider.java
...egister/provider/AnalysisLayerRegisterModuleProvider.java
+65
-0
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/provider/service/ApplicationIDService.java
...layer/register/provider/service/ApplicationIDService.java
+4
-7
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/provider/service/InstanceIDService.java
...is/layer/register/provider/service/InstanceIDService.java
+4
-7
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/provider/service/ServiceNameService.java
...s/layer/register/provider/service/ServiceNameService.java
+4
-7
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-provider/src/main/resources/META-INF/services/org.apache.skywalking.apm.collector.core.module.ModuleProvider
...pache.skywalking.apm.collector.core.module.ModuleProvider
+19
-0
apm-collector/apm-collector-analysis/analysis-layer-register/pom.xml
...or/apm-collector-analysis/analysis-layer-register/pom.xml
+38
-0
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/pom.xml
...s/analysis-segment-parser/segment-parser-provider/pom.xml
+10
-0
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/AnalysisSegmentParserModuleProvider.java
.../parser/provider/AnalysisSegmentParserModuleProvider.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/standardization/ReferenceIdExchanger.java
...provider/parser/standardization/ReferenceIdExchanger.java
+8
-8
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/standardization/SpanIdExchanger.java
...rser/provider/parser/standardization/SpanIdExchanger.java
+7
-6
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/resources/META-INF/services/org.apache.skywalking.apm.collector.core.module.ModuleProvider
...pache.skywalking.apm.collector.core.module.ModuleProvider
+1
-19
apm-collector/apm-collector-analysis/pom.xml
apm-collector/apm-collector-analysis/pom.xml
+1
-0
未找到文件。
apm-collector/apm-collector-agent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/AgentStreamModuleProvider.java
浏览文件 @
46ac6ee4
...
...
@@ -63,10 +63,6 @@ public class AgentStreamModuleProvider extends ModuleProvider {
}
@Override
public
void
prepare
(
Properties
config
)
throws
ServiceNotProvidedException
{
this
.
registerServiceImplementation
(
IApplicationIDService
.
class
,
new
ApplicationIDService
(
getManager
()));
this
.
registerServiceImplementation
(
IInstanceIDService
.
class
,
new
InstanceIDService
(
getManager
()));
this
.
registerServiceImplementation
(
IServiceNameService
.
class
,
new
ServiceNameService
(
getManager
()));
this
.
registerServiceImplementation
(
ICpuMetricService
.
class
,
new
CpuMetricService
());
this
.
registerServiceImplementation
(
IGCMetricService
.
class
,
new
GCMetricService
());
this
.
registerServiceImplementation
(
IMemoryMetricService
.
class
,
new
MemoryMetricService
());
...
...
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-define/pom.xml
0 → 100644
浏览文件 @
46ac6ee4
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
~
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
analysis-layer-register
</artifactId>
<groupId>
org.apache.skywalking
</groupId>
<version>
5.0.0-alpha
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
layer-register-define
</artifactId>
<packaging>
jar
</packaging>
</project>
\ No newline at end of file
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-define/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/define/AnalysisLayerRegisterModule.java
0 → 100644
浏览文件 @
46ac6ee4
/*
* 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.layer.register.define
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IApplicationIDService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IInstanceIDService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IServiceNameService
;
import
org.apache.skywalking.apm.collector.core.module.Module
;
/**
* @author peng-yongsheng
*/
public
class
AnalysisLayerRegisterModule
extends
Module
{
public
static
final
String
NAME
=
"analysis_layer_register"
;
@Override
public
String
name
()
{
return
NAME
;
}
@Override
public
Class
[]
services
()
{
return
new
Class
[]
{
IApplicationIDService
.
class
,
IInstanceIDService
.
class
,
IServiceNameService
.
class
};
}
}
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-define/src/main/java/org/apache/skywalking/apm/collector/agent/stream/service/register
/IApplicationIDService.java
→
apm-collector/apm-collector-a
nalysis/analysis-layer-register/layer-register-define/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/define/service
/IApplicationIDService.java
浏览文件 @
46ac6ee4
...
...
@@ -17,7 +17,7 @@
*/
package
org.apache.skywalking.apm.collector.a
gent.stream.service.register
;
package
org.apache.skywalking.apm.collector.a
nalysis.layer.register.define.service
;
import
org.apache.skywalking.apm.collector.core.module.Service
;
...
...
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-define/src/main/java/org/apache/skywalking/apm/collector/agent/stream/service/register
/IInstanceIDService.java
→
apm-collector/apm-collector-a
nalysis/analysis-layer-register/layer-register-define/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/define/service
/IInstanceIDService.java
浏览文件 @
46ac6ee4
...
...
@@ -17,7 +17,7 @@
*/
package
org.apache.skywalking.apm.collector.a
gent.stream.service.register
;
package
org.apache.skywalking.apm.collector.a
nalysis.layer.register.define.service
;
import
org.apache.skywalking.apm.collector.core.module.Service
;
...
...
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-define/src/main/java/org/apache/skywalking/apm/collector/agent/stream/service/register
/IServiceNameService.java
→
apm-collector/apm-collector-a
nalysis/analysis-layer-register/layer-register-define/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/define/service
/IServiceNameService.java
浏览文件 @
46ac6ee4
...
...
@@ -17,7 +17,7 @@
*/
package
org.apache.skywalking.apm.collector.a
gent.stream.service.register
;
package
org.apache.skywalking.apm.collector.a
nalysis.layer.register.define.service
;
import
org.apache.skywalking.apm.collector.core.module.Service
;
...
...
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-define/src/main/resources/META-INF/services/org.apache.skywalking.apm.collector.core.module.Module
0 → 100644
浏览文件 @
46ac6ee4
#
# 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.
#
#
org
.
apache
.
skywalking
.
apm
.
collector
.
analysis
.
layer
.
register
.
define
.
AnalysisLayerRegisterModule
\ No newline at end of file
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-provider/pom.xml
0 → 100644
浏览文件 @
46ac6ee4
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
~
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
analysis-layer-register
</artifactId>
<groupId>
org.apache.skywalking
</groupId>
<version>
5.0.0-alpha
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
layer-register-provider
</artifactId>
<packaging>
jar
</packaging>
<dependencies>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
layer-register-define
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
collector-cache-define
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/provider/AnalysisLayerRegisterModuleProvider.java
0 → 100644
浏览文件 @
46ac6ee4
/*
* 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.layer.register.provider
;
import
java.util.Properties
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.AnalysisLayerRegisterModule
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IApplicationIDService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IInstanceIDService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IServiceNameService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.provider.service.ApplicationIDService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.provider.service.InstanceIDService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.provider.service.ServiceNameService
;
import
org.apache.skywalking.apm.collector.core.module.Module
;
import
org.apache.skywalking.apm.collector.core.module.ModuleProvider
;
import
org.apache.skywalking.apm.collector.core.module.ServiceNotProvidedException
;
/**
* @author peng-yongsheng
*/
public
class
AnalysisLayerRegisterModuleProvider
extends
ModuleProvider
{
public
static
final
String
NAME
=
"default"
;
@Override
public
String
name
()
{
return
NAME
;
}
@Override
public
Class
<?
extends
Module
>
module
()
{
return
AnalysisLayerRegisterModule
.
class
;
}
@Override
public
void
prepare
(
Properties
config
)
throws
ServiceNotProvidedException
{
this
.
registerServiceImplementation
(
IApplicationIDService
.
class
,
new
ApplicationIDService
(
getManager
()));
this
.
registerServiceImplementation
(
IInstanceIDService
.
class
,
new
InstanceIDService
(
getManager
()));
this
.
registerServiceImplementation
(
IServiceNameService
.
class
,
new
ServiceNameService
(
getManager
()));
}
@Override
public
void
start
(
Properties
config
)
throws
ServiceNotProvidedException
{
}
@Override
public
void
notifyAfterCompleted
()
throws
ServiceNotProvidedException
{
}
@Override
public
String
[]
requiredModules
()
{
return
new
String
[
0
];
}
}
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/register
/ApplicationIDService.java
→
apm-collector/apm-collector-a
nalysis/analysis-layer-register/layer-register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/provider/service
/ApplicationIDService.java
浏览文件 @
46ac6ee4
...
...
@@ -16,18 +16,15 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.layer.register.provider.service
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.register
;
import
org.apache.skywalking.apm.collector.agent.stream.service.register.IApplicationIDService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IApplicationIDService
;
import
org.apache.skywalking.apm.collector.cache.CacheModule
;
import
org.apache.skywalking.apm.collector.cache.service.ApplicationCacheService
;
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.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.core.util.ObjectUtils
;
import
org.apache.skywalking.apm.collector.storage.table.register.Application
;
import
org.apache.skywalking.apm.collector.agent.stream.service.graph.RegisterStreamGraphDefine
;
import
org.apache.skywalking.apm.collector.cache.service.ApplicationCacheService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -48,7 +45,7 @@ public class ApplicationIDService implements IApplicationIDService {
private
Graph
<
Application
>
getApplicationRegisterGraph
()
{
if
(
ObjectUtils
.
isEmpty
(
applicationRegisterGraph
))
{
this
.
applicationRegisterGraph
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
RegisterStreamGraphDefine
.
APPLICATION_REGISTER_GRAPH_ID
,
Application
.
class
);
//
this.applicationRegisterGraph = GraphManager.INSTANCE.createIfAbsent(RegisterStreamGraphDefine.APPLICATION_REGISTER_GRAPH_ID, Application.class);
}
return
this
.
applicationRegisterGraph
;
}
...
...
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/register
/InstanceIDService.java
→
apm-collector/apm-collector-a
nalysis/analysis-layer-register/layer-register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/provider/service
/InstanceIDService.java
浏览文件 @
46ac6ee4
...
...
@@ -16,20 +16,17 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.layer.register.provider.service
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.register
;
import
org.apache.skywalking.apm.collector.agent.stream.service.register.IInstanceIDService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IInstanceIDService
;
import
org.apache.skywalking.apm.collector.cache.CacheModule
;
import
org.apache.skywalking.apm.collector.cache.service.InstanceCacheService
;
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.module.ModuleManager
;
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.table.register.Instance
;
import
org.apache.skywalking.apm.collector.agent.stream.service.graph.RegisterStreamGraphDefine
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -58,7 +55,7 @@ public class InstanceIDService implements IInstanceIDService {
private
Graph
<
Instance
>
getInstanceRegisterGraph
()
{
if
(
ObjectUtils
.
isEmpty
(
instanceRegisterGraph
))
{
this
.
instanceRegisterGraph
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
RegisterStreamGraphDefine
.
INSTANCE_REGISTER_GRAPH_ID
,
Instance
.
class
);
//
this.instanceRegisterGraph = GraphManager.INSTANCE.createIfAbsent(RegisterStreamGraphDefine.INSTANCE_REGISTER_GRAPH_ID, Instance.class);
}
return
instanceRegisterGraph
;
}
...
...
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/register
/ServiceNameService.java
→
apm-collector/apm-collector-a
nalysis/analysis-layer-register/layer-register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/layer/register/provider/service
/ServiceNameService.java
浏览文件 @
46ac6ee4
...
...
@@ -16,17 +16,14 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.layer.register.provider.service
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.register
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IServiceNameService
;
import
org.apache.skywalking.apm.collector.cache.CacheModule
;
import
org.apache.skywalking.apm.collector.cache.service.ServiceIdCacheService
;
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.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.core.util.ObjectUtils
;
import
org.apache.skywalking.apm.collector.agent.stream.service.graph.RegisterStreamGraphDefine
;
import
org.apache.skywalking.apm.collector.agent.stream.service.register.IServiceNameService
;
import
org.apache.skywalking.apm.collector.cache.service.ServiceIdCacheService
;
import
org.apache.skywalking.apm.collector.storage.table.register.ServiceName
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -55,7 +52,7 @@ public class ServiceNameService implements IServiceNameService {
private
Graph
<
ServiceName
>
getServiceNameRegisterGraph
()
{
if
(
ObjectUtils
.
isEmpty
(
serviceNameRegisterGraph
))
{
this
.
serviceNameRegisterGraph
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
RegisterStreamGraphDefine
.
SERVICE_NAME_REGISTER_GRAPH_ID
,
ServiceName
.
class
);
//
this.serviceNameRegisterGraph = GraphManager.INSTANCE.createIfAbsent(RegisterStreamGraphDefine.SERVICE_NAME_REGISTER_GRAPH_ID, ServiceName.class);
}
return
serviceNameRegisterGraph
;
}
...
...
apm-collector/apm-collector-analysis/analysis-layer-register/layer-register-provider/src/main/resources/META-INF/services/org.apache.skywalking.apm.collector.core.module.ModuleProvider
0 → 100644
浏览文件 @
46ac6ee4
#
# 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.
#
#
org.apache.skywalking.apm.collector.analysis.layer.register.provider.AnalysisLayerRegisterModuleProvider
\ No newline at end of file
apm-collector/apm-collector-analysis/analysis-layer-register/pom.xml
0 → 100644
浏览文件 @
46ac6ee4
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
~
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
apm-collector-analysis
</artifactId>
<groupId>
org.apache.skywalking
</groupId>
<version>
5.0.0-alpha
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
analysis-layer-register
</artifactId>
<packaging>
pom
</packaging>
<modules>
<module>
layer-register-define
</module>
<module>
layer-register-provider
</module>
</modules>
</project>
\ No newline at end of file
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/pom.xml
浏览文件 @
46ac6ee4
...
...
@@ -36,5 +36,15 @@
<artifactId>
segment-parser-define
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
layer-register-define
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
collector-cache-define
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/Analysis
TraceParse
ModuleProvider.java
→
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/Analysis
SegmentParser
ModuleProvider.java
浏览文件 @
46ac6ee4
...
...
@@ -32,7 +32,7 @@ import org.apache.skywalking.apm.collector.core.module.ServiceNotProvidedExcepti
/**
* @author peng-yongsheng
*/
public
class
Analysis
TraceParse
ModuleProvider
extends
ModuleProvider
{
public
class
Analysis
SegmentParser
ModuleProvider
extends
ModuleProvider
{
public
static
final
String
NAME
=
"default"
;
private
SegmentParserListenerManager
listenerManager
;
...
...
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/standardization/ReferenceIdExchanger.java
浏览文件 @
46ac6ee4
...
...
@@ -16,16 +16,16 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.segment.parser.provider.parser.standardization
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.AnalysisLayerRegisterModule
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IApplicationIDService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IServiceNameService
;
import
org.apache.skywalking.apm.collector.analysis.segment.parser.define.decorator.ReferenceDecorator
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.agent.stream.worker.register.ApplicationIDService
;
import
org.apache.skywalking.apm.collector.agent.stream.worker.register.ServiceNameService
;
import
org.apache.skywalking.apm.collector.cache.CacheModule
;
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.core.util.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -38,8 +38,8 @@ public class ReferenceIdExchanger implements IdExchanger<ReferenceDecorator> {
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ReferenceIdExchanger
.
class
);
private
static
ReferenceIdExchanger
EXCHANGER
;
private
final
ServiceNameService
serviceName
Service
;
private
final
ApplicationIDService
applicationID
Service
;
private
final
IApplicationIDService
applicationID
Service
;
private
final
IServiceNameService
serviceName
Service
;
private
final
InstanceCacheService
instanceCacheService
;
public
static
ReferenceIdExchanger
getInstance
(
ModuleManager
moduleManager
)
{
...
...
@@ -50,8 +50,8 @@ public class ReferenceIdExchanger implements IdExchanger<ReferenceDecorator> {
}
private
ReferenceIdExchanger
(
ModuleManager
moduleManager
)
{
applicationIDService
=
new
ApplicationIDService
(
moduleManager
);
serviceNameService
=
new
ServiceNameService
(
moduleManager
);
applicationIDService
=
moduleManager
.
find
(
AnalysisLayerRegisterModule
.
NAME
).
getService
(
IApplicationIDService
.
class
);
serviceNameService
=
moduleManager
.
find
(
AnalysisLayerRegisterModule
.
NAME
).
getService
(
IServiceNameService
.
class
);
instanceCacheService
=
moduleManager
.
find
(
CacheModule
.
NAME
).
getService
(
InstanceCacheService
.
class
);
}
...
...
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/standardization/SpanIdExchanger.java
浏览文件 @
46ac6ee4
...
...
@@ -18,8 +18,9 @@
package
org.apache.skywalking.apm.collector.analysis.segment.parser.provider.parser.standardization
;
import
org.apache.skywalking.apm.collector.agent.stream.worker.register.ApplicationIDService
;
import
org.apache.skywalking.apm.collector.agent.stream.worker.register.ServiceNameService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.AnalysisLayerRegisterModule
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IApplicationIDService
;
import
org.apache.skywalking.apm.collector.analysis.layer.register.define.service.IServiceNameService
;
import
org.apache.skywalking.apm.collector.analysis.segment.parser.define.decorator.SpanDecorator
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
...
...
@@ -35,8 +36,8 @@ public class SpanIdExchanger implements IdExchanger<SpanDecorator> {
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
SpanIdExchanger
.
class
);
private
static
SpanIdExchanger
EXCHANGER
;
private
final
ApplicationIDService
applicationIDService
;
private
final
ServiceNameService
serviceNameService
;
private
final
I
ApplicationIDService
applicationIDService
;
private
final
I
ServiceNameService
serviceNameService
;
public
static
SpanIdExchanger
getInstance
(
ModuleManager
moduleManager
)
{
if
(
EXCHANGER
==
null
)
{
...
...
@@ -46,8 +47,8 @@ public class SpanIdExchanger implements IdExchanger<SpanDecorator> {
}
private
SpanIdExchanger
(
ModuleManager
moduleManager
)
{
this
.
applicationIDService
=
new
ApplicationIDService
(
moduleManager
);
this
.
serviceNameService
=
new
ServiceNameService
(
moduleManager
);
applicationIDService
=
moduleManager
.
find
(
AnalysisLayerRegisterModule
.
NAME
).
getService
(
IApplicationIDService
.
class
);
serviceNameService
=
moduleManager
.
find
(
AnalysisLayerRegisterModule
.
NAME
).
getService
(
IServiceNameService
.
class
);
}
@Override
public
boolean
exchange
(
SpanDecorator
standardBuilder
,
int
applicationId
)
{
...
...
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/resources/META-INF/services/org.apache.skywalking.apm.collector.core.module.ModuleProvider
浏览文件 @
46ac6ee4
...
...
@@ -16,22 +16,4 @@
#
#
#
# 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.
#
#
org.apache.skywalking.apm.collector.analysis.segment.parser.provider.AnalysisTraceParseModuleProvider
\ No newline at end of file
org.apache.skywalking.apm.collector.analysis.segment.parser.provider.AnalysisSegmentParserModuleProvider
\ No newline at end of file
apm-collector/apm-collector-analysis/pom.xml
浏览文件 @
46ac6ee4
...
...
@@ -31,6 +31,7 @@
<packaging>
pom
</packaging>
<modules>
<module>
analysis-segment-parser
</module>
<module>
analysis-layer-register
</module>
</modules>
<dependencies>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录