Skip to content

Commit

Permalink
remove JFR event types
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Sep 22, 2023
1 parent 1815b8c commit 4fda5ff
Showing 1 changed file with 0 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@
import io.cryostat.core.log.Logger;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import jdk.jfr.Category;
import jdk.jfr.Event;
import jdk.jfr.Label;
import jdk.jfr.Name;
import org.apache.commons.io.input.CountingInputStream;

/**
Expand Down Expand Up @@ -353,49 +349,4 @@ public void run() {
}
}
}

@Name("io.cryostat.core.reports.InterruptibleReportGenerator.ReportRuleEvalEvent")
@Label("Report Rule Evaluation")
@Category("Cryostat")
@SuppressFBWarnings(
value = "URF_UNREAD_FIELD",
justification = "The event fields are recorded with JFR instead of accessed directly")
public static class ReportRuleEvalEvent extends Event {

String ruleName;

ReportRuleEvalEvent(String ruleName) {
this.ruleName = ruleName;
}
}

@Name("io.cryostat.core.reports.InterruptibleReportGenerator.ReportGenerationEvent")
@Label("Report Generation")
@Category("Cryostat")
@SuppressFBWarnings(
value = "URF_UNREAD_FIELD",
justification = "The event fields are recorded with JFR instead of accessed directly")
public static class ReportGenerationEvent extends Event {

String recordingName;
int rulesEvaluated;
int rulesApplicable;
long recordingSizeBytes;

public ReportGenerationEvent(String recordingName) {
this.recordingName = recordingName;
}

public void setRulesEvaluated(int rulesEvaluated) {
this.rulesEvaluated = rulesEvaluated;
}

public void setRulesApplicable(int rulesApplicable) {
this.rulesApplicable = rulesApplicable;
}

public void setRecordingSizeBytes(long recordingSizeBytes) {
this.recordingSizeBytes = recordingSizeBytes;
}
}
}

0 comments on commit 4fda5ff

Please sign in to comment.