Class HypersistenceOptimizerRuntimeEvent

java.lang.Object
io.hypersistence.optimizer.core.event.persistence.HypersistenceOptimizerRuntimeEvent

@Entity public class HypersistenceOptimizerRuntimeEvent extends Object
The HypersistenceOptimizerRuntimeEvent is the canonical entity model for the ho_runtime_events table, which holds the aggregated runtime events (one row per run, event signature and time window, carrying an occurrence count and, where available, the total and maximum durations). The run_id foreign key references the ho_bootstrap_run row of the application instance that recorded the events, and it is NULL if that run could not be persisted.

This entity is used only to let Hibernate generate the portable, dialect-specific table structure in the metadata fallback; the rows are written with plain JDBC (see EventStore). A generated IDENTITY key is used because a window may flush many signatures at once, so a natural key based on the run and window timestamp would not be unique.

Since:
2.14.0
Author:
Vlad Mihalcea
  • Constructor Details

    • HypersistenceOptimizerRuntimeEvent

      public HypersistenceOptimizerRuntimeEvent()
  • Method Details

    • getId

      public Long getId()
    • getRun

    • getWindowStart

      public Date getWindowStart()
    • getWindowEnd

      public Date getWindowEnd()
    • getOccurrenceCount

      public Long getOccurrenceCount()
    • getTotalDurationMs

      public Long getTotalDurationMs()
    • getMaxDurationMs

      public Long getMaxDurationMs()
    • getEventName

      public String getEventName()
    • getSignature

      public String getSignature()
    • getPriority

      public String getPriority()
    • getSampleDescription

      public String getSampleDescription()