You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ma...@apache.org on 2022/12/20 02:31:39 UTC
[pulsar] 01/01: [improve][broker] Add oshi library to help control OS resources.
This is an automated email from the ASF dual-hosted git repository.
mattisonchao pushed a commit to branch import_oshi
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 3d890dee8b5d18e0e31aab27eb0d38211f163b30
Author: mattisonchao <ma...@apache.org>
AuthorDate: Tue Dec 20 10:29:17 2022 +0800
[improve][broker] Add oshi library to help control OS resources.
---
pom.xml | 6 ++++++
pulsar-broker/pom.xml | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/pom.xml b/pom.xml
index aad7d2cab99..bb8a380d4e7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -285,6 +285,7 @@ flexible messaging model and an intuitive client API.</description>
<roaringbitmap.version>0.9.15</roaringbitmap.version>
<extra-enforcer-rules.version>1.6.1</extra-enforcer-rules.version>
<lombok.plugin.version>1.18.20.0</lombok.plugin.version>
+ <oshi.version>6.4.0</oshi.version>
<!-- Used to configure rename.netty.native. Libs -->
<rename.netty.native.libs>rename-netty-native-libs.sh</rename.netty.native.libs>
@@ -1337,6 +1338,11 @@ flexible messaging model and an intuitive client API.</description>
<artifactId>RoaringBitmap</artifactId>
<version>${roaringbitmap.version}</version>
</dependency>
+ <dependency>
+ <groupId>com.github.oshi</groupId>
+ <artifactId>oshi-core-java11</artifactId>
+ <version>${oshi.version}</version>
+ </dependency>
</dependencies>
</dependencyManagement>
diff --git a/pulsar-broker/pom.xml b/pulsar-broker/pom.xml
index 136bd670d5e..5c5fa0f65f8 100644
--- a/pulsar-broker/pom.xml
+++ b/pulsar-broker/pom.xml
@@ -343,6 +343,11 @@
<artifactId>RoaringBitmap</artifactId>
</dependency>
+ <dependency>
+ <groupId>com.github.oshi</groupId>
+ <artifactId>oshi-core-java11</artifactId>
+ </dependency>
+
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>pulsar-functions-api-examples</artifactId>
@@ -426,6 +431,7 @@
<artifactId>pulsar-package-filesystem-storage</artifactId>
<version>${project.version}</version>
</dependency>
+
</dependencies>
<build>