aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me/lucko/spark/common/sampler
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2021-05-06 16:08:23 +0100
committerLuck <git@lucko.me>2021-05-06 16:34:16 +0100
commitf17661af47cd36d4df5339edf0dd5349123bfe53 (patch)
treed47a066aeebadb44ca6864e3f48d25d322e0a5f9 /spark-common/src/main/java/me/lucko/spark/common/sampler
parent0c71e09e79ed50f10b38f267d3280f0be4cab000 (diff)
downloadspark-f17661af47cd36d4df5339edf0dd5349123bfe53.tar.gz
spark-f17661af47cd36d4df5339edf0dd5349123bfe53.tar.bz2
spark-f17661af47cd36d4df5339edf0dd5349123bfe53.zip
Improve some proto message/field names
Diffstat (limited to 'spark-common/src/main/java/me/lucko/spark/common/sampler')
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncSampler.java4
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/sampler/java/JavaSampler.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncSampler.java b/spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncSampler.java
index 1e23124..c76274b 100644
--- a/spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncSampler.java
+++ b/spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncSampler.java
@@ -146,8 +146,8 @@ public class AsyncSampler implements Sampler {
@Override
public SparkProtos.SamplerData toProto(PlatformInfo platformInfo, CommandSender creator, Comparator<? super Map.Entry<String, ThreadNode>> outputOrder, String comment, MergeMode mergeMode) {
final SparkProtos.SamplerMetadata.Builder metadata = SparkProtos.SamplerMetadata.newBuilder()
- .setPlatform(platformInfo.toData().toProto())
- .setUser(creator.toData().toProto())
+ .setPlatformMetadata(platformInfo.toData().toProto())
+ .setCreator(creator.toData().toProto())
.setStartTime(this.startTime)
.setInterval(this.interval)
.setThreadDumper(this.threadDumper.getMetadata())
diff --git a/spark-common/src/main/java/me/lucko/spark/common/sampler/java/JavaSampler.java b/spark-common/src/main/java/me/lucko/spark/common/sampler/java/JavaSampler.java
index 0ee5f86..5fe5add 100644
--- a/spark-common/src/main/java/me/lucko/spark/common/sampler/java/JavaSampler.java
+++ b/spark-common/src/main/java/me/lucko/spark/common/sampler/java/JavaSampler.java
@@ -163,8 +163,8 @@ public class JavaSampler implements Sampler, Runnable {
@Override
public SamplerData toProto(PlatformInfo platformInfo, CommandSender creator, Comparator<? super Map.Entry<String, ThreadNode>> outputOrder, String comment, MergeMode mergeMode) {
final SamplerMetadata.Builder metadata = SamplerMetadata.newBuilder()
- .setPlatform(platformInfo.toData().toProto())
- .setUser(creator.toData().toProto())
+ .setPlatformMetadata(platformInfo.toData().toProto())
+ .setCreator(creator.toData().toProto())
.setStartTime(this.startTime)
.setInterval(this.interval)
.setThreadDumper(this.threadDumper.getMetadata())