aboutsummaryrefslogtreecommitdiff
path: root/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java
diff options
context:
space:
mode:
authorMD <1917406+md678685@users.noreply.github.com>2020-06-23 12:02:43 +0100
committerGitHub <noreply@github.com>2020-06-23 12:02:43 +0100
commita2af3f8f7e3693f3e445d2998938bf448d47c35f (patch)
tree91f2f058fb114e96f121b9ee31a69dacb2f4e67f /spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java
parent12918d40b17a15f0432f7ad85d8db60a87e7c5b8 (diff)
downloadspark-a2af3f8f7e3693f3e445d2998938bf448d47c35f.tar.gz
spark-a2af3f8f7e3693f3e445d2998938bf448d47c35f.tar.bz2
spark-a2af3f8f7e3693f3e445d2998938bf448d47c35f.zip
Include platform info in sampler and heap summary data (#58)
Diffstat (limited to 'spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java')
-rw-r--r--spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java6
1 files changed, 6 insertions, 0 deletions
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 4fe8c52..ba59ad4 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,6 +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 org.checkerframework.checker.optional.qual.MaybePresent;
import java.nio.file.Path;
@@ -107,4 +108,9 @@ public class VelocitySparkPlugin implements SparkPlugin, Command {
public void executeAsync(Runnable task) {
this.proxy.getScheduler().buildTask(this, task).schedule();
}
+
+ @Override
+ public PlatformInfo getPlatformInfo() {
+ return new VelocityPlatformInfo(this.proxy);
+ }
}