From 775fa4e62419ce50c75ced02163f7c90f9dc8ee2 Mon Sep 17 00:00:00 2001 From: Jan Wiemer Date: Thu, 25 Apr 2024 15:11:46 +0200 Subject: [PATCH] worked on JFR events --- gradle.properties | 2 +- src/main/java/org/jacis/store/EventsJfr.java | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/gradle.properties b/gradle.properties index 840f35a..33e468c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ ############################ # JACIS VERSION: ############################ -version=2.1.3 +version=2.1.4 #=format for release: 2.1.25 #=format for snapshot: 2.0.26-2023-01-01 (on the way to 2.0.26) # diff --git a/src/main/java/org/jacis/store/EventsJfr.java b/src/main/java/org/jacis/store/EventsJfr.java index fab246b..b482475 100644 --- a/src/main/java/org/jacis/store/EventsJfr.java +++ b/src/main/java/org/jacis/store/EventsJfr.java @@ -3,11 +3,13 @@ import jdk.jfr.*; import org.jacis.container.JacisTransactionHandle; +import static jdk.jfr.Timespan.MILLISECONDS; + public interface EventsJfr { @Name("org.jacis.StoreStatistic") - @Label("Store Statistic") + @Label("JACIS Store Statistic") @Category({"JACIS"}) @Description("Statistic regarding a JACIS store") @Period("10 s") @@ -50,7 +52,7 @@ public JacisStoreStatisticJfrEvent(JacisStoreImpl store) { //=========================================================================================================================== @Name("org.jacis.Transaction") - @Label("Transaction") + @Label("JACIS Transaction") @Category({"JACIS"}) @Description("Transaction on a JACIS container") @StackTrace(false) @@ -102,7 +104,7 @@ abstract class JacisJfrEvent extends Event { @BooleanFlag @Label("ReadOnly") boolean readOnly; - @Timespan + @Timespan(MILLISECONDS) @Label("TX lifetime") long storeTxLifetime; @@ -142,7 +144,7 @@ JacisJfrEvent setException(Throwable exception) { public enum OperationType {PREPARE, COMMIT, ROLLBACK} @Name("org.jacis.tx.StoreTransaction") - @Label("Prepare / Commit / Rollback") + @Label("JACIS Prepare / Commit / Rollback") @Category({"JACIS"}) @Description("Represents a prepare, commit or rollback for a transaction on a Jacis Store") @StackTrace(false) @@ -165,7 +167,7 @@ protected JacisTxJfrEvent(JacisTxJfrEvent src) { //=========================================================================================================================== @Name("org.jacis.tx.DirtyCheck") - @Label("Dirty-Check") + @Label("JACIS Dirty-Check") @Category({"JACIS"}) @Description("The dirty check for a transaction on a Jacis Store") @StackTrace(false) @@ -187,7 +189,7 @@ public JacisDirtyCheckJfrEvent setFoundDirty(int numberOfDirty) { //=========================================================================================================================== @Name("org.jacis.PersistenceAdapter") - @Label("Persistence Adapter") + @Label("JACIS Persistence Adapter") @Category({"JACIS"}) @Description("Actions of the persistence adapter on prepare, commit or rollback for a transaction on a Jacis Store") @StackTrace(false)