ilog.rules.res.session.config
Interface IlrXUConfig
-
public interface IlrXUConfig
The configuration of the execution unit.- Since:
- 8.0
-
-
Method Summary
Methods Modifier and Type Method and Description IlrPluginConfig
createPluginConfig(java.lang.String pluginClassName)
IlrPoolConfig
getConnectionPoolConfig()
IlrDERuntimePersistenceConfig
getDERuntimePersistenceConfig()
java.util.logging.Level
getLoglevel()
Deprecated.java.util.logging.Level
getLogLevel()
java.io.PrintWriter
getLogWriter()
Gets the stream used to log the XU messages.IlrPersistenceConfig
getManagedXOMPersistenceConfig()
IlrPersistenceConfig
getPersistenceConfig()
java.util.List<IlrPluginConfig>
getPluginConfigs()
boolean
isAsynchronousRulesetParsingEnabled()
boolean
isConcurrentAccessEnabled()
boolean
isLogAutoFlushEnabled()
boolean
isRulesetUsageMonitorEnabled()
void
loadSettings(java.io.InputStream in)
Loads XU settings from a resource adapter descriptor.void
setAsynchronousRulesetParsingEnabled(boolean enable)
void
setConcurrentAccessEnabled(boolean enabled)
void
setLogAutoFlushEnabled(boolean enable)
void
setLogLevel(java.util.logging.Level level)
void
setLogWriter(java.io.PrintWriter logWriter)
Sets the stream used to log the XU messages.void
setPluginConfigs(java.util.List<IlrPluginConfig> pluginConfigs)
void
setRulesetUsageMonitorEnabled(boolean enable)
-
-
-
Method Detail
-
getLoglevel
java.util.logging.Level getLoglevel()
Deprecated.- Returns:
- the current log level
-
getLogLevel
java.util.logging.Level getLogLevel()
- Since:
- 8.8.1
- Returns:
- the current log level
-
setLogLevel
void setLogLevel(java.util.logging.Level level)
- Throws:
java.lang.IllegalArgumentException
- if the log level isnull
- Parameters:
level
- the new log level
-
getLogWriter
java.io.PrintWriter getLogWriter()
Gets the stream used to log the XU messages.- Since:
- 8.6
- Returns:
- PrintWriter The stream used to log the XU messages.
-
setLogWriter
void setLogWriter(java.io.PrintWriter logWriter)
Sets the stream used to log the XU messages.- Since:
- 8.6
- Parameters:
logWriter
- The stream used to log the XU messages.
-
isLogAutoFlushEnabled
boolean isLogAutoFlushEnabled()
- Returns:
true
if the log autoflush is enabled
-
setLogAutoFlushEnabled
void setLogAutoFlushEnabled(boolean enable)
- Parameters:
enable
-true
to enable the log autoflush
-
getPersistenceConfig
IlrPersistenceConfig getPersistenceConfig()
- Returns:
- the persistence configuration for the ruleset repository
-
getManagedXOMPersistenceConfig
IlrPersistenceConfig getManagedXOMPersistenceConfig()
- Returns:
- the persistence configuration for managed XOMs
-
getConnectionPoolConfig
IlrPoolConfig getConnectionPoolConfig()
- Returns:
- the configuration of the connection pool
-
getPluginConfigs
java.util.List<IlrPluginConfig> getPluginConfigs()
- Returns:
- the current plug-in configurations. The returned list is a deep copy: no change will be reflected to the
current plug-in configurations. To apply changes, call
setPluginConfigs(List)
.
-
setPluginConfigs
void setPluginConfigs(java.util.List<IlrPluginConfig> pluginConfigs)
- Parameters:
pluginConfigs
- the new plug-in configurations. A value ofnull
is equivalent to an empty list.
-
createPluginConfig
IlrPluginConfig createPluginConfig(java.lang.String pluginClassName)
- Throws:
java.lang.IllegalArgumentException
- if pluginClassname is null- Parameters:
pluginClassName
- the plug-in class name- Returns:
- a new
IlrPluginConfig
instance
-
isAsynchronousRulesetParsingEnabled
boolean isAsynchronousRulesetParsingEnabled()
- Returns:
- true if asynchronous ruleset parsing is enabled
-
setAsynchronousRulesetParsingEnabled
void setAsynchronousRulesetParsingEnabled(boolean enable)
- Parameters:
enable
-true
to enable asynchronous ruleset parsing
-
isRulesetUsageMonitorEnabled
boolean isRulesetUsageMonitorEnabled()
- Returns:
true
if monitoring of the ruleset usage is enabled
-
setRulesetUsageMonitorEnabled
void setRulesetUsageMonitorEnabled(boolean enable)
- Parameters:
enable
-true
to enable monitoring of the ruleset usage
-
loadSettings
void loadSettings(java.io.InputStream in) throws IlrConfigException
Loads XU settings from a resource adapter descriptor.- Throws:
IlrConfigException
- Parameters:
in
- The input stream used to read the descriptor.
-
isConcurrentAccessEnabled
boolean isConcurrentAccessEnabled()
- Returns:
true
if concurrent persistence mode is enabled
-
setConcurrentAccessEnabled
void setConcurrentAccessEnabled(boolean enabled)
- Parameters:
enabled
-true
to enable concurrent persistence mode
-
getDERuntimePersistenceConfig
IlrDERuntimePersistenceConfig getDERuntimePersistenceConfig()
- Since:
- 8.8
- Returns:
- the persistence configuration for the decision engine runtime libraries.
-
-