Class EventPersistenceSettings

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

public class EventPersistenceSettings extends Object
The EventPersistenceSettings is an immutable holder for the resolved event persistence configuration, computed once when the feature is activated.
Since:
2.14.0
Author:
Vlad Mihalcea
  • Field Details

    • DEFAULT_ROLLUP_WINDOW_MILLIS

      public static final long DEFAULT_ROLLUP_WINDOW_MILLIS
      The default runtime rollup window, in milliseconds (5 minutes).
      See Also:
    • DEFAULT_BATCH_SIZE

      public static final int DEFAULT_BATCH_SIZE
      The default JDBC batch size used when inserting events.
      See Also:
    • DEFAULT_MAX_ROLLUP_SIZE

      public static final int DEFAULT_MAX_ROLLUP_SIZE
      The default cap on the number of pending runtime rollups held in memory.
      See Also:
    • DEFAULT_APPLICATION_NAME

      public static final String DEFAULT_APPLICATION_NAME
      The default application name, used when none is configured.
      See Also:
    • DEFAULT_WEB_APP_HOST

      public static final String DEFAULT_WEB_APP_HOST
      The default host the web app binds to.
      See Also:
    • RUN_TABLE

      public static final String RUN_TABLE
      The name of the table holding one row per optimizer bootstrap.
      See Also:
    • EVENT_TABLE

      public static final String EVENT_TABLE
      The name of the table holding the configuration and mapping events of each bootstrap.
      See Also:
    • RUNTIME_EVENT_TABLE

      public static final String RUNTIME_EVENT_TABLE
      The name of the table holding the aggregated runtime events.
      See Also:
  • Method Details

    • getSessionFactory

      public org.hibernate.SessionFactory getSessionFactory()
    • getConnectionExecutor

      public io.hypersistence.optimizer.util.ConnectionExecutor getConnectionExecutor()
    • getApplicationName

      public String getApplicationName()
    • getBatchSize

      public int getBatchSize()
    • getRollupWindowMillis

      public long getRollupWindowMillis()
    • getMaxRollupSize

      public int getMaxRollupSize()
    • getSchemaAction

      public SchemaAction getSchemaAction()
    • isWebAppEnabled

      public boolean isWebAppEnabled()
      Whether the web app should be started inside the host application.
      Returns:
      true if the web app is enabled
    • getWebAppHost

      public String getWebAppHost()
      The host the web app binds to (default localhost).
      Returns:
      the web app host
    • getWebAppPort

      public int getWebAppPort()
      The port the web app binds to. 0 (the default) requests a dynamically allocated free port, whose resolved value is logged at startup.
      Returns:
      the web app port
    • getWebAppAuthUsername

      public String getWebAppAuthUsername()
      The Basic authentication user name for the web app, or null for no auth.
      Returns:
      the web app auth user name
    • getWebAppAuthPassword

      public String getWebAppAuthPassword()
      The Basic authentication password for the web app, or null for no auth.
      Returns:
      the web app auth password
    • getRunTable

      public String getRunTable()
      Get the name of the run table.
      Returns:
      the run table name
    • getEventTable

      public String getEventTable()
      Get the name of the event table.
      Returns:
      the event table name
    • getRuntimeRollupTable

      public String getRuntimeRollupTable()
      Get the name of the runtime rollup table.
      Returns:
      the runtime rollup table name
    • builder

      public static EventPersistenceSettings.Builder builder()
      Returns:
      a new EventPersistenceSettings.Builder