diff options
author | Luck <git@lucko.me> | 2021-11-28 11:02:51 +0000 |
---|---|---|
committer | Luck <git@lucko.me> | 2021-11-28 11:02:51 +0000 |
commit | d4913b301a374560fd4a34cd36f456e694b9b0fb (patch) | |
tree | 9769f4bd5a4bca8937b004a52a08e78fe9869f77 /spark-api/src/main/java/me/lucko/spark | |
parent | ea24440cf3fa6a1a7fa2ef3f09035bb1b963a6e5 (diff) | |
download | spark-d4913b301a374560fd4a34cd36f456e694b9b0fb.tar.gz spark-d4913b301a374560fd4a34cd36f456e694b9b0fb.tar.bz2 spark-d4913b301a374560fd4a34cd36f456e694b9b0fb.zip |
Add spark version to platform metadata
Diffstat (limited to 'spark-api/src/main/java/me/lucko/spark')
-rw-r--r-- | spark-api/src/main/java/me/lucko/spark/api/Spark.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/spark-api/src/main/java/me/lucko/spark/api/Spark.java b/spark-api/src/main/java/me/lucko/spark/api/Spark.java index 8620348..653eb53 100644 --- a/spark-api/src/main/java/me/lucko/spark/api/Spark.java +++ b/spark-api/src/main/java/me/lucko/spark/api/Spark.java @@ -26,7 +26,6 @@ package me.lucko.spark.api; import me.lucko.spark.api.gc.GarbageCollector; -import me.lucko.spark.api.statistic.StatisticWindow; import me.lucko.spark.api.statistic.misc.DoubleAverageInfo; import me.lucko.spark.api.statistic.types.DoubleStatistic; import me.lucko.spark.api.statistic.types.GenericStatistic; @@ -37,6 +36,10 @@ import org.jetbrains.annotations.Unmodifiable; import java.util.Map; +import static me.lucko.spark.api.statistic.StatisticWindow.CpuUsage; +import static me.lucko.spark.api.statistic.StatisticWindow.MillisPerTick; +import static me.lucko.spark.api.statistic.StatisticWindow.TicksPerSecond; + /** * The spark API. */ @@ -47,14 +50,14 @@ public interface Spark { * * @return the CPU process statistic */ - @NonNull DoubleStatistic<StatisticWindow.CpuUsage> cpuProcess(); + @NonNull DoubleStatistic<CpuUsage> cpuProcess(); /** * Gets the CPU usage statistic for the overall system. * * @return the CPU system statistic */ - @NonNull DoubleStatistic<StatisticWindow.CpuUsage> cpuSystem(); + @NonNull DoubleStatistic<CpuUsage> cpuSystem(); /** * Gets the ticks per second statistic. @@ -63,7 +66,7 @@ public interface Spark { * * @return the ticks per second statistic */ - @Nullable DoubleStatistic<StatisticWindow.TicksPerSecond> tps(); + @Nullable DoubleStatistic<TicksPerSecond> tps(); /** * Gets the milliseconds per tick statistic. @@ -72,7 +75,7 @@ public interface Spark { * * @return the milliseconds per tick statistic */ - @Nullable GenericStatistic<DoubleAverageInfo, StatisticWindow.MillisPerTick> mspt(); + @Nullable GenericStatistic<DoubleAverageInfo, MillisPerTick> mspt(); /** * Gets the garbage collector statistics. |