Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
killuaz丶x
SkyWalking
提交
c037eef2
S
SkyWalking
项目概览
killuaz丶x
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c037eef2
编写于
12月 18, 2017
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Analysis JVM module finished.
上级
e7704360
变更
30
隐藏空白更改
内联
并排
Showing
30 changed file
with
625 addition
and
81 deletion
+625
-81
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/pom.xml
...or/apm-collector-analysis/analysis-jvm/jvm-define/pom.xml
+33
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/AnalysisJVMModule.java
.../apm/collector/analysis/jvm/define/AnalysisJVMModule.java
+45
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/graph/GraphIdDefine.java
...pm/collector/analysis/jvm/define/graph/GraphIdDefine.java
+30
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/graph/WorkerIdDefine.java
...m/collector/analysis/jvm/define/graph/WorkerIdDefine.java
+30
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service/ICpuMetricService.java
...lector/analysis/jvm/define/service/ICpuMetricService.java
+1
-2
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service/IGCMetricService.java
...llector/analysis/jvm/define/service/IGCMetricService.java
+1
-2
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service/IInstanceHeartBeatService.java
...nalysis/jvm/define/service/IInstanceHeartBeatService.java
+1
-2
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service/IMemoryMetricService.java
...tor/analysis/jvm/define/service/IMemoryMetricService.java
+1
-2
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service/IMemoryPoolMetricService.java
...analysis/jvm/define/service/IMemoryPoolMetricService.java
+1
-2
apm-collector/apm-collector-analysis/analysis-jvm/jvm-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-jvm/jvm-provider/pom.xml
.../apm-collector-analysis/analysis-jvm/jvm-provider/pom.xml
+50
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/AnalysisJVMModuleProvider.java
...ctor/analysis/jvm/provider/AnalysisJVMModuleProvider.java
+89
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/CpuMetricService.java
...ector/analysis/jvm/provider/service/CpuMetricService.java
+4
-5
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/GCMetricService.java
...lector/analysis/jvm/provider/service/GCMetricService.java
+4
-5
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/InstanceHeartBeatService.java
...alysis/jvm/provider/service/InstanceHeartBeatService.java
+5
-6
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/MemoryMetricService.java
...or/analysis/jvm/provider/service/MemoryMetricService.java
+5
-6
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/MemoryPoolMetricService.java
...nalysis/jvm/provider/service/MemoryPoolMetricService.java
+4
-5
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/CpuMetricPersistenceGraph.java
...alysis/jvm/provider/worker/CpuMetricPersistenceGraph.java
+41
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/CpuMetricPersistenceWorker.java
...lysis/jvm/provider/worker/CpuMetricPersistenceWorker.java
+7
-8
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/GCMetricPersistenceGraph.java
...nalysis/jvm/provider/worker/GCMetricPersistenceGraph.java
+41
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/GCMetricPersistenceWorker.java
...alysis/jvm/provider/worker/GCMetricPersistenceWorker.java
+8
-9
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/InstHeartBeatPersistenceWorker.java
...s/jvm/provider/worker/InstHeartBeatPersistenceWorker.java
+8
-9
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/InstanceHeartBeatPersistenceGraph.java
...vm/provider/worker/InstanceHeartBeatPersistenceGraph.java
+41
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/MemoryMetricPersistenceGraph.java
...sis/jvm/provider/worker/MemoryMetricPersistenceGraph.java
+41
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/MemoryMetricPersistenceWorker.java
...is/jvm/provider/worker/MemoryMetricPersistenceWorker.java
+8
-9
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/MemoryPoolMetricPersistenceGraph.java
...jvm/provider/worker/MemoryPoolMetricPersistenceGraph.java
+41
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/MemoryPoolMetricPersistenceWorker.java
...vm/provider/worker/MemoryPoolMetricPersistenceWorker.java
+8
-9
apm-collector/apm-collector-analysis/analysis-jvm/jvm-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-jvm/pom.xml
apm-collector/apm-collector-analysis/analysis-jvm/pom.xml
+38
-0
apm-collector/apm-collector-analysis/pom.xml
apm-collector/apm-collector-analysis/pom.xml
+1
-0
未找到文件。
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/pom.xml
0 → 100644
浏览文件 @
c037eef2
<?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-jvm
</artifactId>
<groupId>
org.apache.skywalking
</groupId>
<version>
5.0.0-alpha
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
jvm-define
</artifactId>
</project>
\ No newline at end of file
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/AnalysisJVMModule.java
0 → 100644
浏览文件 @
c037eef2
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.define
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.ICpuMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IGCMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IInstanceHeartBeatService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IMemoryMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IMemoryPoolMetricService
;
import
org.apache.skywalking.apm.collector.core.module.Module
;
/**
* @author peng-yongsheng
*/
public
class
AnalysisJVMModule
extends
Module
{
public
static
final
String
NAME
=
"analysis_jvm"
;
@Override
public
String
name
()
{
return
NAME
;
}
@Override
public
Class
[]
services
()
{
return
new
Class
[]
{
ICpuMetricService
.
class
,
IGCMetricService
.
class
,
IInstanceHeartBeatService
.
class
,
IMemoryMetricService
.
class
,
IMemoryPoolMetricService
.
class
};
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/graph/GraphIdDefine.java
0 → 100644
浏览文件 @
c037eef2
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.define.graph
;
/**
* @author peng-yongsheng
*/
public
class
GraphIdDefine
{
public
static
final
int
CPU_METRIC_PERSISTENCE_GRAPH_ID
=
300
;
public
static
final
int
GC_METRIC_PERSISTENCE_GRAPH_ID
=
301
;
public
static
final
int
INSTANCE_HEART_BEAT_PERSISTENCE_GRAPH_ID
=
302
;
public
static
final
int
MEMORY_METRIC_PERSISTENCE_GRAPH_ID
=
303
;
public
static
final
int
MEMORY_POOL_METRIC_PERSISTENCE_GRAPH_ID
=
304
;
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/graph/WorkerIdDefine.java
0 → 100644
浏览文件 @
c037eef2
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.define.graph
;
/**
* @author peng-yongsheng
*/
public
class
WorkerIdDefine
{
public
static
final
int
CPU_METRIC_PERSISTENCE_WORKER_ID
=
300
;
public
static
final
int
GC_METRIC_PERSISTENCE_WORKER_ID
=
301
;
public
static
final
int
INST_HEART_BEAT_PERSISTENCE_WORKER_ID
=
302
;
public
static
final
int
MEMORY_METRIC_PERSISTENCE_WORKER_ID
=
303
;
public
static
final
int
MEMORY_POOL_METRIC_PERSISTENCE_WORKER_ID
=
303
;
}
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-define/src/main/java/org/apache/skywalking/apm/collector/agent/stream/service/jvm
/ICpuMetricService.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service
/ICpuMetricService.java
浏览文件 @
c037eef2
...
...
@@ -16,8 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.agent.stream.service.jvm
;
package
org.apache.skywalking.apm.collector.analysis.jvm.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/jvm
/IGCMetricService.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service
/IGCMetricService.java
浏览文件 @
c037eef2
...
...
@@ -16,8 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.agent.stream.service.jvm
;
package
org.apache.skywalking.apm.collector.analysis.jvm.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/jvm
/IInstanceHeartBeatService.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service
/IInstanceHeartBeatService.java
浏览文件 @
c037eef2
...
...
@@ -16,8 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.agent.stream.service.jvm
;
package
org.apache.skywalking.apm.collector.analysis.jvm.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/jvm
/IMemoryMetricService.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service
/IMemoryMetricService.java
浏览文件 @
c037eef2
...
...
@@ -16,8 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.agent.stream.service.jvm
;
package
org.apache.skywalking.apm.collector.analysis.jvm.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/jvm
/IMemoryPoolMetricService.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service
/IMemoryPoolMetricService.java
浏览文件 @
c037eef2
...
...
@@ -16,8 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.agent.stream.service.jvm
;
package
org.apache.skywalking.apm.collector.analysis.jvm.define.service
;
import
org.apache.skywalking.apm.collector.core.module.Service
;
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/resources/META-INF/services/org.apache.skywalking.apm.collector.core.module.Module
0 → 100644
浏览文件 @
c037eef2
#
# 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
.
jvm
.
define
.
AnalysisJVMModule
\ No newline at end of file
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/pom.xml
0 → 100644
浏览文件 @
c037eef2
<?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-jvm
</artifactId>
<groupId>
org.apache.skywalking
</groupId>
<version>
5.0.0-alpha
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
jvm-provider
</artifactId>
<packaging>
jar
</packaging>
<dependencies>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
jvm-define
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
collector-storage-define
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
analysis-worker-model
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/AnalysisJVMModuleProvider.java
0 → 100644
浏览文件 @
c037eef2
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider
;
import
java.util.Properties
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.AnalysisJVMModule
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.ICpuMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IGCMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IInstanceHeartBeatService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IMemoryMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IMemoryPoolMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.provider.service.CpuMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.provider.service.GCMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.provider.service.InstanceHeartBeatService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.provider.service.MemoryMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.provider.service.MemoryPoolMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.CpuMetricPersistenceGraph
;
import
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.GCMetricPersistenceGraph
;
import
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.InstanceHeartBeatPersistenceGraph
;
import
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.MemoryMetricPersistenceGraph
;
import
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.MemoryPoolMetricPersistenceGraph
;
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
AnalysisJVMModuleProvider
extends
ModuleProvider
{
public
static
final
String
NAME
=
"default"
;
@Override
public
String
name
()
{
return
NAME
;
}
@Override
public
Class
<?
extends
Module
>
module
()
{
return
AnalysisJVMModule
.
class
;
}
@Override
public
void
prepare
(
Properties
config
)
throws
ServiceNotProvidedException
{
this
.
registerServiceImplementation
(
ICpuMetricService
.
class
,
new
CpuMetricService
());
this
.
registerServiceImplementation
(
IGCMetricService
.
class
,
new
GCMetricService
());
this
.
registerServiceImplementation
(
IInstanceHeartBeatService
.
class
,
new
InstanceHeartBeatService
());
this
.
registerServiceImplementation
(
IMemoryMetricService
.
class
,
new
MemoryMetricService
());
this
.
registerServiceImplementation
(
IMemoryPoolMetricService
.
class
,
new
MemoryPoolMetricService
());
}
@Override
public
void
start
(
Properties
config
)
throws
ServiceNotProvidedException
{
CpuMetricPersistenceGraph
cpuMetricPersistenceGraph
=
new
CpuMetricPersistenceGraph
(
getManager
());
cpuMetricPersistenceGraph
.
create
();
GCMetricPersistenceGraph
gcMetricPersistenceGraph
=
new
GCMetricPersistenceGraph
(
getManager
());
gcMetricPersistenceGraph
.
create
();
InstanceHeartBeatPersistenceGraph
instanceHeartBeatPersistenceGraph
=
new
InstanceHeartBeatPersistenceGraph
(
getManager
());
instanceHeartBeatPersistenceGraph
.
create
();
MemoryMetricPersistenceGraph
memoryMetricPersistenceGraph
=
new
MemoryMetricPersistenceGraph
(
getManager
());
memoryMetricPersistenceGraph
.
create
();
MemoryPoolMetricPersistenceGraph
memoryPoolMetricPersistenceGraph
=
new
MemoryPoolMetricPersistenceGraph
(
getManager
());
memoryPoolMetricPersistenceGraph
.
create
();
}
@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/jvm
/CpuMetricService.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service
/CpuMetricService.java
浏览文件 @
c037eef2
...
...
@@ -16,15 +16,14 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.service
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.jvm
;
import
org.apache.skywalking.apm.collector.agent.stream.service.graph.JvmMetricStreamGraphDefine
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.GraphIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.ICpuMetricService
;
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.util.Const
;
import
org.apache.skywalking.apm.collector.core.util.ObjectUtils
;
import
org.apache.skywalking.apm.collector.agent.stream.service.jvm.ICpuMetricService
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetric
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -40,7 +39,7 @@ public class CpuMetricService implements ICpuMetricService {
private
Graph
<
CpuMetric
>
getCpuMetricGraph
()
{
if
(
ObjectUtils
.
isEmpty
(
cpuMetricGraph
))
{
cpuMetricGraph
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
JvmMetricStreamGraphDefine
.
CPU_METRIC
_GRAPH_ID
,
CpuMetric
.
class
);
cpuMetricGraph
=
GraphManager
.
INSTANCE
.
findGraph
(
GraphIdDefine
.
CPU_METRIC_PERSISTENCE
_GRAPH_ID
,
CpuMetric
.
class
);
}
return
cpuMetricGraph
;
}
...
...
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/jvm
/GCMetricService.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service
/GCMetricService.java
浏览文件 @
c037eef2
...
...
@@ -16,11 +16,10 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.service
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.jvm
;
import
org.apache.skywalking.apm.collector.agent.stream.service.graph.JvmMetricStreamGraphDefine
;
import
org.apache.skywalking.apm.collector.agent.stream.service.jvm.IGCMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.GraphIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IGCMetricService
;
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.util.Const
;
...
...
@@ -40,7 +39,7 @@ public class GCMetricService implements IGCMetricService {
private
Graph
<
GCMetric
>
getGcMetricGraph
()
{
if
(
ObjectUtils
.
isEmpty
(
gcMetricGraph
))
{
gcMetricGraph
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
JvmMetricStreamGraphDefine
.
GC_METRIC
_GRAPH_ID
,
GCMetric
.
class
);
gcMetricGraph
=
GraphManager
.
INSTANCE
.
findGraph
(
GraphIdDefine
.
GC_METRIC_PERSISTENCE
_GRAPH_ID
,
GCMetric
.
class
);
}
return
gcMetricGraph
;
}
...
...
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/jvm
/InstanceHeartBeatService.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service
/InstanceHeartBeatService.java
浏览文件 @
c037eef2
...
...
@@ -16,16 +16,15 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.service
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.jvm
;
import
org.apache.skywalking.apm.collector.agent.stream.service.graph.JvmMetricStreamGraphDefine
;
import
org.apache.skywalking.apm.collector.agent.stream.service.jvm.IInstanceHeartBeatService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.GraphIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IInstanceHeartBeatService
;
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.util.ObjectUtils
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
import
org.apache.skywalking.apm.collector.core.util.TimeBucketUtils
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -40,7 +39,7 @@ public class InstanceHeartBeatService implements IInstanceHeartBeatService {
private
Graph
<
Instance
>
getHeartBeatGraph
()
{
if
(
ObjectUtils
.
isEmpty
(
heartBeatGraph
))
{
this
.
heartBeatGraph
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
JvmMetricStreamGraphDefine
.
INST_HEART_BEAT
_GRAPH_ID
,
Instance
.
class
);
this
.
heartBeatGraph
=
GraphManager
.
INSTANCE
.
findGraph
(
GraphIdDefine
.
INSTANCE_HEART_BEAT_PERSISTENCE
_GRAPH_ID
,
Instance
.
class
);
}
return
heartBeatGraph
;
}
...
...
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/jvm
/MemoryMetricService.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service
/MemoryMetricService.java
浏览文件 @
c037eef2
...
...
@@ -16,15 +16,14 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.service
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.jvm
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.GraphIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IMemoryMetricService
;
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.util.Const
;
import
org.apache.skywalking.apm.collector.core.util.ObjectUtils
;
import
org.apache.skywalking.apm.collector.agent.stream.service.graph.JvmMetricStreamGraphDefine
;
import
org.apache.skywalking.apm.collector.agent.stream.service.jvm.IMemoryMetricService
;
import
org.apache.skywalking.apm.collector.core.graph.Graph
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetric
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -40,7 +39,7 @@ public class MemoryMetricService implements IMemoryMetricService {
private
Graph
<
MemoryMetric
>
getMemoryMetricGraph
()
{
if
(
ObjectUtils
.
isEmpty
(
memoryMetricGraph
))
{
this
.
memoryMetricGraph
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
JvmMetricStreamGraphDefine
.
MEMORY_METRIC
_GRAPH_ID
,
MemoryMetric
.
class
);
this
.
memoryMetricGraph
=
GraphManager
.
INSTANCE
.
findGraph
(
GraphIdDefine
.
MEMORY_METRIC_PERSISTENCE
_GRAPH_ID
,
MemoryMetric
.
class
);
}
return
memoryMetricGraph
;
}
...
...
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/jvm
/MemoryPoolMetricService.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service
/MemoryPoolMetricService.java
浏览文件 @
c037eef2
...
...
@@ -16,11 +16,10 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.service
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.jvm
;
import
org.apache.skywalking.apm.collector.agent.stream.service.graph.JvmMetricStreamGraphDefine
;
import
org.apache.skywalking.apm.collector.agent.stream.service.jvm.IMemoryPoolMetricService
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.GraphIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.service.IMemoryPoolMetricService
;
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.util.Const
;
...
...
@@ -40,7 +39,7 @@ public class MemoryPoolMetricService implements IMemoryPoolMetricService {
private
Graph
<
MemoryPoolMetric
>
getMemoryPoolMetricGraph
()
{
if
(
ObjectUtils
.
isEmpty
(
memoryPoolMetricGraph
))
{
this
.
memoryPoolMetricGraph
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
JvmMetricStreamGraphDefine
.
MEMORY_POOL_METRIC
_GRAPH_ID
,
MemoryPoolMetric
.
class
);
this
.
memoryPoolMetricGraph
=
GraphManager
.
INSTANCE
.
findGraph
(
GraphIdDefine
.
MEMORY_POOL_METRIC_PERSISTENCE
_GRAPH_ID
,
MemoryPoolMetric
.
class
);
}
return
memoryPoolMetricGraph
;
}
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/CpuMetricPersistenceGraph.java
0 → 100644
浏览文件 @
c037eef2
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.GraphIdDefine
;
import
org.apache.skywalking.apm.collector.core.graph.GraphManager
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetric
;
/**
* @author peng-yongsheng
*/
public
class
CpuMetricPersistenceGraph
{
private
final
ModuleManager
moduleManager
;
public
CpuMetricPersistenceGraph
(
ModuleManager
moduleManager
)
{
this
.
moduleManager
=
moduleManager
;
}
public
void
create
()
{
GraphManager
.
INSTANCE
.
createIfAbsent
(
GraphIdDefine
.
CPU_METRIC_PERSISTENCE_GRAPH_ID
,
CpuMetric
.
class
)
.
addNode
(
new
CpuMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
null
));
}
}
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/jvm
/CpuMetricPersistenceWorker.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker
/CpuMetricPersistenceWorker.java
浏览文件 @
c037eef2
...
...
@@ -16,17 +16,16 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.jvm
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.queue.service.QueueCreatorService
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ICpuMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.CpuMetric
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
/**
* @author peng-yongsheng
...
...
@@ -38,7 +37,7 @@ public class CpuMetricPersistenceWorker extends PersistenceWorker<CpuMetric, Cpu
}
@Override
public
int
id
()
{
return
115
;
return
WorkerIdDefine
.
CPU_METRIC_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
...
...
@@ -51,8 +50,8 @@ public class CpuMetricPersistenceWorker extends PersistenceWorker<CpuMetric, Cpu
public
static
class
Factory
extends
AbstractLocalAsyncWorkerProvider
<
CpuMetric
,
CpuMetric
,
CpuMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
,
QueueCreatorService
<
CpuMetric
>
queueCreatorService
)
{
super
(
moduleManager
,
queueCreatorService
);
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
CpuMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/GCMetricPersistenceGraph.java
0 → 100644
浏览文件 @
c037eef2
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.GraphIdDefine
;
import
org.apache.skywalking.apm.collector.core.graph.GraphManager
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetric
;
/**
* @author peng-yongsheng
*/
public
class
GCMetricPersistenceGraph
{
private
final
ModuleManager
moduleManager
;
public
GCMetricPersistenceGraph
(
ModuleManager
moduleManager
)
{
this
.
moduleManager
=
moduleManager
;
}
public
void
create
()
{
GraphManager
.
INSTANCE
.
createIfAbsent
(
GraphIdDefine
.
GC_METRIC_PERSISTENCE_GRAPH_ID
,
GCMetric
.
class
)
.
addNode
(
new
GCMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
null
));
}
}
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/jvm
/GCMetricPersistenceWorker.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker
/GCMetricPersistenceWorker.java
浏览文件 @
c037eef2
...
...
@@ -16,17 +16,16 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.jvm
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGCMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.GCMetric
;
import
org.apache.skywalking.apm.collector.queue.service.QueueCreatorService
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
/**
* @author peng-yongsheng
...
...
@@ -38,7 +37,7 @@ public class GCMetricPersistenceWorker extends PersistenceWorker<GCMetric, GCMet
}
@Override
public
int
id
()
{
return
112
;
return
WorkerIdDefine
.
GC_METRIC_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
...
...
@@ -51,8 +50,8 @@ public class GCMetricPersistenceWorker extends PersistenceWorker<GCMetric, GCMet
public
static
class
Factory
extends
AbstractLocalAsyncWorkerProvider
<
GCMetric
,
GCMetric
,
GCMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
,
QueueCreatorService
<
GCMetric
>
queueCreatorService
)
{
super
(
moduleManager
,
queueCreatorService
);
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
GCMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
...
...
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/jvm
/InstHeartBeatPersistenceWorker.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker
/InstHeartBeatPersistenceWorker.java
浏览文件 @
c037eef2
...
...
@@ -16,17 +16,16 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.jvm
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceHeartBeatPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
import
org.apache.skywalking.apm.collector.queue.service.QueueCreatorService
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
/**
* @author peng-yongsheng
...
...
@@ -38,7 +37,7 @@ public class InstHeartBeatPersistenceWorker extends PersistenceWorker<Instance,
}
@Override
public
int
id
()
{
return
113
;
return
WorkerIdDefine
.
INST_HEART_BEAT_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
...
...
@@ -51,8 +50,8 @@ public class InstHeartBeatPersistenceWorker extends PersistenceWorker<Instance,
public
static
class
Factory
extends
AbstractLocalAsyncWorkerProvider
<
Instance
,
Instance
,
InstHeartBeatPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
,
QueueCreatorService
<
Instance
>
queueCreatorService
)
{
super
(
moduleManager
,
queueCreatorService
);
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
InstHeartBeatPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/InstanceHeartBeatPersistenceGraph.java
0 → 100644
浏览文件 @
c037eef2
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.GraphIdDefine
;
import
org.apache.skywalking.apm.collector.core.graph.GraphManager
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.table.register.Instance
;
/**
* @author peng-yongsheng
*/
public
class
InstanceHeartBeatPersistenceGraph
{
private
final
ModuleManager
moduleManager
;
public
InstanceHeartBeatPersistenceGraph
(
ModuleManager
moduleManager
)
{
this
.
moduleManager
=
moduleManager
;
}
public
void
create
()
{
GraphManager
.
INSTANCE
.
createIfAbsent
(
GraphIdDefine
.
INSTANCE_HEART_BEAT_PERSISTENCE_GRAPH_ID
,
Instance
.
class
)
.
addNode
(
new
InstHeartBeatPersistenceWorker
.
Factory
(
moduleManager
).
create
(
null
));
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/MemoryMetricPersistenceGraph.java
0 → 100644
浏览文件 @
c037eef2
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.GraphIdDefine
;
import
org.apache.skywalking.apm.collector.core.graph.GraphManager
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetric
;
/**
* @author peng-yongsheng
*/
public
class
MemoryMetricPersistenceGraph
{
private
final
ModuleManager
moduleManager
;
public
MemoryMetricPersistenceGraph
(
ModuleManager
moduleManager
)
{
this
.
moduleManager
=
moduleManager
;
}
public
void
create
()
{
GraphManager
.
INSTANCE
.
createIfAbsent
(
GraphIdDefine
.
MEMORY_METRIC_PERSISTENCE_GRAPH_ID
,
MemoryMetric
.
class
)
.
addNode
(
new
MemoryMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
null
));
}
}
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/jvm
/MemoryMetricPersistenceWorker.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker
/MemoryMetricPersistenceWorker.java
浏览文件 @
c037eef2
...
...
@@ -16,17 +16,16 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.jvm
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.
queue.service.QueueCreatorServic
e
;
import
org.apache.skywalking.apm.collector.
storage.StorageModul
e
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryMetric
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
/**
* @author peng-yongsheng
...
...
@@ -38,7 +37,7 @@ public class MemoryMetricPersistenceWorker extends PersistenceWorker<MemoryMetri
}
@Override
public
int
id
()
{
return
119
;
return
WorkerIdDefine
.
MEMORY_METRIC_PERSISTENCE_WORKER_ID
;
}
@Override
protected
boolean
needMergeDBData
()
{
...
...
@@ -51,8 +50,8 @@ public class MemoryMetricPersistenceWorker extends PersistenceWorker<MemoryMetri
public
static
class
Factory
extends
AbstractLocalAsyncWorkerProvider
<
MemoryMetric
,
MemoryMetric
,
MemoryMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
,
QueueCreatorService
<
MemoryMetric
>
queueCreatorService
)
{
super
(
moduleManager
,
queueCreatorService
);
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
MemoryMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/MemoryPoolMetricPersistenceGraph.java
0 → 100644
浏览文件 @
c037eef2
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.GraphIdDefine
;
import
org.apache.skywalking.apm.collector.core.graph.GraphManager
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetric
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolMetricPersistenceGraph
{
private
final
ModuleManager
moduleManager
;
public
MemoryPoolMetricPersistenceGraph
(
ModuleManager
moduleManager
)
{
this
.
moduleManager
=
moduleManager
;
}
public
void
create
()
{
GraphManager
.
INSTANCE
.
createIfAbsent
(
GraphIdDefine
.
MEMORY_POOL_METRIC_PERSISTENCE_GRAPH_ID
,
MemoryPoolMetric
.
class
)
.
addNode
(
new
MemoryPoolMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
null
));
}
}
apm-collector/apm-collector-a
gent-stream/collector-agent-stream-provider/src/main/java/org/apache/skywalking/apm/collector/agent/stream/worker/jvm
/MemoryPoolMetricPersistenceWorker.java
→
apm-collector/apm-collector-a
nalysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker
/MemoryPoolMetricPersistenceWorker.java
浏览文件 @
c037eef2
...
...
@@ -16,17 +16,16 @@
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker
;
package
org.apache.skywalking.apm.collector.agent.stream.worker.jvm
;
import
org.apache.skywalking.apm.collector.analysis.jvm.define.graph.WorkerIdDefine
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryPoolMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetric
;
import
org.apache.skywalking.apm.collector.queue.service.QueueCreatorService
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.base.AbstractLocalAsyncWorkerProvider
;
import
org.apache.skywalking.apm.collector.analysis.worker.model.impl.PersistenceWorker
;
/**
* @author peng-yongsheng
...
...
@@ -34,7 +33,7 @@ import org.apache.skywalking.apm.collector.analysis.worker.model.impl.Persistenc
public
class
MemoryPoolMetricPersistenceWorker
extends
PersistenceWorker
<
MemoryPoolMetric
,
MemoryPoolMetric
>
{
@Override
public
int
id
()
{
return
122
;
return
WorkerIdDefine
.
MEMORY_POOL_METRIC_PERSISTENCE_WORKER_ID
;
}
public
MemoryPoolMetricPersistenceWorker
(
ModuleManager
moduleManager
)
{
...
...
@@ -51,8 +50,8 @@ public class MemoryPoolMetricPersistenceWorker extends PersistenceWorker<MemoryP
public
static
class
Factory
extends
AbstractLocalAsyncWorkerProvider
<
MemoryPoolMetric
,
MemoryPoolMetric
,
MemoryPoolMetricPersistenceWorker
>
{
public
Factory
(
ModuleManager
moduleManager
,
QueueCreatorService
<
MemoryPoolMetric
>
queueCreatorService
)
{
super
(
moduleManager
,
queueCreatorService
);
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
MemoryPoolMetricPersistenceWorker
workerInstance
(
ModuleManager
moduleManager
)
{
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/resources/META-INF/services/org.apache.skywalking.apm.collector.core.module.ModuleProvider
0 → 100644
浏览文件 @
c037eef2
#
# 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.jvm.provider.AnalysisJVMModuleProvider
\ No newline at end of file
apm-collector/apm-collector-analysis/analysis-jvm/pom.xml
0 → 100644
浏览文件 @
c037eef2
<?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-jvm
</artifactId>
<packaging>
pom
</packaging>
<modules>
<module>
jvm-define
</module>
<module>
jvm-provider
</module>
</modules>
</project>
\ No newline at end of file
apm-collector/apm-collector-analysis/pom.xml
浏览文件 @
c037eef2
...
...
@@ -36,6 +36,7 @@
<module>
analysis-worker-model
</module>
<module>
analysis-metric
</module>
<module>
analysis-register
</module>
<module>
analysis-jvm
</module>
</modules>
<dependencies>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录