Class ConfigurationRuntime

java.lang.Object
com.espertech.esper.common.client.configuration.runtime.ConfigurationRuntime
All Implemented Interfaces:
Serializable

public class ConfigurationRuntime extends Object implements Serializable
Contains settings that apply to the runtime only (and that do not apply to the compiler).
See Also:
  • Field Details

    • epServicesContextFactoryClassName

      protected String epServicesContextFactoryClassName
      Optional classname to use for constructing services context.
    • pluginLoaders

      protected List<ConfigurationRuntimePluginLoader> pluginLoaders
      List of adapter loaders.
  • Constructor Details

    • ConfigurationRuntime

      public ConfigurationRuntime()
      Ctor.
  • Method Details

    • setEpServicesContextFactoryClassName

      public void setEpServicesContextFactoryClassName(String epServicesContextFactoryClassName)
      Sets the class name of the services context factory class to use.
      Parameters:
      epServicesContextFactoryClassName - service context factory class name
    • getEPServicesContextFactoryClassName

      public String getEPServicesContextFactoryClassName()
      Returns the class name of the services context factory class to use.
      Returns:
      class name
    • getPluginLoaders

      public List<ConfigurationRuntimePluginLoader> getPluginLoaders()
      Returns the plug-in loaders.
      Returns:
      plug-in loaders
    • addPluginLoader

      public void addPluginLoader(String loaderName, String className, Properties configuration)
      Add a plugin loader (f.e. an input/output adapter loader).

      The class is expected to implement the PluginLoader interface.

      .
      Parameters:
      loaderName - is the name of the loader
      className - is the fully-qualified classname of the loader class
      configuration - is loader configuration entries
    • addPluginLoader

      public void addPluginLoader(String loaderName, String className)
      Add a plugin loader (f.e. an input/output adapter loader) without any additional loader configuration

      The class is expected to implement the PluginLoader interface.

      .
      Parameters:
      loaderName - is the name of the loader
      className - is the fully-qualified classname of the loader class
    • addPluginLoader

      public void addPluginLoader(String loaderName, String className, Properties configuration, String configurationXML)
      Add a plugin loader (f.e. an input/output adapter loader).

      The class is expected to implement the PluginLoader interface.

      .
      Parameters:
      loaderName - is the name of the loader
      className - is the fully-qualified classname of the loader class
      configuration - is loader configuration entries
      configurationXML - config xml if any
    • getMetricsReporting

      public ConfigurationRuntimeMetricsReporting getMetricsReporting()
      Returns the metrics reporting configuration.
      Returns:
      metrics reporting config
    • setPluginLoaders

      public void setPluginLoaders(List<ConfigurationRuntimePluginLoader> pluginLoaders)
      Sets the list of plug-in loaders
      Parameters:
      pluginLoaders - list of loaders
    • setMetricsReporting

      public void setMetricsReporting(ConfigurationRuntimeMetricsReporting metricsReporting)
      Sets the metrics reporting settings
      Parameters:
      metricsReporting - metrics reporting settings
    • getExceptionHandling

      public ConfigurationRuntimeExceptionHandling getExceptionHandling()
      Returns the exception handling configuration.
      Returns:
      exception handling configuration
    • setExceptionHandling

      public void setExceptionHandling(ConfigurationRuntimeExceptionHandling exceptionHandling)
      Sets the exception handling configuration.
      Parameters:
      exceptionHandling - exception handling configuration
    • getConditionHandling

      public ConfigurationRuntimeConditionHandling getConditionHandling()
      Returns the condition handling configuration.
      Returns:
      condition handling configuration
    • setConditionHandling

      public void setConditionHandling(ConfigurationRuntimeConditionHandling conditionHandling)
      Sets the condition handling configuration.
      Parameters:
      conditionHandling - exception handling configuration
    • getThreading

      public ConfigurationRuntimeThreading getThreading()
      Returns threading settings.
      Returns:
      threading settings object
    • setThreading

      public void setThreading(ConfigurationRuntimeThreading threading)
      Sets the threading settings
      Parameters:
      threading - settings
    • getMatchRecognize

      public ConfigurationRuntimeMatchRecognize getMatchRecognize()
      Return match-recognize settings.
      Returns:
      match-recognize settings
    • setMatchRecognize

      public void setMatchRecognize(ConfigurationRuntimeMatchRecognize matchRecognize)
      Sets match-recognize settings.
      Parameters:
      matchRecognize - settings to set
    • getPatterns

      public ConfigurationRuntimePatterns getPatterns()
      Return pattern settings.
      Returns:
      pattern settings
    • setPatterns

      public void setPatterns(ConfigurationRuntimePatterns patterns)
      Sets pattern settings.
      Parameters:
      patterns - settings to set
    • getVariables

      public ConfigurationRuntimeVariables getVariables()
      Returns defaults applicable to variables.
      Returns:
      variable defaults
    • getLogging

      public ConfigurationRuntimeLogging getLogging()
      Returns logging settings applicable to runtime.
      Returns:
      logging settings
    • getTimeSource

      public ConfigurationRuntimeTimeSource getTimeSource()
      Returns the time source configuration.
      Returns:
      time source enum
    • getExpression

      public ConfigurationRuntimeExpression getExpression()
      Returns the expression-related settings for common.
      Returns:
      expression-related settings
    • getExecution

      public ConfigurationRuntimeExecution getExecution()
      Returns statement execution-related settings, settings that influence event/schedule to statement processing.
      Returns:
      execution settings
    • reset

      protected void reset()
      Reset to an empty configuration.