aboutsummaryrefslogtreecommitdiff
path: root/spark-velocity
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2020-06-23 12:27:34 +0100
committerLuck <git@lucko.me>2020-06-23 12:27:34 +0100
commit85561633292550209a1461347f8446b54552b391 (patch)
treec5bf09a6a0a1bb0324f8e14ecda790184a183c2c /spark-velocity
parenta2af3f8f7e3693f3e445d2998938bf448d47c35f (diff)
downloadspark-85561633292550209a1461347f8446b54552b391.tar.gz
spark-85561633292550209a1461347f8446b54552b391.tar.bz2
spark-85561633292550209a1461347f8446b54552b391.zip
Add n-cpus and heap usage to platform info
Diffstat (limited to 'spark-velocity')
-rw-r--r--spark-velocity/src/main/java/me/lucko/spark/velocity/VelocityPlatformInfo.java5
-rw-r--r--spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java2
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;