Drools :: Core 6.0.0.Beta5

org.drools.core.reteoo
Class ReteooStatefulSession

java.lang.Object
  extended by org.drools.core.common.AbstractWorkingMemory
      extended by org.drools.core.reteoo.ReteooWorkingMemory
          extended by org.drools.core.reteoo.ReteooStatefulSession
All Implemented Interfaces:
Externalizable, Serializable, EventSupport, InternalWorkingMemory, InternalWorkingMemoryActions, InternalWorkingMemoryEntryPoint, ReteooWorkingMemoryInterface, RuleBaseEventManager, StatefulSession, WorkingMemory, WorkingMemoryEntryPoint, WorkingMemoryEventManager, org.kie.api.event.process.ProcessEventManager, org.kie.api.runtime.rule.SessionEntryPoint, org.kie.internal.process.CorrelationAwareProcessRuntime

public class ReteooStatefulSession
extends ReteooWorkingMemory
implements StatefulSession, Externalizable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.drools.core.reteoo.ReteooWorkingMemory
ReteooWorkingMemory.EvaluateResultConstraints, ReteooWorkingMemory.QueryInsertAction, ReteooWorkingMemory.QueryResultInsertAction, ReteooWorkingMemory.QueryResultRetractAction, ReteooWorkingMemory.QueryResultUpdateAction, ReteooWorkingMemory.QueryRetractAction, ReteooWorkingMemory.QueryRiaFixerNodeFixer, ReteooWorkingMemory.QueryUpdateAction, ReteooWorkingMemory.WorkingMemoryReteAssertAction, ReteooWorkingMemory.WorkingMemoryReteExpireAction
 
Nested classes/interfaces inherited from class org.drools.core.common.AbstractWorkingMemory
AbstractWorkingMemory.GlobalsAdapter, AbstractWorkingMemory.RuleFlowDeactivateEvent
 
Field Summary
 byte[] bytes
           
 
Fields inherited from class org.drools.core.common.AbstractWorkingMemory
__ruleBaseEventListeners, agenda, agendaEventSupport, calendars, config, dateFormats, defaultEntryPoint, entryPoints, evaluatingActionQueue, firing, globalResolver, handleFactory, id, initialFactHandle, lock, propagationIdCounter, ruleBase, ruleEventListenerSupport, workingMemoryEventSupport
 
Constructor Summary
ReteooStatefulSession()
           
ReteooStatefulSession(int id, InternalRuleBase ruleBase)
           
ReteooStatefulSession(int id, InternalRuleBase ruleBase, FactHandleFactory handleFactory, InternalFactHandle initialFactHandle, long propagationContext, SessionConfiguration config, InternalAgenda agenda, org.kie.api.runtime.Environment environment)
           
ReteooStatefulSession(int id, InternalRuleBase ruleBase, SessionConfiguration config, org.kie.api.runtime.Environment environment)
           
 
Method Summary
 void dispose()
          Internal method called by the engine when the session is being disposed, so that the entry point can proceed with the necessary clean ups.
 List getRuleBaseUpdateListeners()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.core.reteoo.ReteooWorkingMemory
closeLiveQuery, getEntryPoint, getFactHandles, getFactHandles, getInternalWorkingMemory, getObjects, getObjects, getQueryResults, getQueryResults, openLiveQuery
 
Methods inherited from class org.drools.core.common.AbstractWorkingMemory
activationFired, addEventListener, addEventListener, addEventListener, addEventListener, addEventListener, addLIANodePropagation, clearActivationGroup, clearAgenda, clearAgendaGroup, clearNodeMemory, clearRuleFlowGroup, createProcessInstance, createProcessInstance, delete, delete, endBatchExecution, endOperation, executeQueuedActions, fireAllRules, fireAllRules, fireAllRules, fireAllRules, fireUntilHalt, fireUntilHalt, getActionQueue, getActivationParameters, getActivationParameters, getAgenda, getAgendaEventListeners, getAgendaEventSupport, getCalendars, getChannels, getDateFormats, getEntryPointId, getEntryPointNode, getEntryPoints, getEnvironment, getExecutionResult, getFactCount, getFactHandle, getFactHandleByIdentity, getFactHandleFactory, getGlobal, getGlobalResolver, getId, getIdleTime, getInitialFactHandle, getKnowledgeRuntime, getLastIdleTimestamp, getLock, getNextPropagationIdCounter, getNodeMemories, getNodeMemory, getObject, getObjectMarshallingStrategyStore, getObjectStore, getObjectTypeConfigurationRegistry, getProcessEventListeners, getProcessInstance, getProcessInstance, getProcessInstance, getProcessInstances, getProcessRuntime, getPropagationIdCounter, getRuleBase, getRuleBaseEventListeners, getRuleEventListeners, getSessionClock, getSessionConfiguration, getTimerService, getTimeToNextJob, getTotalFactCount, getWorkingMemoryEntryPoint, getWorkingMemoryEntryPoints, getWorkingMemoryEventListeners, getWorkingMemoryEventSupport, getWorkItemManager, halt, insert, insert, insert, insert, insertLogical, insertLogical, insertLogical, isSequential, iterateFactHandles, iterateFactHandles, iterateNonDefaultEntryPointObjectsToList, iterateObjects, iterateObjects, iterateObjectsToList, prepareToFireActivation, queueWorkingMemoryAction, registerChannel, removeEventListener, removeEventListener, removeEventListener, removeEventListener, removeEventListener, reset, reset, retract, setAgendaEventSupport, setAsyncExceptionHandler, setEndOperationListener, setFocus, setGlobal, setGlobalResolver, setId, setInitialFactHandle, setKnowledgeRuntime, setWorkingMemoryEventSupport, startBatchExecution, startOperation, startProcess, startProcess, startProcess, startProcessInstance, unregisterChannel, update, update, update, updateEntryPointsCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.core.StatefulSession
fireUntilHalt, fireUntilHalt
 
Methods inherited from interface org.drools.core.WorkingMemory
clearActivationGroup, clearAgenda, clearAgendaGroup, clearRuleFlowGroup, fireAllRules, fireAllRules, fireAllRules, fireAllRules, getAgenda, getEnvironment, getFactHandle, getFactHandleByIdentity, getGlobal, getGlobalResolver, getObject, getProcessInstance, getProcessInstance, getProcessInstances, getQueryResults, getRuleBase, getSessionClock, getWorkingMemoryEntryPoint, getWorkItemManager, halt, iterateFactHandles, iterateFactHandles, iterateObjects, iterateObjects, setAsyncExceptionHandler, setFocus, setGlobal, setGlobalResolver, startProcess, startProcess
 
Methods inherited from interface org.drools.core.WorkingMemoryEventManager
addEventListener, addEventListener, getAgendaEventListeners, getWorkingMemoryEventListeners, removeEventListener, removeEventListener
 
Methods inherited from interface org.drools.core.RuleBaseEventManager
addEventListener, getRuleBaseEventListeners, removeEventListener
 
Methods inherited from interface org.drools.core.WorkingMemoryEntryPoint
insert, insert, retract, update
 
Methods inherited from interface org.kie.api.runtime.rule.SessionEntryPoint
delete, getEntryPointId, getFactCount, getFactHandles, getFactHandles, getObjects, getObjects
 
Methods inherited from interface org.drools.core.reteoo.ReteooWorkingMemoryInterface
createProcessInstance, fireUntilHalt, fireUntilHalt, getActionQueue, getLastIdleTimestamp, getWorkingMemoryEntryPoints, registerChannel, setEndOperationListener, startProcessInstance, unregisterChannel
 
Methods inherited from interface org.drools.core.common.InternalWorkingMemoryActions
delete, insert, insertLogical, update
 
Methods inherited from interface org.drools.core.common.InternalWorkingMemory
activationFired, addLIANodePropagation, clearNodeMemory, endBatchExecution, endOperation, executeQueuedActions, getCalendars, getChannels, getDateFormats, getEntryPointNode, getEntryPoints, getExecutionResult, getFactHandleByIdentity, getFactHandleFactory, getId, getIdleTime, getInitialFactHandle, getKnowledgeRuntime, getLock, getNextPropagationIdCounter, getNodeMemories, getNodeMemory, getObjectStore, getObjectTypeConfigurationRegistry, getProcessRuntime, getSessionConfiguration, getTimerService, getTimeToNextJob, getTotalFactCount, insert, isSequential, prepareToFireActivation, queueWorkingMemoryAction, setAgendaEventSupport, setId, setKnowledgeRuntime, setWorkingMemoryEventSupport, startBatchExecution, startOperation, updateEntryPointsCache
 
Methods inherited from interface org.drools.core.common.InternalWorkingMemoryEntryPoint
getEntryPointNode, getFactHandleByIdentity, getObjectStore, getObjectTypeConfigurationRegistry, getRuleBase, reset, update
 
Methods inherited from interface org.drools.core.common.EventSupport
getAgendaEventListeners, getAgendaEventSupport, getWorkingMemoryEventListeners, getWorkingMemoryEventSupport
 
Methods inherited from interface org.kie.api.event.process.ProcessEventManager
addEventListener, getProcessEventListeners, removeEventListener
 

Field Detail

bytes

public byte[] bytes
Constructor Detail

ReteooStatefulSession

public ReteooStatefulSession()

ReteooStatefulSession

public ReteooStatefulSession(int id,
                             InternalRuleBase ruleBase)

ReteooStatefulSession

public ReteooStatefulSession(int id,
                             InternalRuleBase ruleBase,
                             SessionConfiguration config,
                             org.kie.api.runtime.Environment environment)

ReteooStatefulSession

public ReteooStatefulSession(int id,
                             InternalRuleBase ruleBase,
                             FactHandleFactory handleFactory,
                             InternalFactHandle initialFactHandle,
                             long propagationContext,
                             SessionConfiguration config,
                             InternalAgenda agenda,
                             org.kie.api.runtime.Environment environment)
Method Detail

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

dispose

public void dispose()
Description copied from interface: WorkingMemoryEntryPoint
Internal method called by the engine when the session is being disposed, so that the entry point can proceed with the necessary clean ups.

Specified by:
dispose in interface StatefulSession
Specified by:
dispose in interface WorkingMemoryEntryPoint
Overrides:
dispose in class AbstractWorkingMemory

getRuleBaseUpdateListeners

public List getRuleBaseUpdateListeners()
Specified by:
getRuleBaseUpdateListeners in interface StatefulSession

Drools :: Core 6.0.0.Beta5

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