org.drools.core.impl
Interface InternalKnowledgeBase
- All Superinterfaces:
- org.kie.api.KieBase, org.kie.api.event.kiebase.KieBaseEventManager, org.kie.internal.KnowledgeBase
- All Known Implementing Classes:
- KnowledgeBaseImpl
public interface InternalKnowledgeBase
- extends org.kie.internal.KnowledgeBase
|
Method Summary |
void |
addGlobal(String identifier,
Class clazz)
|
void |
addPackage(InternalKnowledgePackage pkg)
|
void |
addPackages(Collection<InternalKnowledgePackage> newPkgs)
|
void |
addPackages(InternalKnowledgePackage[] pkgs)
|
void |
addRule(InternalKnowledgePackage pkg,
RuleImpl rule)
|
void |
assertObject(org.kie.api.runtime.rule.FactHandle handle,
Object object,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
RuleBasePartitionId |
createNewPartitionId()
|
SegmentMemory |
createSegmentFromPrototype(InternalWorkingMemory wm,
LeftTupleSource tupleSource)
|
void |
disposeStatefulSession(StatefulKnowledgeSessionImpl statefulSession)
|
void |
executeQueuedActions()
|
Set<EntryPointNode> |
getAddedEntryNodeCache()
|
StatefulKnowledgeSessionImpl |
getCachedSession(SessionConfiguration config,
org.kie.api.runtime.Environment environment)
|
ClassFieldAccessorCache |
getClassFieldAccessorCache()
|
RuleBaseConfiguration |
getConfiguration()
|
Map<String,Class<?>> |
getGlobals()
|
String |
getId()
|
int |
getNodeCount()
|
InternalKnowledgePackage |
getPackage(String name)
|
Map<String,InternalKnowledgePackage> |
getPackagesMap()
|
Set<EntryPointNode> |
getRemovedEntryNodeCache()
|
Rete |
getRete()
|
ReteooBuilder |
getReteooBuilder()
|
ClassLoader |
getRootClassLoader()
|
SegmentMemory.Prototype |
getSegmentPrototype(SegmentMemory segment)
|
TraitRegistry |
getTraitRegistry()
|
TripleStore |
getTripleStore()
|
TypeDeclaration |
getTypeDeclaration(Class<?> clazz)
|
Collection<TypeDeclaration> |
getTypeDeclarations()
|
InternalWorkingMemory[] |
getWorkingMemories()
|
int |
getWorkingMemoryCounter()
|
void |
invalidateSegmentPrototype(LeftTupleSource tupleSource)
|
void |
lock()
|
FactHandleFactory |
newFactHandleFactory()
|
FactHandleFactory |
newFactHandleFactory(int id,
long counter)
|
int |
nextWorkingMemoryCounter()
|
void |
readLock()
|
void |
readUnlock()
|
void |
registerAddedEntryNodeCache(EntryPointNode node)
|
Class<?> |
registerAndLoadTypeDefinition(String className,
byte[] def)
|
void |
registeRremovedEntryNodeCache(EntryPointNode node)
|
void |
removeObjectsGeneratedFromResource(org.kie.api.io.Resource resource)
|
void |
removeRule(InternalKnowledgePackage pkg,
RuleImpl rule)
|
void |
retractObject(org.kie.api.runtime.rule.FactHandle handle,
PropagationContext context,
StatefulKnowledgeSessionImpl workingMemory)
|
void |
unlock()
|
| Methods inherited from interface org.kie.internal.KnowledgeBase |
addKnowledgePackages, getEntryPointIds, getFactType, getKnowledgePackage, getKnowledgePackages, getProcess, getProcesses, getQuery, getRule, getStatefulKnowledgeSessions, newStatefulKnowledgeSession, newStatefulKnowledgeSession, newStatelessKnowledgeSession, newStatelessKnowledgeSession, removeFunction, removeKnowledgePackage, removeProcess, removeQuery, removeRule |
| Methods inherited from interface org.kie.api.KieBase |
getKiePackage, getKiePackages, getKieSessions, newKieSession, newKieSession, newStatelessKieSession, newStatelessKieSession, removeKiePackage |
| Methods inherited from interface org.kie.api.event.kiebase.KieBaseEventManager |
addEventListener, getKieBaseEventListeners, removeEventListener |
getId
String getId()
createNewPartitionId
RuleBasePartitionId createNewPartitionId()
getConfiguration
RuleBaseConfiguration getConfiguration()
readLock
void readLock()
readUnlock
void readUnlock()
lock
void lock()
unlock
void unlock()
nextWorkingMemoryCounter
int nextWorkingMemoryCounter()
getWorkingMemoryCounter
int getWorkingMemoryCounter()
newFactHandleFactory
FactHandleFactory newFactHandleFactory()
newFactHandleFactory
FactHandleFactory newFactHandleFactory(int id,
long counter)
throws IOException
- Throws:
IOException
getGlobals
Map<String,Class<?>> getGlobals()
getNodeCount
int getNodeCount()
executeQueuedActions
void executeQueuedActions()
getReteooBuilder
ReteooBuilder getReteooBuilder()
registerAddedEntryNodeCache
void registerAddedEntryNodeCache(EntryPointNode node)
getAddedEntryNodeCache
Set<EntryPointNode> getAddedEntryNodeCache()
registeRremovedEntryNodeCache
void registeRremovedEntryNodeCache(EntryPointNode node)
getRemovedEntryNodeCache
Set<EntryPointNode> getRemovedEntryNodeCache()
getRete
Rete getRete()
getRootClassLoader
ClassLoader getRootClassLoader()
assertObject
void assertObject(org.kie.api.runtime.rule.FactHandle handle,
Object object,
PropagationContext context,
InternalWorkingMemory workingMemory)
retractObject
void retractObject(org.kie.api.runtime.rule.FactHandle handle,
PropagationContext context,
StatefulKnowledgeSessionImpl workingMemory)
disposeStatefulSession
void disposeStatefulSession(StatefulKnowledgeSessionImpl statefulSession)
getCachedSession
StatefulKnowledgeSessionImpl getCachedSession(SessionConfiguration config,
org.kie.api.runtime.Environment environment)
getTripleStore
TripleStore getTripleStore()
getTraitRegistry
TraitRegistry getTraitRegistry()
registerAndLoadTypeDefinition
Class<?> registerAndLoadTypeDefinition(String className,
byte[] def)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getPackage
InternalKnowledgePackage getPackage(String name)
addPackages
void addPackages(InternalKnowledgePackage[] pkgs)
addPackage
void addPackage(InternalKnowledgePackage pkg)
addPackages
void addPackages(Collection<InternalKnowledgePackage> newPkgs)
getPackagesMap
Map<String,InternalKnowledgePackage> getPackagesMap()
getClassFieldAccessorCache
ClassFieldAccessorCache getClassFieldAccessorCache()
getWorkingMemories
InternalWorkingMemory[] getWorkingMemories()
invalidateSegmentPrototype
void invalidateSegmentPrototype(LeftTupleSource tupleSource)
createSegmentFromPrototype
SegmentMemory createSegmentFromPrototype(InternalWorkingMemory wm,
LeftTupleSource tupleSource)
getSegmentPrototype
SegmentMemory.Prototype getSegmentPrototype(SegmentMemory segment)
addRule
void addRule(InternalKnowledgePackage pkg,
RuleImpl rule)
throws InvalidPatternException
- Throws:
InvalidPatternException
removeRule
void removeRule(InternalKnowledgePackage pkg,
RuleImpl rule)
throws InvalidPatternException
- Throws:
InvalidPatternException
addGlobal
void addGlobal(String identifier,
Class clazz)
removeObjectsGeneratedFromResource
void removeObjectsGeneratedFromResource(org.kie.api.io.Resource resource)
getTypeDeclaration
TypeDeclaration getTypeDeclaration(Class<?> clazz)
getTypeDeclarations
Collection<TypeDeclaration> getTypeDeclarations()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.