Drools :: Core 6.1.0.Final

org.drools.core.impl
Class KnowledgeBaseImpl

java.lang.Object
  extended by org.drools.core.impl.KnowledgeBaseImpl
All Implemented Interfaces:
Externalizable, Serializable, InternalKnowledgeBase, org.kie.api.event.kiebase.KieBaseEventManager, org.kie.api.KieBase, org.kie.internal.KnowledgeBase

public class KnowledgeBaseImpl
extends Object
implements InternalKnowledgeBase, Externalizable

See Also:
Serialized Form

Field Summary
 Set<EntryPointNode> addedEntryNodeCache
           
 List<List<String>> jaxbClasses
           
 Set<org.kie.api.event.kiebase.KieBaseEventListener> kieBaseListeners
           
protected static org.slf4j.Logger logger
           
protected  Map<String,InternalKnowledgePackage> pkgs
           
 Set<EntryPointNode> removedEntryNodeCache
           
 
Constructor Summary
KnowledgeBaseImpl()
           
KnowledgeBaseImpl(String id, RuleBaseConfiguration config)
           
 
Method Summary
protected  void addEntryPoint(Package pkg, String id)
           
protected  void addEntryPoint(String id)
           
 void addEventListener(org.kie.api.event.kiebase.KieBaseEventListener listener)
           
 void addGlobal(String identifier, Class clazz)
           
 void addKnowledgePackages(Collection<org.kie.internal.definition.KnowledgePackage> knowledgePackages)
           
 void addPackage(InternalKnowledgePackage newPkg)
           
 void addPackages(Collection<InternalKnowledgePackage> newPkgs)
          Add a Package to the network.
 void addPackages(InternalKnowledgePackage[] pkgs)
           
 void addProcess(org.kie.api.definition.process.Process process)
           
 void addRule(InternalKnowledgePackage pkg, RuleImpl rule)
           
protected  void addRule(RuleImpl rule)
           
 void addStatefulSession(StatefulKnowledgeSessionImpl wm)
           
 void addWindowDeclaration(InternalKnowledgePackage pkg, WindowDeclaration window)
           
protected  void addWindowDeclaration(WindowDeclaration window)
           
 void assertObject(org.kie.api.runtime.rule.FactHandle handle, Object object, PropagationContext context, InternalWorkingMemory workingMemory)
          Assert a fact object.
 RuleBasePartitionId createNewPartitionId()
           
 SegmentMemory createSegmentFromPrototype(InternalWorkingMemory wm, LeftTupleSource tupleSource)
           
 void disposeStatefulSession(StatefulKnowledgeSessionImpl statefulSession)
           
 void executeQueuedActions()
           
 Set<EntryPointNode> getAddedEntryNodeCache()
           
 int getAdditionsSinceLock()
           
 StatefulKnowledgeSessionImpl getCachedSession(SessionConfiguration config, org.kie.api.runtime.Environment environment)
           
 ClassFieldAccessorCache getClassFieldAccessorCache()
           
 RuleBaseConfiguration getConfig()
           
 RuleBaseConfiguration getConfiguration()
           
 Set<String> getEntryPointIds()
           
 FactHandleFactory getFactHandleFactory()
           
 org.kie.api.definition.type.FactType getFactType(String name)
           
 org.kie.api.definition.type.FactType getFactType(String packageName, String typeName)
           
 Map<String,Class<?>> getGlobals()
           
 String getId()
           
 Collection<org.kie.api.event.kiebase.KieBaseEventListener> getKieBaseEventListeners()
           
 org.kie.api.definition.KiePackage getKiePackage(String packageName)
           
 Collection<org.kie.api.definition.KiePackage> getKiePackages()
           
 Collection<? extends org.kie.api.runtime.KieSession> getKieSessions()
           
 org.kie.internal.definition.KnowledgePackage getKnowledgePackage(String packageName)
           
 Collection<org.kie.internal.definition.KnowledgePackage> getKnowledgePackages()
           
 int getNodeCount()
           
 InternalKnowledgePackage getPackage(String name)
           
 InternalKnowledgePackage[] getPackages()
           
 Map<String,InternalKnowledgePackage> getPackagesMap()
           
 List<RuleBasePartitionId> getPartitionIds()
           
 org.kie.api.definition.process.Process getProcess(String id)
           
 Collection<org.kie.api.definition.process.Process> getProcesses()
           
 org.kie.api.definition.rule.Query getQuery(String packageName, String queryName)
           
 int getRemovalsSinceLock()
           
 Set<EntryPointNode> getRemovedEntryNodeCache()
           
 Rete getRete()
          Retrieve the Rete-OO network for this RuleBase.
 ReteooBuilder getReteooBuilder()
           
 ClassLoader getRootClassLoader()
           
 org.kie.api.definition.rule.Rule getRule(String packageName, String ruleName)
           
 SegmentMemory.Prototype getSegmentPrototype(SegmentMemory segment)
           
 Collection<org.kie.internal.runtime.StatefulKnowledgeSession> getStatefulKnowledgeSessions()
           
 StatefulKnowledgeSessionImpl[] getStatefulSessions()
           
 TraitRegistry getTraitRegistry()
           
 TripleStore getTripleStore()
           
 TypeDeclaration getTypeDeclaration(Class<?> clazz)
           
 Collection<TypeDeclaration> getTypeDeclarations()
           
 InternalWorkingMemory[] getWorkingMemories()
           
 int getWorkingMemoryCounter()
           
 void invalidateSegmentPrototype(LeftTupleSource tupleSource)
           
 boolean isEvent(Class<?> clazz)
           
 void lock()
           
 FactHandleFactory newFactHandleFactory()
           
 FactHandleFactory newFactHandleFactory(int id, long counter)
           
 org.kie.api.runtime.KieSession newKieSession()
           
 org.kie.api.runtime.KieSession newKieSession(org.kie.api.runtime.KieSessionConfiguration conf, org.kie.api.runtime.Environment environment)
           
 org.kie.internal.runtime.StatefulKnowledgeSession newStatefulKnowledgeSession()
           
 org.kie.internal.runtime.StatefulKnowledgeSession newStatefulKnowledgeSession(org.kie.api.runtime.KieSessionConfiguration conf, org.kie.api.runtime.Environment environment)
           
 StatefulKnowledgeSessionImpl newStatefulSession()
           
 StatefulKnowledgeSessionImpl newStatefulSession(boolean keepReference)
           
 StatefulKnowledgeSessionImpl newStatefulSession(InputStream stream)
           
 StatefulKnowledgeSessionImpl newStatefulSession(InputStream stream, boolean keepReference)
           
 StatefulKnowledgeSessionImpl newStatefulSession(InputStream stream, boolean keepReference, SessionConfiguration conf)
           
 StatefulKnowledgeSessionImpl newStatefulSession(SessionConfiguration sessionConfig, org.kie.api.runtime.Environment environment)
           
 org.kie.api.runtime.StatelessKieSession newStatelessKieSession()
           
 org.kie.api.runtime.StatelessKieSession newStatelessKieSession(org.kie.api.runtime.KieSessionConfiguration conf)
           
 org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKnowledgeSession()
           
 org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKnowledgeSession(org.kie.api.runtime.KieSessionConfiguration conf)
           
 int nextWorkingMemoryCounter()
           
protected  void processTypeDeclaration(TypeDeclaration newDecl, InternalKnowledgePackage newPkg)
           
 void readExternal(ObjectInput in)
          Handles the read serialization of the Package.
 void readLock()
           
 void readUnlock()
           
 void registerAddedEntryNodeCache(EntryPointNode node)
           
 Class<?> registerAndLoadTypeDefinition(String className, byte[] def)
           
 void registeRremovedEntryNodeCache(EntryPointNode node)
           
 void registerSegmentPrototype(LeftTupleSource tupleSource, SegmentMemory smem)
           
 void removeEventListener(org.kie.api.event.kiebase.KieBaseEventListener listener)
           
protected  void removeFunction(String functionName)
          Handle function removal.
 void removeFunction(String packageName, String functionName)
           
 void removeKiePackage(String packageName)
           
 void removeKnowledgePackage(String packageName)
           
 void removeObjectsGeneratedFromResource(org.kie.api.io.Resource resource)
           
 void removeProcess(String id)
           
 void removeQuery(String packageName, String ruleName)
           
 void removeRule(InternalKnowledgePackage pkg, RuleImpl rule)
          Notify listeners and sub-classes about imminent removal of a rule from a package.
protected  void removeRule(RuleImpl rule)
           
 void removeRule(String packageName, String ruleName)
           
 void retractObject(org.kie.api.runtime.rule.FactHandle handle, PropagationContext context, StatefulKnowledgeSessionImpl workingMemory)
          Retract a fact object.
protected  void setupRete()
           
 void unlock()
           
protected  void updateDependentTypes(InternalKnowledgePackage newPkg, TypeDeclaration typeDeclaration)
           
 void writeExternal(ObjectOutput out)
          Handles the write serialization of the Package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient org.slf4j.Logger logger

addedEntryNodeCache

public Set<EntryPointNode> addedEntryNodeCache

removedEntryNodeCache

public Set<EntryPointNode> removedEntryNodeCache

pkgs

protected Map<String,InternalKnowledgePackage> pkgs

jaxbClasses

public List<List<String>> jaxbClasses

kieBaseListeners

public final Set<org.kie.api.event.kiebase.KieBaseEventListener> kieBaseListeners
Constructor Detail

KnowledgeBaseImpl

public KnowledgeBaseImpl()

KnowledgeBaseImpl

public KnowledgeBaseImpl(String id,
                         RuleBaseConfiguration config)
Method Detail

nextWorkingMemoryCounter

public int nextWorkingMemoryCounter()
Specified by:
nextWorkingMemoryCounter in interface InternalKnowledgeBase

getWorkingMemoryCounter

public int getWorkingMemoryCounter()
Specified by:
getWorkingMemoryCounter in interface InternalKnowledgeBase

addEventListener

public void addEventListener(org.kie.api.event.kiebase.KieBaseEventListener listener)
Specified by:
addEventListener in interface org.kie.api.event.kiebase.KieBaseEventManager

removeEventListener

public void removeEventListener(org.kie.api.event.kiebase.KieBaseEventListener listener)
Specified by:
removeEventListener in interface org.kie.api.event.kiebase.KieBaseEventManager

getKieBaseEventListeners

public Collection<org.kie.api.event.kiebase.KieBaseEventListener> getKieBaseEventListeners()
Specified by:
getKieBaseEventListeners in interface org.kie.api.event.kiebase.KieBaseEventManager

addKnowledgePackages

public void addKnowledgePackages(Collection<org.kie.internal.definition.KnowledgePackage> knowledgePackages)
Specified by:
addKnowledgePackages in interface org.kie.internal.KnowledgeBase

getKnowledgePackages

public Collection<org.kie.internal.definition.KnowledgePackage> getKnowledgePackages()
Specified by:
getKnowledgePackages in interface org.kie.internal.KnowledgeBase

newStatefulKnowledgeSession

public org.kie.internal.runtime.StatefulKnowledgeSession newStatefulKnowledgeSession()
Specified by:
newStatefulKnowledgeSession in interface org.kie.internal.KnowledgeBase

newStatefulKnowledgeSession

public org.kie.internal.runtime.StatefulKnowledgeSession newStatefulKnowledgeSession(org.kie.api.runtime.KieSessionConfiguration conf,
                                                                                     org.kie.api.runtime.Environment environment)
Specified by:
newStatefulKnowledgeSession in interface org.kie.internal.KnowledgeBase

getStatefulKnowledgeSessions

public Collection<org.kie.internal.runtime.StatefulKnowledgeSession> getStatefulKnowledgeSessions()
Specified by:
getStatefulKnowledgeSessions in interface org.kie.internal.KnowledgeBase

newStatelessKnowledgeSession

public org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKnowledgeSession()
Specified by:
newStatelessKnowledgeSession in interface org.kie.internal.KnowledgeBase

newStatelessKnowledgeSession

public org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKnowledgeSession(org.kie.api.runtime.KieSessionConfiguration conf)
Specified by:
newStatelessKnowledgeSession in interface org.kie.internal.KnowledgeBase

removeKnowledgePackage

public void removeKnowledgePackage(String packageName)
Specified by:
removeKnowledgePackage in interface org.kie.internal.KnowledgeBase

getKnowledgePackage

public org.kie.internal.definition.KnowledgePackage getKnowledgePackage(String packageName)
Specified by:
getKnowledgePackage in interface org.kie.internal.KnowledgeBase

getRule

public org.kie.api.definition.rule.Rule getRule(String packageName,
                                                String ruleName)
Specified by:
getRule in interface org.kie.api.KieBase
Specified by:
getRule in interface org.kie.internal.KnowledgeBase

getQuery

public org.kie.api.definition.rule.Query getQuery(String packageName,
                                                  String queryName)
Specified by:
getQuery in interface org.kie.api.KieBase
Specified by:
getQuery in interface org.kie.internal.KnowledgeBase

newKieSession

public org.kie.api.runtime.KieSession newKieSession(org.kie.api.runtime.KieSessionConfiguration conf,
                                                    org.kie.api.runtime.Environment environment)
Specified by:
newKieSession in interface org.kie.api.KieBase

newKieSession

public org.kie.api.runtime.KieSession newKieSession()
Specified by:
newKieSession in interface org.kie.api.KieBase

getKieSessions

public Collection<? extends org.kie.api.runtime.KieSession> getKieSessions()
Specified by:
getKieSessions in interface org.kie.api.KieBase

newStatelessKieSession

public org.kie.api.runtime.StatelessKieSession newStatelessKieSession(org.kie.api.runtime.KieSessionConfiguration conf)
Specified by:
newStatelessKieSession in interface org.kie.api.KieBase

newStatelessKieSession

public org.kie.api.runtime.StatelessKieSession newStatelessKieSession()
Specified by:
newStatelessKieSession in interface org.kie.api.KieBase

getKiePackages

public Collection<org.kie.api.definition.KiePackage> getKiePackages()
Specified by:
getKiePackages in interface org.kie.api.KieBase

getKiePackage

public org.kie.api.definition.KiePackage getKiePackage(String packageName)
Specified by:
getKiePackage in interface org.kie.api.KieBase

removeKiePackage

public void removeKiePackage(String packageName)
Specified by:
removeKiePackage in interface org.kie.api.KieBase

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Handles the read serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. The Package uses PackageCompilationData to hold a reference to the generated bytecode; which must be restored before any Rules. A custom ObjectInputStream, able to resolve classes against the bytecode in the PackageCompilationData, is used to restore the Rules.

Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Handles the write serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. The Package uses PackageCompilationData to hold a reference to the generated bytecode. The generated bytecode must be restored before any Rules.

Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getId

public String getId()
Specified by:
getId in interface InternalKnowledgeBase
Returns:
the id

getConfig

public RuleBaseConfiguration getConfig()

newStatefulSession

public StatefulKnowledgeSessionImpl newStatefulSession()

disposeStatefulSession

public void disposeStatefulSession(StatefulKnowledgeSessionImpl statefulSession)
Specified by:
disposeStatefulSession in interface InternalKnowledgeBase

getCachedSession

public StatefulKnowledgeSessionImpl getCachedSession(SessionConfiguration config,
                                                     org.kie.api.runtime.Environment environment)
Specified by:
getCachedSession in interface InternalKnowledgeBase

getFactHandleFactory

public FactHandleFactory getFactHandleFactory()

newFactHandleFactory

public FactHandleFactory newFactHandleFactory()
Specified by:
newFactHandleFactory in interface InternalKnowledgeBase

newFactHandleFactory

public FactHandleFactory newFactHandleFactory(int id,
                                              long counter)
Specified by:
newFactHandleFactory in interface InternalKnowledgeBase

getProcesses

public Collection<org.kie.api.definition.process.Process> getProcesses()
Specified by:
getProcesses in interface org.kie.api.KieBase
Specified by:
getProcesses in interface org.kie.internal.KnowledgeBase

getPackages

public InternalKnowledgePackage[] getPackages()

getPackagesMap

public Map<String,InternalKnowledgePackage> getPackagesMap()
Specified by:
getPackagesMap in interface InternalKnowledgeBase

getGlobals

public Map<String,Class<?>> getGlobals()
Specified by:
getGlobals in interface InternalKnowledgeBase

getAdditionsSinceLock

public int getAdditionsSinceLock()

getRemovalsSinceLock

public int getRemovalsSinceLock()

lock

public void lock()
Specified by:
lock in interface InternalKnowledgeBase

unlock

public void unlock()
Specified by:
unlock in interface InternalKnowledgeBase

readLock

public void readLock()
Specified by:
readLock in interface InternalKnowledgeBase

readUnlock

public void readUnlock()
Specified by:
readUnlock in interface InternalKnowledgeBase

addPackages

public void addPackages(Collection<InternalKnowledgePackage> newPkgs)
Add a Package to the network. Iterates through the Package adding Each individual Rule to the network. Before update network each referenced WorkingMemory is locked.

Specified by:
addPackages in interface InternalKnowledgeBase
Parameters:
newPkgs - The package to add.

processTypeDeclaration

protected void processTypeDeclaration(TypeDeclaration newDecl,
                                      InternalKnowledgePackage newPkg)
                               throws ClassNotFoundException
Throws:
ClassNotFoundException

registerAndLoadTypeDefinition

public Class<?> registerAndLoadTypeDefinition(String className,
                                              byte[] def)
                                       throws ClassNotFoundException
Specified by:
registerAndLoadTypeDefinition in interface InternalKnowledgeBase
Throws:
ClassNotFoundException

updateDependentTypes

protected void updateDependentTypes(InternalKnowledgePackage newPkg,
                                    TypeDeclaration typeDeclaration)

addGlobal

public void addGlobal(String identifier,
                      Class clazz)
Specified by:
addGlobal in interface InternalKnowledgeBase

setupRete

protected void setupRete()

registerAddedEntryNodeCache

public void registerAddedEntryNodeCache(EntryPointNode node)
Specified by:
registerAddedEntryNodeCache in interface InternalKnowledgeBase

getAddedEntryNodeCache

public Set<EntryPointNode> getAddedEntryNodeCache()
Specified by:
getAddedEntryNodeCache in interface InternalKnowledgeBase

registeRremovedEntryNodeCache

public void registeRremovedEntryNodeCache(EntryPointNode node)
Specified by:
registeRremovedEntryNodeCache in interface InternalKnowledgeBase

getRemovedEntryNodeCache

public Set<EntryPointNode> getRemovedEntryNodeCache()
Specified by:
getRemovedEntryNodeCache in interface InternalKnowledgeBase

getRete

public Rete getRete()
Retrieve the Rete-OO network for this RuleBase.

Specified by:
getRete in interface InternalKnowledgeBase
Returns:
The RETE-OO network.

getReteooBuilder

public ReteooBuilder getReteooBuilder()
Specified by:
getReteooBuilder in interface InternalKnowledgeBase

assertObject

public void assertObject(org.kie.api.runtime.rule.FactHandle handle,
                         Object object,
                         PropagationContext context,
                         InternalWorkingMemory workingMemory)
Assert a fact object.

Specified by:
assertObject in interface InternalKnowledgeBase
Parameters:
handle - The handle.
object - The fact.
workingMemory - The working-memory.

retractObject

public void retractObject(org.kie.api.runtime.rule.FactHandle handle,
                          PropagationContext context,
                          StatefulKnowledgeSessionImpl workingMemory)
Retract a fact object.

Specified by:
retractObject in interface InternalKnowledgeBase
Parameters:
handle - The handle.
workingMemory - The working-memory.

newStatefulSession

public StatefulKnowledgeSessionImpl newStatefulSession(boolean keepReference)

newStatefulSession

public StatefulKnowledgeSessionImpl newStatefulSession(InputStream stream)

newStatefulSession

public StatefulKnowledgeSessionImpl newStatefulSession(InputStream stream,
                                                       boolean keepReference)

newStatefulSession

public StatefulKnowledgeSessionImpl newStatefulSession(InputStream stream,
                                                       boolean keepReference,
                                                       SessionConfiguration conf)

newStatefulSession

public StatefulKnowledgeSessionImpl newStatefulSession(SessionConfiguration sessionConfig,
                                                       org.kie.api.runtime.Environment environment)

getNodeCount

public int getNodeCount()
Specified by:
getNodeCount in interface InternalKnowledgeBase

addPackages

public void addPackages(InternalKnowledgePackage[] pkgs)
Specified by:
addPackages in interface InternalKnowledgeBase

addPackage

public void addPackage(InternalKnowledgePackage newPkg)
Specified by:
addPackage in interface InternalKnowledgeBase

registerSegmentPrototype

public void registerSegmentPrototype(LeftTupleSource tupleSource,
                                     SegmentMemory smem)

invalidateSegmentPrototype

public void invalidateSegmentPrototype(LeftTupleSource tupleSource)
Specified by:
invalidateSegmentPrototype in interface InternalKnowledgeBase

createSegmentFromPrototype

public SegmentMemory createSegmentFromPrototype(InternalWorkingMemory wm,
                                                LeftTupleSource tupleSource)
Specified by:
createSegmentFromPrototype in interface InternalKnowledgeBase

getSegmentPrototype

public SegmentMemory.Prototype getSegmentPrototype(SegmentMemory segment)
Specified by:
getSegmentPrototype in interface InternalKnowledgeBase

getTypeDeclaration

public TypeDeclaration getTypeDeclaration(Class<?> clazz)
Specified by:
getTypeDeclaration in interface InternalKnowledgeBase

getTypeDeclarations

public Collection<TypeDeclaration> getTypeDeclarations()
Specified by:
getTypeDeclarations in interface InternalKnowledgeBase

addRule

public void addRule(InternalKnowledgePackage pkg,
                    RuleImpl rule)
             throws InvalidPatternException
Specified by:
addRule in interface InternalKnowledgeBase
Throws:
InvalidPatternException

addEntryPoint

protected void addEntryPoint(Package pkg,
                             String id)
                      throws InvalidPatternException
Throws:
InvalidPatternException

addRule

protected void addRule(RuleImpl rule)
                throws InvalidPatternException
Throws:
InvalidPatternException

addEntryPoint

protected void addEntryPoint(String id)
                      throws InvalidPatternException
Throws:
InvalidPatternException

addWindowDeclaration

public void addWindowDeclaration(InternalKnowledgePackage pkg,
                                 WindowDeclaration window)
                          throws InvalidPatternException
Throws:
InvalidPatternException

addWindowDeclaration

protected void addWindowDeclaration(WindowDeclaration window)
                             throws InvalidPatternException
Throws:
InvalidPatternException

removeQuery

public void removeQuery(String packageName,
                        String ruleName)
Specified by:
removeQuery in interface org.kie.api.KieBase
Specified by:
removeQuery in interface org.kie.internal.KnowledgeBase

removeRule

public void removeRule(String packageName,
                       String ruleName)
Specified by:
removeRule in interface org.kie.api.KieBase
Specified by:
removeRule in interface org.kie.internal.KnowledgeBase

removeRule

public void removeRule(InternalKnowledgePackage pkg,
                       RuleImpl rule)
Notify listeners and sub-classes about imminent removal of a rule from a package.

Specified by:
removeRule in interface InternalKnowledgeBase
Parameters:
pkg -
rule -

removeRule

protected void removeRule(RuleImpl rule)

removeFunction

public void removeFunction(String packageName,
                           String functionName)
Specified by:
removeFunction in interface org.kie.api.KieBase
Specified by:
removeFunction in interface org.kie.internal.KnowledgeBase

removeFunction

protected void removeFunction(String functionName)
Handle function removal. This method is intended for sub-classes, and called after the before-rule-removed event is fired, and before the function is physically removed from the package. This method is called with the rulebase lock held.

Parameters:
functionName -

addProcess

public void addProcess(org.kie.api.definition.process.Process process)

removeProcess

public void removeProcess(String id)
Specified by:
removeProcess in interface org.kie.api.KieBase
Specified by:
removeProcess in interface org.kie.internal.KnowledgeBase

getProcess

public org.kie.api.definition.process.Process getProcess(String id)
Specified by:
getProcess in interface org.kie.api.KieBase
Specified by:
getProcess in interface org.kie.internal.KnowledgeBase

addStatefulSession

public void addStatefulSession(StatefulKnowledgeSessionImpl wm)

getPackage

public InternalKnowledgePackage getPackage(String name)
Specified by:
getPackage in interface InternalKnowledgeBase

getStatefulSessions

public StatefulKnowledgeSessionImpl[] getStatefulSessions()

getWorkingMemories

public InternalWorkingMemory[] getWorkingMemories()
Specified by:
getWorkingMemories in interface InternalKnowledgeBase

getConfiguration

public RuleBaseConfiguration getConfiguration()
Specified by:
getConfiguration in interface InternalKnowledgeBase

getRootClassLoader

public ClassLoader getRootClassLoader()
Specified by:
getRootClassLoader in interface InternalKnowledgeBase

executeQueuedActions

public void executeQueuedActions()
Specified by:
executeQueuedActions in interface InternalKnowledgeBase

createNewPartitionId

public RuleBasePartitionId createNewPartitionId()
Specified by:
createNewPartitionId in interface InternalKnowledgeBase

getPartitionIds

public List<RuleBasePartitionId> getPartitionIds()

isEvent

public boolean isEvent(Class<?> clazz)

getFactType

public org.kie.api.definition.type.FactType getFactType(String packageName,
                                                        String typeName)
Specified by:
getFactType in interface org.kie.api.KieBase
Specified by:
getFactType in interface org.kie.internal.KnowledgeBase

getFactType

public org.kie.api.definition.type.FactType getFactType(String name)

getClassFieldAccessorCache

public ClassFieldAccessorCache getClassFieldAccessorCache()
Specified by:
getClassFieldAccessorCache in interface InternalKnowledgeBase

getEntryPointIds

public Set<String> getEntryPointIds()
Specified by:
getEntryPointIds in interface org.kie.api.KieBase
Specified by:
getEntryPointIds in interface org.kie.internal.KnowledgeBase

getTripleStore

public TripleStore getTripleStore()
Specified by:
getTripleStore in interface InternalKnowledgeBase

getTraitRegistry

public TraitRegistry getTraitRegistry()
Specified by:
getTraitRegistry in interface InternalKnowledgeBase

removeObjectsGeneratedFromResource

public void removeObjectsGeneratedFromResource(org.kie.api.io.Resource resource)
Specified by:
removeObjectsGeneratedFromResource in interface InternalKnowledgeBase

Drools :: Core 6.1.0.Final

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.