org.drools.core.common
Interface InternalRuleBase
- All Superinterfaces:
- Externalizable, RuleBase, RuleBaseEventManager, Serializable
- All Known Implementing Classes:
- ReteooRuleBase
public interface InternalRuleBase
- extends RuleBase
| Methods inherited from interface org.drools.core.RuleBase |
addPackage, addPackages, getAdditionsSinceLock, getEntryPointIds, getFactType, getPackages, getRemovalsSinceLock, getStatefulSessions, lock, newStatefulSession, newStatefulSession, newStatefulSession, newStatefulSession, newStatefulSession, newStatefulSession, newStatelessSession, removeFunction, removePackage, removeProcess, removeQuery, removeRule, unlock |
getId
String getId()
- Returns:
- the id
nextWorkingMemoryCounter
int nextWorkingMemoryCounter()
newFactHandleFactory
FactHandleFactory newFactHandleFactory()
newFactHandleFactory
FactHandleFactory newFactHandleFactory(int id,
long counter)
throws IOException
- Throws:
IOException
getGlobals
Map<String,Class<?>> getGlobals()
getConfiguration
RuleBaseConfiguration getConfiguration()
getPackage
Package getPackage(String name)
- Specified by:
getPackage in interface RuleBase
getPackagesMap
Map<String,Package> getPackagesMap()
disposeStatefulSession
void disposeStatefulSession(StatefulSession statefulSession)
executeQueuedActions
void executeQueuedActions()
getReteooBuilder
ReteooBuilder getReteooBuilder()
assertObject
void assertObject(FactHandle handle,
Object object,
PropagationContext context,
InternalWorkingMemory workingMemory)
throws FactException
- Assert a fact object.
- Parameters:
handle - The handle.object - The fact.workingMemory - The working-memory.
- Throws:
FactException - If an error occurs while performing the assertion.
retractObject
void retractObject(FactHandle handle,
PropagationContext context,
AbstractWorkingMemory workingMemory)
throws FactException
- Retract a fact object.
- Parameters:
handle - The handle.workingMemory - The working-memory.
- Throws:
FactException - If an error occurs while performing the retraction.
getRootClassLoader
ClassLoader getRootClassLoader()
getRete
Rete getRete()
getWorkingMemories
InternalWorkingMemory[] getWorkingMemories()
getProcess
org.kie.api.definition.process.Process getProcess(String id)
getProcesses
org.kie.api.definition.process.Process[] getProcesses()
isEvent
boolean isEvent(Class<?> clazz)
- Returns true if clazz represents an Event class. False otherwise.
- Parameters:
clazz -
- Returns:
getNodeCount
int getNodeCount()
getTypeDeclaration
TypeDeclaration getTypeDeclaration(Class<?> clazz)
- Returns the type declaration associated to the given class
- Parameters:
clazz -
- Returns:
getTypeDeclarations
Collection<TypeDeclaration> getTypeDeclarations()
- Returns a collection with all TypeDeclarations in this rulebase
- Returns:
createNewPartitionId
RuleBasePartitionId createNewPartitionId()
- Creates and allocates a new partition ID for this rulebase
- Returns:
getPartitionIds
List<RuleBasePartitionId> getPartitionIds()
- Return the list of Partition IDs for this rulebase
- Returns:
readLock
void readLock()
- Acquires a read lock on the rulebase
readUnlock
void readUnlock()
- Releases a read lock on the rulebase
registerAddedEntryNodeCache
void registerAddedEntryNodeCache(EntryPointNode node)
getAddedEntryNodeCache
Set<EntryPointNode> getAddedEntryNodeCache()
registeRremovedEntryNodeCache
void registeRremovedEntryNodeCache(EntryPointNode node)
getRemovedEntryNodeCache
Set<EntryPointNode> getRemovedEntryNodeCache()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.