|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.io.SerializableRuleBaseProxy
public class SerializableRuleBaseProxy
This wraps a rulebase, and makes it serializable by storing the binary ruleset data.
| Constructor Summary | |
|---|---|
SerializableRuleBaseProxy()
|
|
SerializableRuleBaseProxy(RuleBase ruleBase,
java.util.List ruleSetBinaries)
|
|
| Method Summary | |
|---|---|
ConflictResolver |
getConflictResolver()
Retrieve the ConflictResolver. |
WorkingMemory |
getCurrentThreadWorkingMemory()
Get or create a WorkingMemory session for this
RuleBase and the current thread. |
RuleBaseContext |
getRuleBaseContext()
|
java.util.List |
getRuleSets()
|
RuleBase |
getWrappedRuleBase()
|
WorkingMemory |
newWorkingMemory()
Create a new WorkingMemory session for this
RuleBase. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializableRuleBaseProxy()
public SerializableRuleBaseProxy(RuleBase ruleBase,
java.util.List ruleSetBinaries)
| Method Detail |
|---|
public WorkingMemory newWorkingMemory()
RuleBaseWorkingMemory session for this
RuleBase.
The created WorkingMemory uses the default conflict
resolution strategy.
newWorkingMemory in interface RuleBaseWorkingMemory.WorkingMemory,
DefaultConflictResolverpublic ConflictResolver getConflictResolver()
RuleBaseConflictResolver.
getConflictResolver in interface RuleBasepublic java.util.List getRuleSets()
getRuleSets in interface RuleBasepublic RuleBaseContext getRuleBaseContext()
getRuleBaseContext in interface RuleBasepublic WorkingMemory getCurrentThreadWorkingMemory()
RuleBaseWorkingMemory session for this
RuleBase and the current thread.
This is useful for web application users, and allows a long running working memory
that will be garbage collected when the thread ends. Uses a ThreadLocal instance.
The created WorkingMemory uses the default conflict
resolution strategy.
getCurrentThreadWorkingMemory in interface RuleBaseWorkingMemory or a new one if the current thread did
not have a working memory assigned.WorkingMemory,
DefaultConflictResolverpublic RuleBase getWrappedRuleBase()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||