|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.reteoo.ReteooStatelessSession
public class ReteooStatelessSession
Field Summary | |
---|---|
protected AgendaEventSupport |
agendaEventSupport
|
protected WorkingMemoryEventSupport |
workingMemoryEventSupport
The eventSupport |
Constructor Summary | |
---|---|
ReteooStatelessSession()
|
|
ReteooStatelessSession(InternalRuleBase ruleBase)
|
Method Summary | |
---|---|
void |
addEventListener(AgendaEventListener listener)
Add an event listener. |
void |
addEventListener(RuleBaseEventListener listener)
Add an event listener. |
void |
addEventListener(WorkingMemoryEventListener listener)
Add an event listener. |
void |
asyncExecute(Collection collection)
This will assert the object List (as SEPARATE facts) in the background. |
void |
asyncExecute(Object object)
This will assert the object in the background. |
void |
asyncExecute(Object[] array)
This will assert the object array (as SEPARATE facts) in the background. |
void |
execute(Collection collection)
Insert a List of facts, an fire the rules, returning when finished. |
void |
execute(Object object)
Insert a single fact, an fire the rules, returning when finished. |
void |
execute(Object[] array)
Insert an array of facts, an fire the rules, returning when finished. |
StatelessSessionResult |
executeWithResults(Collection collection)
Similar to the normal execute method, but this will return "results". |
StatelessSessionResult |
executeWithResults(Object object)
Similar to the normal execute method, but this will return "results". |
StatelessSessionResult |
executeWithResults(Object[] array)
Similar to the normal execute method, but this will return "results". |
List |
getAgendaEventListeners()
Returns all event listeners. |
InternalRuleBase |
getRuleBase()
|
List |
getRuleBaseEventListeners()
Returns all event listeners. |
List |
getWorkingMemoryEventListeners()
Returns all event listeners. |
InternalWorkingMemory |
newWorkingMemory()
|
void |
readExternal(ObjectInput in)
|
void |
removeEventListener(AgendaEventListener listener)
Remove an event listener. |
void |
removeEventListener(RuleBaseEventListener listener)
Remove an event listener. |
void |
removeEventListener(WorkingMemoryEventListener listener)
Remove an event listener. |
void |
setAgendaFilter(AgendaFilter agendaFilter)
|
void |
setGlobal(String identifier,
Object value)
Sets a global value |
void |
setGlobalExporter(GlobalExporter globalExporter)
Used to specify a global exporting strategy so that global variables can be available to StatelessSessionResults. |
void |
setGlobalResolver(GlobalResolver globalResolver)
Delegate used to resolve any global names not found in the global map. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected WorkingMemoryEventSupport workingMemoryEventSupport
protected AgendaEventSupport agendaEventSupport
Constructor Detail |
---|
public ReteooStatelessSession()
public ReteooStatelessSession(InternalRuleBase ruleBase)
Method Detail |
---|
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public InternalRuleBase getRuleBase()
getRuleBase
in interface InternalStatelessSession
public InternalWorkingMemory newWorkingMemory()
public void addEventListener(WorkingMemoryEventListener listener)
WorkingMemoryEventManager
addEventListener
in interface WorkingMemoryEventManager
listener
- The listener to add.public void removeEventListener(WorkingMemoryEventListener listener)
WorkingMemoryEventManager
removeEventListener
in interface WorkingMemoryEventManager
listener
- The listener to remove.public List getWorkingMemoryEventListeners()
WorkingMemoryEventManager
getWorkingMemoryEventListeners
in interface WorkingMemoryEventManager
public void addEventListener(AgendaEventListener listener)
WorkingMemoryEventManager
addEventListener
in interface WorkingMemoryEventManager
listener
- The listener to add.public void removeEventListener(AgendaEventListener listener)
WorkingMemoryEventManager
removeEventListener
in interface WorkingMemoryEventManager
listener
- The listener to remove.public List getAgendaEventListeners()
WorkingMemoryEventManager
getAgendaEventListeners
in interface WorkingMemoryEventManager
public void addEventListener(RuleBaseEventListener listener)
RuleBaseEventManager
addEventListener
in interface RuleBaseEventManager
listener
- The listener to add.public List getRuleBaseEventListeners()
RuleBaseEventManager
getRuleBaseEventListeners
in interface RuleBaseEventManager
public void removeEventListener(RuleBaseEventListener listener)
RuleBaseEventManager
removeEventListener
in interface RuleBaseEventManager
listener
- The listener to remove.public void setAgendaFilter(AgendaFilter agendaFilter)
setAgendaFilter
in interface StatelessSession
public void setGlobal(String identifier, Object value)
StatelessSession
setGlobal
in interface StatelessSession
public void setGlobalResolver(GlobalResolver globalResolver)
StatelessSession
setGlobalResolver
in interface StatelessSession
public void setGlobalExporter(GlobalExporter globalExporter)
StatelessSession
setGlobalExporter
in interface StatelessSession
globalExporter
- The GlobalExporter instancepublic void execute(Object object)
StatelessSession
execute
in interface StatelessSession
public void execute(Object[] array)
StatelessSession
execute
in interface StatelessSession
public void execute(Collection collection)
StatelessSession
execute
in interface StatelessSession
public void asyncExecute(Object object)
StatelessSession
asyncExecute
in interface StatelessSession
public void asyncExecute(Object[] array)
StatelessSession
asyncExecute
in interface StatelessSession
public void asyncExecute(Collection collection)
StatelessSession
asyncExecute
in interface StatelessSession
public StatelessSessionResult executeWithResults(Object object)
StatelessSession
executeWithResults
in interface StatelessSession
public StatelessSessionResult executeWithResults(Object[] array)
StatelessSession
executeWithResults
in interface StatelessSession
public StatelessSessionResult executeWithResults(Collection collection)
StatelessSession
executeWithResults
in interface StatelessSession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |