public interface InternalWorkingMemory extends WorkingMemory
Modifier and Type | Method and Description |
---|---|
void |
activationFired()
This method is called by the agenda right after an activation was fired
to allow the working memory to resume any activities blocked during
activation firing.
|
void |
clearNodeMemory(MemoryFactory node) |
void |
closeLiveQuery(InternalFactHandle factHandle) |
void |
delete(FactHandle factHandle,
Rule rule,
Activation activation) |
void |
endBatchExecution() |
void |
endOperation()
This method must be called after finishing any work in the engine,
like inserting a new fact or firing a new rule.
|
void |
executeQueuedActions() |
org.kie.api.runtime.Calendars |
getCalendars() |
Map<String,org.kie.api.runtime.Channel> |
getChannels()
Returns a map of channel Id->Channel of all channels in
this working memory
|
DateFormats |
getDateFormats() |
EntryPointId |
getEntryPoint() |
EntryPointNode |
getEntryPointNode() |
Map<String,? extends org.kie.api.runtime.rule.EntryPoint> |
getEntryPoints() |
ExecutionResultImpl |
getExecutionResult() |
FactHandle |
getFactHandleByIdentity(Object object)
Looks for the fact handle associated to the given object
by looking up the object IDENTITY (==), even if rule base
is configured to AssertBehavior.EQUALITY.
|
FactHandleFactory |
getFactHandleFactory() |
int |
getId() |
long |
getIdleTime()
Returns the number of time units (usually ms) that the engine is idle
according to the session clock or -1 if it is not idle.
|
InternalFactHandle |
getInitialFactHandle() |
InternalKnowledgeRuntime |
getKnowledgeRuntime() |
Lock |
getLock() |
long |
getNextPropagationIdCounter() |
NodeMemories |
getNodeMemories() |
Memory |
getNodeMemory(MemoryFactory node) |
ObjectStore |
getObjectStore() |
ObjectTypeConfigurationRegistry |
getObjectTypeConfigurationRegistry() |
InternalProcessRuntime |
getProcessRuntime() |
SessionConfiguration |
getSessionConfiguration() |
TimerService |
getTimerService()
Returns the TimerService instance (session clock) for this
session.
|
long |
getTimeToNextJob()
Returns the number of time units (usually ms) to
the next scheduled job
|
long |
getTotalFactCount()
Returns the total number of facts in the working memory, i.e., counting
all facts from all entry points.
|
void |
insert(InternalFactHandle handle,
Object object,
Rule rule,
Activation activation,
ObjectTypeConf typeConf) |
boolean |
isSequential() |
void |
prepareToFireActivation()
This method is called by the agenda before firing a new activation
to ensure the working memory is in a safe state to fire the activation.
|
void |
queueWorkingMemoryAction(WorkingMemoryAction action) |
void |
setAgendaEventSupport(AgendaEventSupport agendaEventSupport) |
void |
setId(int id) |
void |
setKnowledgeRuntime(InternalKnowledgeRuntime kruntime) |
void |
setWorkingMemoryEventSupport(WorkingMemoryEventSupport workingMemoryEventSupport) |
void |
startBatchExecution(ExecutionResultImpl results) |
void |
startOperation()
This method must be called before starting any new work in the engine,
like inserting a new fact or firing a new rule.
|
void |
updateEntryPointsCache() |
clearActivationGroup, clearAgenda, clearAgendaGroup, clearRuleFlowGroup, fireAllRules, fireAllRules, fireAllRules, fireAllRules, getAgenda, getEnvironment, getFactHandle, getGlobal, getGlobalResolver, getObject, getProcessInstance, getProcessInstance, getProcessInstances, getQueryResults, getRuleBase, getSessionClock, getWorkingMemoryEntryPoint, getWorkItemManager, halt, iterateFactHandles, iterateFactHandles, iterateObjects, iterateObjects, setAsyncExceptionHandler, setFocus, setGlobal, setGlobalResolver, startProcess, startProcess
addEventListener, addEventListener, getAgendaEventListeners, getWorkingMemoryEventListeners, removeEventListener, removeEventListener
addEventListener, getRuleBaseEventListeners, removeEventListener
int getId()
void setId(int id)
void setWorkingMemoryEventSupport(WorkingMemoryEventSupport workingMemoryEventSupport)
void setAgendaEventSupport(AgendaEventSupport agendaEventSupport)
Memory getNodeMemory(MemoryFactory node)
void clearNodeMemory(MemoryFactory node)
NodeMemories getNodeMemories()
long getNextPropagationIdCounter()
ObjectStore getObjectStore()
void executeQueuedActions()
void queueWorkingMemoryAction(WorkingMemoryAction action)
FactHandleFactory getFactHandleFactory()
EntryPointId getEntryPoint()
EntryPointNode getEntryPointNode()
void insert(InternalFactHandle handle, Object object, Rule rule, Activation activation, ObjectTypeConf typeConf)
FactHandle getFactHandleByIdentity(Object object)
getFactHandleByIdentity
in interface WorkingMemory
object
- void delete(FactHandle factHandle, Rule rule, Activation activation) throws FactException
FactException
Lock getLock()
boolean isSequential()
ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry()
InternalFactHandle getInitialFactHandle()
org.kie.api.runtime.Calendars getCalendars()
TimerService getTimerService()
void setKnowledgeRuntime(InternalKnowledgeRuntime kruntime)
InternalKnowledgeRuntime getKnowledgeRuntime()
Map<String,org.kie.api.runtime.Channel> getChannels()
SessionConfiguration getSessionConfiguration()
void startBatchExecution(ExecutionResultImpl results)
ExecutionResultImpl getExecutionResult()
void endBatchExecution()
void startOperation()
void endOperation()
long getIdleTime()
long getTimeToNextJob()
void updateEntryPointsCache()
void prepareToFireActivation()
void activationFired()
long getTotalFactCount()
DateFormats getDateFormats()
InternalProcessRuntime getProcessRuntime()
void closeLiveQuery(InternalFactHandle factHandle)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.