diff options
author | Luck <git@lucko.me> | 2020-06-23 12:27:34 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2020-06-23 12:27:34 +0100 |
commit | 85561633292550209a1461347f8446b54552b391 (patch) | |
tree | c5bf09a6a0a1bb0324f8e14ecda790184a183c2c /spark-velocity/src/main/java/me/lucko/spark/velocity | |
parent | a2af3f8f7e3693f3e445d2998938bf448d47c35f (diff) | |
download | spark-85561633292550209a1461347f8446b54552b391.tar.gz spark-85561633292550209a1461347f8446b54552b391.tar.bz2 spark-85561633292550209a1461347f8446b54552b391.zip |
Add n-cpus and heap usage to platform info
Diffstat (limited to 'spark-velocity/src/main/java/me/lucko/spark/velocity')
-rw-r--r-- | spark-velocity/src/main/java/me/lucko/spark/velocity/VelocityPlatformInfo.java | 5 | ||||
-rw-r--r-- | spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocityPlatformInfo.java b/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocityPlatformInfo.java index 81fa21c..4750181 100644 --- a/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocityPlatformInfo.java +++ b/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocityPlatformInfo.java @@ -21,10 +21,9 @@ package me.lucko.spark.velocity; import com.velocitypowered.api.proxy.ProxyServer; -import me.lucko.spark.common.PlatformInfo; - -public class VelocityPlatformInfo implements PlatformInfo { +import me.lucko.spark.common.platform.AbstractPlatformInfo; +public class VelocityPlatformInfo extends AbstractPlatformInfo { private final ProxyServer proxy; public VelocityPlatformInfo(ProxyServer proxy) { diff --git a/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java b/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java index ba59ad4..798f4f1 100644 --- a/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java +++ b/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java @@ -32,7 +32,7 @@ import com.velocitypowered.api.plugin.annotation.DataDirectory; import com.velocitypowered.api.proxy.ProxyServer; import me.lucko.spark.common.SparkPlatform; import me.lucko.spark.common.SparkPlugin; -import me.lucko.spark.common.PlatformInfo; +import me.lucko.spark.common.platform.PlatformInfo; import org.checkerframework.checker.optional.qual.MaybePresent; import java.nio.file.Path; |