Package org.drools.kiesession.rulebase
Class SessionsAwareKnowledgeBase
java.lang.Object
org.drools.kiesession.rulebase.SessionsAwareKnowledgeBase
- All Implemented Interfaces:
org.drools.base.RuleBase,InternalRuleBase,InternalKnowledgeBase,KieBaseEventManager,KieBase
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSessionsAwareKnowledgeBase(org.drools.base.RuleBase delegate) SessionsAwareKnowledgeBase(KieBaseConfiguration kbaseConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(KieBaseEventListener listener) voidaddPackage(KiePackage newPkg) voidaddPackages(Collection<? extends KiePackage> newPkgs) voidaddProcess(Process process) voidvoidaddRules(Collection<org.drools.base.definitions.rule.impl.RuleImpl> rules) voidvoidafterIncrementalUpdate(KieBaseUpdate kieBaseUpdate) voidbeforeIncrementalUpdate(KieBaseUpdate kieBaseUpdate) org.drools.base.common.RuleBasePartitionIdcreateSegmentFromPrototype(ReteEvaluator reteEvaluator, LeftTupleSource tupleSource) createSegmentFromPrototype(ReteEvaluator reteEvaluator, SegmentMemory.SegmentPrototype smem) voiddisposeStatefulSession(InternalWorkingMemory statefulSession) voidenqueueModification(Runnable modification) voidbooleanorg.drools.base.rule.TypeDeclarationgetExactTypeDeclaration(Class<?> clazz) getFactType(String packageName, String typeName) getId()getKiePackage(String packageName) Collection<? extends KieSession>intintorg.drools.base.rule.TypeDeclarationgetOrCreateExactTypeDeclaration(Class<?> clazz) org.drools.base.definitions.InternalKnowledgePackagegetPackage(String name) org.drools.base.definitions.InternalKnowledgePackage[]intgetProcess(String id) getRete()org.drools.base.ruleunit.RuleUnitDescriptionRegistrygetSegmentPrototype(SegmentMemory segment) org.drools.base.rule.TypeDeclarationgetTypeDeclaration(Class<?> clazz) Collection<org.drools.base.rule.TypeDeclaration>intbooleanbooleanbooleanhasUnits()voidvoidinvalidateSegmentPrototype(LeftTupleNode rootNode) booleanvoidlock()newFactHandleFactory(long id, long counter) newKieSession(KieSessionConfiguration conf, Environment environment) newKieSession(KieSessionConfiguration conf, Environment environment, boolean fromPool) newKieSessionsPool(int initialSize) intvoidprocessAllTypesDeclaration(Collection<org.drools.base.definitions.InternalKnowledgePackage> pkgs) voidreadLock()voidvoidClass<?>registerAndLoadTypeDefinition(String className, byte[] def) voidvoidregisterSegmentPrototype(LeftTupleNode tupleSource, SegmentMemory.SegmentPrototype smem) voidregisterTypeDeclaration(org.drools.base.rule.TypeDeclaration newDecl, org.drools.base.definitions.InternalKnowledgePackage newPkg) voidremoveEventListener(KieBaseEventListener listener) voidremoveFunction(String packageName, String functionName) voidremoveGlobal(String identifier) voidremoveKiePackage(String packageName) booleanremoveObjectsGeneratedFromResource(Resource resource, Collection<InternalWorkingMemory> workingMemories) voidremoveProcess(String id) voidremoveQuery(String packageName, String ruleName) voidremoveRule(String packageName, String ruleName) voidremoveRules(Collection<org.drools.base.definitions.rule.impl.RuleImpl> rules) voidsetContainerId(String containerId) voidsetKieContainer(InternalKieContainer kieContainer) voidsetResolvedReleaseId(ReleaseId currentReleaseId) voidunlock()
-
Field Details
-
kieBaseListeners
-
-
Constructor Details
-
SessionsAwareKnowledgeBase
public SessionsAwareKnowledgeBase() -
SessionsAwareKnowledgeBase
-
SessionsAwareKnowledgeBase
public SessionsAwareKnowledgeBase(org.drools.base.RuleBase delegate)
-
-
Method Details
-
getDelegate
-
setKieContainer
- Specified by:
setKieContainerin interfaceInternalKnowledgeBase
-
getKieContainer
- Specified by:
getKieContainerin interfaceInternalKnowledgeBase
-
getSessionPool
- Specified by:
getSessionPoolin interfaceInternalKnowledgeBase
-
getKieSessions
- Specified by:
getKieSessionsin interfaceInternalKnowledgeBase- Specified by:
getKieSessionsin interfaceKieBase
-
newStatelessKieSession
- Specified by:
newStatelessKieSessionin interfaceInternalKnowledgeBase- Specified by:
newStatelessKieSessionin interfaceKieBase
-
newStatelessKieSession
- Specified by:
newStatelessKieSessionin interfaceInternalKnowledgeBase- Specified by:
newStatelessKieSessionin interfaceKieBase
-
newKieSessionsPool
- Specified by:
newKieSessionsPoolin interfaceInternalKnowledgeBase- Specified by:
newKieSessionsPoolin interfaceKieBase
-
newKieSession
- Specified by:
newKieSessionin interfaceInternalKnowledgeBase- Specified by:
newKieSessionin interfaceKieBase
-
newKieSession
- Specified by:
newKieSessionin interfaceInternalKnowledgeBase- Specified by:
newKieSessionin interfaceKieBase
-
newKieSession
public KieSession newKieSession(KieSessionConfiguration conf, Environment environment, boolean fromPool) - Specified by:
newKieSessionin interfaceInternalKnowledgeBase
-
addStatefulSession
- Specified by:
addStatefulSessionin interfaceInternalKnowledgeBase
-
disposeStatefulSession
- Specified by:
disposeStatefulSessionin interfaceInternalKnowledgeBase
-
nextWorkingMemoryCounter
public int nextWorkingMemoryCounter()- Specified by:
nextWorkingMemoryCounterin interfaceInternalKnowledgeBase
-
getWorkingMemoryCounter
public int getWorkingMemoryCounter()- Specified by:
getWorkingMemoryCounterin interfaceInternalRuleBase
-
getWorkingMemories
- Specified by:
getWorkingMemoriesin interfaceInternalKnowledgeBase
-
addPackages
- Specified by:
addPackagesin interfaceorg.drools.base.RuleBase
-
removeGlobal
- Specified by:
removeGlobalin interfaceInternalRuleBase
-
addPackage
- Specified by:
addPackagein interfaceorg.drools.base.RuleBase
-
removeKiePackage
- Specified by:
removeKiePackagein interfaceInternalRuleBase- Specified by:
removeKiePackagein interfaceKieBase
-
enqueueModification
- Specified by:
enqueueModificationin interfaceInternalKnowledgeBase
-
flushModifications
public boolean flushModifications()- Specified by:
flushModificationsin interfaceInternalKnowledgeBase
-
lock
public void lock() -
unlock
public void unlock() -
initMBeans
public void initMBeans()- Specified by:
initMBeansin interfaceInternalKnowledgeBase
-
addEventListener
- Specified by:
addEventListenerin interfaceKieBaseEventManager
-
removeEventListener
- Specified by:
removeEventListenerin interfaceKieBaseEventManager
-
getKieBaseEventListeners
- Specified by:
getKieBaseEventListenersin interfaceKieBaseEventManager
-
getSessionConfiguration
- Specified by:
getSessionConfigurationin interfaceInternalRuleBase
-
registerAddedEntryNodeCache
- Specified by:
registerAddedEntryNodeCachein interfaceInternalRuleBase
-
getAddedEntryNodeCache
- Specified by:
getAddedEntryNodeCachein interfaceInternalRuleBase
-
registeRremovedEntryNodeCache
- Specified by:
registeRremovedEntryNodeCachein interfaceInternalRuleBase
-
getRemovedEntryNodeCache
- Specified by:
getRemovedEntryNodeCachein interfaceInternalRuleBase
-
getRete
- Specified by:
getRetein interfaceInternalRuleBase
-
getReteooBuilder
- Specified by:
getReteooBuilderin interfaceInternalRuleBase
-
getNodeCount
public int getNodeCount()- Specified by:
getNodeCountin interfaceInternalRuleBase
-
getMemoryCount
public int getMemoryCount()- Specified by:
getMemoryCountin interfaceInternalRuleBase
-
invalidateSegmentPrototype
- Specified by:
invalidateSegmentPrototypein interfaceInternalRuleBase
-
createSegmentFromPrototype
public SegmentMemory createSegmentFromPrototype(ReteEvaluator reteEvaluator, LeftTupleSource tupleSource) - Specified by:
createSegmentFromPrototypein interfaceInternalRuleBase
-
createSegmentFromPrototype
public SegmentMemory createSegmentFromPrototype(ReteEvaluator reteEvaluator, SegmentMemory.SegmentPrototype smem) - Specified by:
createSegmentFromPrototypein interfaceInternalRuleBase
-
hasSegmentPrototypes
public boolean hasSegmentPrototypes()- Specified by:
hasSegmentPrototypesin interfaceInternalRuleBase
-
getSegmentPrototype
- Specified by:
getSegmentPrototypein interfaceInternalRuleBase
-
getSegmentPrototype
- Specified by:
getSegmentPrototypein interfaceInternalRuleBase
-
getExactTypeDeclaration
- Specified by:
getExactTypeDeclarationin interfaceInternalRuleBase
-
getOrCreateExactTypeDeclaration
- Specified by:
getOrCreateExactTypeDeclarationin interfaceInternalRuleBase- Specified by:
getOrCreateExactTypeDeclarationin interfaceorg.drools.base.RuleBase
-
getTypeDeclaration
- Specified by:
getTypeDeclarationin interfaceInternalRuleBase- Specified by:
getTypeDeclarationin interfaceorg.drools.base.RuleBase
-
getTypeDeclarations
- Specified by:
getTypeDeclarationsin interfaceInternalRuleBase
-
beforeIncrementalUpdate
- Specified by:
beforeIncrementalUpdatein interfaceInternalRuleBase
-
afterIncrementalUpdate
- Specified by:
afterIncrementalUpdatein interfaceInternalRuleBase
-
processAllTypesDeclaration
public void processAllTypesDeclaration(Collection<org.drools.base.definitions.InternalKnowledgePackage> pkgs) - Specified by:
processAllTypesDeclarationin interfaceInternalRuleBase
-
hasMultipleAgendaGroups
public boolean hasMultipleAgendaGroups()- Specified by:
hasMultipleAgendaGroupsin interfaceInternalRuleBase
-
registerTypeDeclaration
public void registerTypeDeclaration(org.drools.base.rule.TypeDeclaration newDecl, org.drools.base.definitions.InternalKnowledgePackage newPkg) - Specified by:
registerTypeDeclarationin interfaceInternalRuleBase
-
registerAndLoadTypeDefinition
public Class<?> registerAndLoadTypeDefinition(String className, byte[] def) throws ClassNotFoundException - Specified by:
registerAndLoadTypeDefinitionin interfaceInternalRuleBase- Throws:
ClassNotFoundException
-
addGlobal
- Specified by:
addGlobalin interfaceInternalRuleBase
-
getRule
- Specified by:
getRulein interfaceInternalRuleBase- Specified by:
getRulein interfaceKieBase
-
getQuery
- Specified by:
getQueryin interfaceInternalRuleBase- Specified by:
getQueryin interfaceKieBase
-
getKiePackages
- Specified by:
getKiePackagesin interfaceInternalRuleBase- Specified by:
getKiePackagesin interfaceKieBase
-
getKiePackage
- Specified by:
getKiePackagein interfaceInternalRuleBase- Specified by:
getKiePackagein interfaceKieBase
-
getId
- Specified by:
getIdin interfaceorg.drools.base.RuleBase
-
newFactHandleFactory
- Specified by:
newFactHandleFactoryin interfaceInternalRuleBase
-
newFactHandleFactory
- Specified by:
newFactHandleFactoryin interfaceInternalRuleBase
-
getProcesses
- Specified by:
getProcessesin interfaceInternalRuleBase- Specified by:
getProcessesin interfaceKieBase
-
getPackages
public org.drools.base.definitions.InternalKnowledgePackage[] getPackages()- Specified by:
getPackagesin interfaceorg.drools.base.RuleBase
-
getPackagesMap
- Specified by:
getPackagesMapin interfaceorg.drools.base.RuleBase
-
getGlobals
- Specified by:
getGlobalsin interfaceorg.drools.base.RuleBase
-
readLock
public void readLock()- Specified by:
readLockin interfaceInternalRuleBase
-
readUnlock
public void readUnlock()- Specified by:
readUnlockin interfaceInternalRuleBase
-
addRules
public void addRules(Collection<org.drools.base.definitions.rule.impl.RuleImpl> rules) throws org.drools.base.rule.InvalidPatternException - Specified by:
addRulesin interfaceorg.drools.base.RuleBase- Throws:
org.drools.base.rule.InvalidPatternException
-
removeQuery
- Specified by:
removeQueryin interfaceInternalRuleBase- Specified by:
removeQueryin interfaceKieBase
-
removeRule
- Specified by:
removeRulein interfaceInternalRuleBase- Specified by:
removeRulein interfaceKieBase
-
removeRules
- Specified by:
removeRulesin interfaceorg.drools.base.RuleBase
-
removeFunction
- Specified by:
removeFunctionin interfaceInternalRuleBase- Specified by:
removeFunctionin interfaceKieBase
-
addProcess
- Specified by:
addProcessin interfaceInternalRuleBase
-
removeProcess
- Specified by:
removeProcessin interfaceInternalRuleBase- Specified by:
removeProcessin interfaceKieBase
-
getProcess
- Specified by:
getProcessin interfaceInternalRuleBase- Specified by:
getProcessin interfaceKieBase
-
getPackage
- Specified by:
getPackagein interfaceorg.drools.base.RuleBase
-
getKieBaseConfiguration
- Specified by:
getKieBaseConfigurationin interfaceInternalRuleBase
-
getConfiguration
- Specified by:
getConfigurationin interfaceInternalRuleBase- Specified by:
getConfigurationin interfaceorg.drools.base.RuleBase
-
getRuleBaseConfiguration
- Specified by:
getRuleBaseConfigurationin interfaceInternalRuleBase
-
getRootClassLoader
- Specified by:
getRootClassLoaderin interfaceInternalRuleBase- Specified by:
getRootClassLoaderin interfaceorg.drools.base.RuleBase
-
executeQueuedActions
public void executeQueuedActions()- Specified by:
executeQueuedActionsin interfaceInternalRuleBase
-
createNewPartitionId
public org.drools.base.common.RuleBasePartitionId createNewPartitionId()- Specified by:
createNewPartitionIdin interfaceInternalRuleBase
-
isPartitioned
public boolean isPartitioned()- Specified by:
isPartitionedin interfaceInternalRuleBase
-
getParallelEvaluationSlotsCount
public int getParallelEvaluationSlotsCount()- Specified by:
getParallelEvaluationSlotsCountin interfaceInternalRuleBase
-
getFactType
- Specified by:
getFactTypein interfaceInternalRuleBase- Specified by:
getFactTypein interfaceKieBase
-
getClassFieldAccessorCache
- Specified by:
getClassFieldAccessorCachein interfaceInternalRuleBase
-
getEntryPointIds
- Specified by:
getEntryPointIdsin interfaceInternalRuleBase- Specified by:
getEntryPointIdsin interfaceKieBase
-
removeObjectsGeneratedFromResource
public boolean removeObjectsGeneratedFromResource(Resource resource, Collection<InternalWorkingMemory> workingMemories) - Specified by:
removeObjectsGeneratedFromResourcein interfaceInternalRuleBase
-
getResolvedReleaseId
- Specified by:
getResolvedReleaseIdin interfaceInternalRuleBase
-
setResolvedReleaseId
- Specified by:
setResolvedReleaseIdin interfaceInternalRuleBase
-
getContainerId
- Specified by:
getContainerIdin interfaceorg.drools.base.RuleBase
-
setContainerId
- Specified by:
setContainerIdin interfaceorg.drools.base.RuleBase
-
getRuleUnitDescriptionRegistry
public org.drools.base.ruleunit.RuleUnitDescriptionRegistry getRuleUnitDescriptionRegistry()- Specified by:
getRuleUnitDescriptionRegistryin interfaceInternalRuleBase
-
hasUnits
public boolean hasUnits()- Specified by:
hasUnitsin interfaceInternalRuleBase
-
getReceiveNodes
- Specified by:
getReceiveNodesin interfaceInternalRuleBase
-
addReceiveNode
- Specified by:
addReceiveNodein interfaceInternalRuleBase
-
registerSegmentPrototype
public void registerSegmentPrototype(LeftTupleNode tupleSource, SegmentMemory.SegmentPrototype smem) - Specified by:
registerSegmentPrototypein interfaceInternalRuleBase
-