org.drools.common
Interface InternalRuleBase
- All Superinterfaces:
- Externalizable, RuleBase, RuleBaseEventManager, Serializable
- All Known Implementing Classes:
- AbstractRuleBase, ReteooRuleBase
public interface InternalRuleBase
- extends RuleBase
| Methods inherited from interface org.drools.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 getGlobals()
getAgendaGroupRuleTotals
Map getAgendaGroupRuleTotals()
getConfiguration
RuleBaseConfiguration getConfiguration()
getPackage
Package getPackage(String name)
- Specified by:
getPackage in interface RuleBase
getPackagesMap
Map 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,
ReteooWorkingMemory 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
org.drools.util.CompositeClassLoader getRootClassLoader()
getRete
Rete getRete()
getWorkingMemories
InternalWorkingMemory[] getWorkingMemories()
getProcess
org.drools.definition.process.Process getProcess(String id)
getProcesses
org.drools.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-2011 JBoss by Red Hat. All Rights Reserved.