public class NamedEntryPoint extends Object implements InternalWorkingMemoryEntryPoint, WorkingMemoryEntryPoint, PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected static Class<?>[] |
ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES |
protected Object[] |
addRemovePropertyChangeListenerArgs
The arguments used when adding/removing a property change listener.
|
protected Set<InternalFactHandle> |
dynamicFacts |
protected EntryPointId |
entryPoint |
protected EntryPointNode |
entryPointNode |
protected FactHandleFactory |
handleFactory |
protected InternalKnowledgeBase |
kBase |
protected ReentrantLock |
lock |
protected static org.slf4j.Logger |
log |
protected ObjectStore |
objectStore |
protected PropagationContextFactory |
pctxFactory |
protected TraitHelper |
traitHelper |
protected StatefulKnowledgeSessionImpl |
wm |
| Modifier | Constructor and Description |
|---|---|
|
NamedEntryPoint(EntryPointId entryPoint,
EntryPointNode entryPointNode,
StatefulKnowledgeSessionImpl wm) |
|
NamedEntryPoint(EntryPointId entryPoint,
EntryPointNode entryPointNode,
StatefulKnowledgeSessionImpl wm,
ReentrantLock lock) |
protected |
NamedEntryPoint(EntryPointId entryPoint,
StatefulKnowledgeSessionImpl wm,
FactHandleFactory handleFactory,
ReentrantLock lock,
ObjectStore objectStore) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPropertyChangeListener(InternalFactHandle handle,
boolean dynamicFlag) |
void |
delete(org.kie.api.runtime.rule.FactHandle handle) |
void |
delete(org.kie.api.runtime.rule.FactHandle handle,
org.kie.api.runtime.rule.FactHandle.State fhState) |
void |
delete(org.kie.api.runtime.rule.FactHandle factHandle,
RuleImpl rule,
TerminalNode terminalNode) |
void |
delete(org.kie.api.runtime.rule.FactHandle factHandle,
RuleImpl rule,
TerminalNode terminalNode,
org.kie.api.runtime.rule.FactHandle.State fhState) |
PropagationContext |
delete(InternalFactHandle handle,
Object object,
ObjectTypeConf typeConf,
RuleImpl rule,
Activation activation) |
PropagationContext |
delete(InternalFactHandle handle,
Object object,
ObjectTypeConf typeConf,
RuleImpl rule,
Activation activation,
TerminalNode terminalNode) |
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.
|
void |
enQueueWorkingMemoryAction(WorkingMemoryAction action) |
EntryPointId |
getEntryPoint() |
String |
getEntryPointId() |
EntryPointNode |
getEntryPointNode() |
long |
getFactCount() |
org.kie.api.runtime.rule.FactHandle |
getFactHandle(Object object) |
org.kie.api.runtime.rule.FactHandle |
getFactHandleByIdentity(Object object) |
<T extends org.kie.api.runtime.rule.FactHandle> |
getFactHandles() |
<T extends org.kie.api.runtime.rule.FactHandle> |
getFactHandles(org.kie.api.runtime.ObjectFilter filter) |
FactHandleFactory |
getHandleFactory() |
InternalWorkingMemory |
getInternalWorkingMemory() |
InternalKnowledgeBase |
getKnowledgeBase() |
Object |
getObject(org.kie.api.runtime.rule.FactHandle factHandle) |
Collection<? extends Object> |
getObjects() |
Collection<? extends Object> |
getObjects(org.kie.api.runtime.ObjectFilter filter) |
ObjectStore |
getObjectStore() |
ObjectTypeConfigurationRegistry |
getObjectTypeConfigurationRegistry() |
PropagationContextFactory |
getPctxFactory() |
Object |
getRuleUnit() |
TraitHelper |
getTraitHelper() |
TruthMaintenanceSystem |
getTruthMaintenanceSystem() |
WorkingMemoryEntryPoint |
getWorkingMemoryEntryPoint(String name) |
void |
insert(InternalFactHandle handle,
Object object,
RuleImpl rule,
ObjectTypeConf typeConf,
PropagationContext pctx) |
void |
insert(InternalFactHandle handle,
Object object,
RuleImpl rule,
TerminalNode terminalNode,
ObjectTypeConf typeConf) |
org.kie.api.runtime.rule.FactHandle |
insert(Object object) |
org.kie.api.runtime.rule.FactHandle |
insert(Object object,
boolean dynamic)
Insert a fact registering JavaBean
PropertyChangeListeners
on the Object to automatically trigger update calls
if dynamic is true. |
org.kie.api.runtime.rule.FactHandle |
insert(Object object,
boolean dynamic,
RuleImpl rule,
TerminalNode terminalNode) |
org.kie.api.runtime.rule.FactHandle |
insertAsync(Object object) |
void |
lock() |
void |
propertyChange(PropertyChangeEvent event) |
void |
removeFromObjectStore(InternalFactHandle handle) |
protected void |
removePropertyChangeListener(org.kie.api.runtime.rule.FactHandle handle,
boolean removeFromSet) |
void |
reset() |
void |
retract(org.kie.api.runtime.rule.FactHandle handle) |
void |
setRuleUnit(Object ruleUnit) |
String |
toString() |
void |
unlock() |
void |
update(org.kie.api.runtime.rule.FactHandle factHandle,
Object object) |
void |
update(org.kie.api.runtime.rule.FactHandle factHandle,
Object object,
BitMask mask,
Class<?> modifiedClass,
Activation activation) |
void |
update(org.kie.api.runtime.rule.FactHandle handle,
Object object,
String... modifiedProperties) |
InternalFactHandle |
update(InternalFactHandle handle,
Object object,
BitMask mask,
Class<?> modifiedClass,
Activation activation) |
void |
update(InternalFactHandle handle,
Object object,
Object originalObject,
ObjectTypeConf typeConf,
PropagationContext propagationContext) |
protected static final transient org.slf4j.Logger log
protected static final Class<?>[] ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES
protected final Object[] addRemovePropertyChangeListenerArgs
protected ObjectStore objectStore
protected transient InternalKnowledgeBase kBase
protected EntryPointId entryPoint
protected EntryPointNode entryPointNode
protected final StatefulKnowledgeSessionImpl wm
protected FactHandleFactory handleFactory
protected PropagationContextFactory pctxFactory
protected final ReentrantLock lock
protected Set<InternalFactHandle> dynamicFacts
protected TraitHelper traitHelper
public NamedEntryPoint(EntryPointId entryPoint, EntryPointNode entryPointNode, StatefulKnowledgeSessionImpl wm)
public NamedEntryPoint(EntryPointId entryPoint, EntryPointNode entryPointNode, StatefulKnowledgeSessionImpl wm, ReentrantLock lock)
protected NamedEntryPoint(EntryPointId entryPoint, StatefulKnowledgeSessionImpl wm, FactHandleFactory handleFactory, ReentrantLock lock, ObjectStore objectStore)
public void lock()
public void unlock()
public void reset()
reset in interface WorkingMemoryEntryPointpublic ObjectStore getObjectStore()
getObjectStore in interface WorkingMemoryEntryPointpublic EntryPointNode getEntryPointNode()
getEntryPointNode in interface WorkingMemoryEntryPointpublic FactHandleFactory getHandleFactory()
getHandleFactory in interface WorkingMemoryEntryPointpublic org.kie.api.runtime.rule.FactHandle insert(Object object)
insert in interface org.kie.api.runtime.rule.EntryPointWorkingMemorypublic org.kie.api.runtime.rule.FactHandle insert(Object object, boolean dynamic)
WorkingMemoryEntryPointPropertyChangeListeners
on the Object to automatically trigger update calls
if dynamic is true.insert in interface WorkingMemoryEntryPointobject - The fact object.dynamic - true if Drools should add JavaBean
PropertyChangeListeners to the object.public org.kie.api.runtime.rule.FactHandle insert(Object object, boolean dynamic, RuleImpl rule, TerminalNode terminalNode)
insert in interface InternalWorkingMemoryEntryPointpublic void insert(InternalFactHandle handle, Object object, RuleImpl rule, TerminalNode terminalNode, ObjectTypeConf typeConf)
insert in interface InternalWorkingMemoryEntryPointpublic void insert(InternalFactHandle handle, Object object, RuleImpl rule, ObjectTypeConf typeConf, PropagationContext pctx)
insert in interface InternalWorkingMemoryEntryPointpublic org.kie.api.runtime.rule.FactHandle insertAsync(Object object)
insertAsync in interface InternalWorkingMemoryEntryPointpublic void update(org.kie.api.runtime.rule.FactHandle factHandle,
Object object)
update in interface org.kie.api.runtime.rule.EntryPointpublic void update(org.kie.api.runtime.rule.FactHandle handle,
Object object,
String... modifiedProperties)
update in interface org.kie.api.runtime.rule.EntryPointpublic void update(org.kie.api.runtime.rule.FactHandle factHandle,
Object object,
BitMask mask,
Class<?> modifiedClass,
Activation activation)
update in interface WorkingMemoryEntryPointpublic InternalFactHandle update(InternalFactHandle handle, Object object, BitMask mask, Class<?> modifiedClass, Activation activation)
update in interface InternalWorkingMemoryEntryPointpublic void update(InternalFactHandle handle, Object object, Object originalObject, ObjectTypeConf typeConf, PropagationContext propagationContext)
update in interface InternalWorkingMemoryEntryPointpublic void retract(org.kie.api.runtime.rule.FactHandle handle)
retract in interface org.kie.api.runtime.rule.EntryPointpublic void delete(org.kie.api.runtime.rule.FactHandle handle)
delete in interface org.kie.api.runtime.rule.EntryPointpublic void delete(org.kie.api.runtime.rule.FactHandle handle,
org.kie.api.runtime.rule.FactHandle.State fhState)
delete in interface org.kie.api.runtime.rule.EntryPointpublic void delete(org.kie.api.runtime.rule.FactHandle factHandle,
RuleImpl rule,
TerminalNode terminalNode)
delete in interface WorkingMemoryEntryPointpublic void delete(org.kie.api.runtime.rule.FactHandle factHandle,
RuleImpl rule,
TerminalNode terminalNode,
org.kie.api.runtime.rule.FactHandle.State fhState)
delete in interface WorkingMemoryEntryPointpublic PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, Activation activation)
delete in interface InternalWorkingMemoryEntryPointpublic PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, Activation activation, TerminalNode terminalNode)
delete in interface InternalWorkingMemoryEntryPointpublic void removeFromObjectStore(InternalFactHandle handle)
removeFromObjectStore in interface InternalWorkingMemoryEntryPointprotected void addPropertyChangeListener(InternalFactHandle handle, boolean dynamicFlag)
protected void removePropertyChangeListener(org.kie.api.runtime.rule.FactHandle handle,
boolean removeFromSet)
public WorkingMemoryEntryPoint getWorkingMemoryEntryPoint(String name)
getWorkingMemoryEntryPoint in interface WorkingMemoryEntryPointpublic ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry()
getObjectTypeConfigurationRegistry in interface WorkingMemoryEntryPointpublic InternalKnowledgeBase getKnowledgeBase()
getKnowledgeBase in interface WorkingMemoryEntryPointpublic org.kie.api.runtime.rule.FactHandle getFactHandle(Object object)
getFactHandle in interface org.kie.api.runtime.rule.EntryPointpublic EntryPointId getEntryPoint()
getEntryPoint in interface WorkingMemoryEntryPointpublic InternalWorkingMemory getInternalWorkingMemory()
getInternalWorkingMemory in interface WorkingMemoryEntryPointpublic org.kie.api.runtime.rule.FactHandle getFactHandleByIdentity(Object object)
getFactHandleByIdentity in interface WorkingMemoryEntryPointpublic Object getObject(org.kie.api.runtime.rule.FactHandle factHandle)
getObject in interface org.kie.api.runtime.rule.EntryPointpublic <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
getFactHandles in interface org.kie.api.runtime.rule.EntryPointpublic <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles(org.kie.api.runtime.ObjectFilter filter)
getFactHandles in interface org.kie.api.runtime.rule.EntryPointpublic Collection<? extends Object> getObjects()
getObjects in interface org.kie.api.runtime.rule.EntryPointpublic Collection<? extends Object> getObjects(org.kie.api.runtime.ObjectFilter filter)
getObjects in interface org.kie.api.runtime.rule.EntryPointpublic String getEntryPointId()
getEntryPointId in interface org.kie.api.runtime.rule.EntryPointpublic long getFactCount()
getFactCount in interface org.kie.api.runtime.rule.EntryPointpublic void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerpublic void dispose()
WorkingMemoryEntryPointdispose in interface WorkingMemoryEntryPointpublic void enQueueWorkingMemoryAction(WorkingMemoryAction action)
public TruthMaintenanceSystem getTruthMaintenanceSystem()
getTruthMaintenanceSystem in interface WorkingMemoryEntryPointpublic PropagationContextFactory getPctxFactory()
getPctxFactory in interface InternalWorkingMemoryEntryPointpublic TraitHelper getTraitHelper()
getTraitHelper in interface InternalWorkingMemoryEntryPointpublic Object getRuleUnit()
getRuleUnit in interface WorkingMemoryEntryPointpublic void setRuleUnit(Object ruleUnit)
setRuleUnit in interface WorkingMemoryEntryPointCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.