Package org.drools.core
Class KieBaseConfigurationImpl
java.lang.Object
org.drools.core.BaseConfiguration<KieBaseOption,SingleValueKieBaseOption,MultiValueKieBaseOption>
org.drools.core.KieBaseConfigurationImpl
- All Implemented Interfaces:
Externalizable,Serializable,KieBaseOptionsConfiguration,OptionsConfiguration<KieBaseOption,,SingleValueKieBaseOption, MultiValueKieBaseOption> KieBaseConfiguration,PropertiesConfiguration,InternalPropertiesConfiguration
public class KieBaseConfigurationImpl
extends BaseConfiguration<KieBaseOption,SingleValueKieBaseOption,MultiValueKieBaseOption>
implements KieBaseConfiguration, Externalizable
Available configuration options:
drools.maintainTms = <true|false> drools.sequential = <true|false> drools.sequential.agenda = <sequential|dynamic> drools.removeIdentities = <true|false> drools.shareAlphaNodes = <true|false> drools.shareBetaNodes = <true|false> drools.alphaNodeHashingThreshold = <1...n> drools.alphaNodeRangeIndexThreshold = <1...n> drools.betaNodeRangeIndexEnabled = <true|false> drools.sessionPool = <1...n> drools.compositeKeyDepth = <1..3> drools.indexLeftBetaMemory = <true/false> drools.indexRightBetaMemory = <true/false> drools.equalityBehavior = <identity|equality> drools.conflictResolver = <qualified class name> drools.consequenceExceptionHandler = <qualified class name> drools.ruleBaseUpdateHandler = <qualified class name> drools.sessionClock = <qualified class name> drools.mbeans = <enabled|disabled> drools.classLoaderCacheEnabled = <true|false> drools.declarativeAgendaEnabled = <true|false> drools.permgenThreshold = <1...n> drools.jittingThreshold = <1...n>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfigurationKey<KieBaseConfigurationImpl>protected static final org.slf4j.LoggerFields inherited from class org.drools.core.BaseConfiguration
compConfig -
Constructor Summary
ConstructorsConstructorDescriptionKieBaseConfigurationImpl(CompositeConfiguration<KieBaseOption, SingleValueKieBaseOption, MultiValueKieBaseOption> compConfig) A constructor that sets the classloader to be used as the parent classloader of this rule base classloader, and the properties to be used as base configuration options -
Method Summary
Modifier and TypeMethodDescriptiongetInternalProperty(String name) <C extends MultiValueKieBaseOption>
C<T extends SingleValueKieBaseOption>
TbooleanReturns true if the management and monitoring through MBeans is activebooleanvoidbooleansetInternalProperty(String name, String value) voidsetMBeansEnabled(boolean mbeansEnabled) Defines if the RuleBase should expose management and monitoring MBeansvoidsetMutabilityEnabled(boolean mutabilityEnabled) voidsetOption(KieBaseOption option) voidMethods inherited from class org.drools.core.BaseConfiguration
as, checkCanChange, getChainedProperties, getClassLoader, getProperties, getProperty, getPropertyValue, isImmutable, makeImmutable, setClassLoader, setPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.api.conf.OptionsConfiguration
as, getClassLoader, getOptionKeys, getOptionSubKeys, makeImmutableMethods inherited from interface org.kie.api.PropertiesConfiguration
getProperty, setProperty
-
Field Details
-
logger
protected static final transient org.slf4j.Logger logger -
KEY
-
-
Constructor Details
-
KieBaseConfigurationImpl
public KieBaseConfigurationImpl(CompositeConfiguration<KieBaseOption, SingleValueKieBaseOption, MultiValueKieBaseOption> compConfig) A constructor that sets the classloader to be used as the parent classloader of this rule base classloader, and the properties to be used as base configuration options- Parameters:
compConfig-
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classBaseConfiguration<KieBaseOption,SingleValueKieBaseOption, MultiValueKieBaseOption> - Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classBaseConfiguration<KieBaseOption,SingleValueKieBaseOption, MultiValueKieBaseOption> - Throws:
IOExceptionClassNotFoundException
-
setInternalProperty
- Specified by:
setInternalPropertyin interfaceInternalPropertiesConfiguration
-
getInternalProperty
- Specified by:
getInternalPropertyin interfaceInternalPropertiesConfiguration
-
setMBeansEnabled
public void setMBeansEnabled(boolean mbeansEnabled) Defines if the RuleBase should expose management and monitoring MBeans- Parameters:
mbeansEnabled- true for multi-thread or false for single-thread. Default is false.
-
isMBeansEnabled
public boolean isMBeansEnabled()Returns true if the management and monitoring through MBeans is active- Returns:
-
setMutabilityEnabled
public void setMutabilityEnabled(boolean mutabilityEnabled) -
isMutabilityEnabled
public boolean isMutabilityEnabled() -
getOption
- Specified by:
getOptionin interfaceOptionsConfiguration<KieBaseOption,SingleValueKieBaseOption, MultiValueKieBaseOption>
-
setOption
- Specified by:
setOptionin interfaceOptionsConfiguration<KieBaseOption,SingleValueKieBaseOption, MultiValueKieBaseOption>
-
getOption
- Specified by:
getOptionin interfaceOptionsConfiguration<KieBaseOption,SingleValueKieBaseOption, MultiValueKieBaseOption>
-