Class ConfigurationRuntime
java.lang.Object
com.espertech.esper.common.client.configuration.runtime.ConfigurationRuntime
- All Implemented Interfaces:
Serializable
Contains settings that apply to the runtime only (and that do not apply to the compiler).
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Optional classname to use for constructing services context.protected List<ConfigurationRuntimePluginLoader>
List of adapter loaders. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPluginLoader
(String loaderName, String className) Add a plugin loader (f.e.void
addPluginLoader
(String loaderName, String className, Properties configuration) Add a plugin loader (f.e.void
addPluginLoader
(String loaderName, String className, Properties configuration, String configurationXML) Add a plugin loader (f.e.Returns the condition handling configuration.Returns the class name of the services context factory class to use.Returns the exception handling configuration.Returns statement execution-related settings, settings that influence event/schedule to statement processing.Returns the expression-related settings for common.Returns logging settings applicable to runtime.Return match-recognize settings.Returns the metrics reporting configuration.Return pattern settings.Returns the plug-in loaders.Returns threading settings.Returns the time source configuration.Returns defaults applicable to variables.protected void
reset()
Reset to an empty configuration.void
setConditionHandling
(ConfigurationRuntimeConditionHandling conditionHandling) Sets the condition handling configuration.void
setEpServicesContextFactoryClassName
(String epServicesContextFactoryClassName) Sets the class name of the services context factory class to use.void
setExceptionHandling
(ConfigurationRuntimeExceptionHandling exceptionHandling) Sets the exception handling configuration.void
setMatchRecognize
(ConfigurationRuntimeMatchRecognize matchRecognize) Sets match-recognize settings.void
setMetricsReporting
(ConfigurationRuntimeMetricsReporting metricsReporting) Sets the metrics reporting settingsvoid
setPatterns
(ConfigurationRuntimePatterns patterns) Sets pattern settings.void
setPluginLoaders
(List<ConfigurationRuntimePluginLoader> pluginLoaders) Sets the list of plug-in loadersvoid
setThreading
(ConfigurationRuntimeThreading threading) Sets the threading settings
-
Field Details
-
epServicesContextFactoryClassName
Optional classname to use for constructing services context. -
pluginLoaders
List of adapter loaders.
-
-
Constructor Details
-
ConfigurationRuntime
public ConfigurationRuntime()Ctor.
-
-
Method Details
-
setEpServicesContextFactoryClassName
Sets the class name of the services context factory class to use.- Parameters:
epServicesContextFactoryClassName
- service context factory class name
-
getEPServicesContextFactoryClassName
Returns the class name of the services context factory class to use.- Returns:
- class name
-
getPluginLoaders
Returns the plug-in loaders.- Returns:
- plug-in loaders
-
addPluginLoader
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 loaderclassName
- is the fully-qualified classname of the loader classconfiguration
- is loader configuration entries
-
addPluginLoader
Add a plugin loader (f.e. an input/output adapter loader) without any additional loader configurationThe class is expected to implement the PluginLoader interface.
.- Parameters:
loaderName
- is the name of the loaderclassName
- 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 loaderclassName
- is the fully-qualified classname of the loader classconfiguration
- is loader configuration entriesconfigurationXML
- config xml if any
-
getMetricsReporting
Returns the metrics reporting configuration.- Returns:
- metrics reporting config
-
setPluginLoaders
Sets the list of plug-in loaders- Parameters:
pluginLoaders
- list of loaders
-
setMetricsReporting
Sets the metrics reporting settings- Parameters:
metricsReporting
- metrics reporting settings
-
getExceptionHandling
Returns the exception handling configuration.- Returns:
- exception handling configuration
-
setExceptionHandling
Sets the exception handling configuration.- Parameters:
exceptionHandling
- exception handling configuration
-
getConditionHandling
Returns the condition handling configuration.- Returns:
- condition handling configuration
-
setConditionHandling
Sets the condition handling configuration.- Parameters:
conditionHandling
- exception handling configuration
-
getThreading
Returns threading settings.- Returns:
- threading settings object
-
setThreading
Sets the threading settings- Parameters:
threading
- settings
-
getMatchRecognize
Return match-recognize settings.- Returns:
- match-recognize settings
-
setMatchRecognize
Sets match-recognize settings.- Parameters:
matchRecognize
- settings to set
-
getPatterns
Return pattern settings.- Returns:
- pattern settings
-
setPatterns
Sets pattern settings.- Parameters:
patterns
- settings to set
-
getVariables
Returns defaults applicable to variables.- Returns:
- variable defaults
-
getLogging
Returns logging settings applicable to runtime.- Returns:
- logging settings
-
getTimeSource
Returns the time source configuration.- Returns:
- time source enum
-
getExpression
Returns the expression-related settings for common.- Returns:
- expression-related settings
-
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.
-