Skip to content

Commit

Permalink
worked on JFR events
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWiemer committed Apr 25, 2024
1 parent a814cde commit 775fa4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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)
#
Expand Down
14 changes: 8 additions & 6 deletions src/main/java/org/jacis/store/EventsJfr.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -102,7 +104,7 @@ abstract class JacisJfrEvent extends Event {
@BooleanFlag
@Label("ReadOnly")
boolean readOnly;
@Timespan
@Timespan(MILLISECONDS)
@Label("TX lifetime")
long storeTxLifetime;

Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 775fa4e

Please sign in to comment.