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 InternalKnowledgeBase |
kBase |
protected ReentrantLock |
lock |
protected static org.slf4j.Logger |
log |
protected ObjectStore |
objectStore |
protected TraitHelper |
traitHelper |
| Constructor and Description |
|---|
NamedEntryPoint(EntryPointId entryPoint,
EntryPointNode entryPointNode,
StatefulKnowledgeSessionImpl wm) |
NamedEntryPoint(EntryPointId entryPoint,
EntryPointNode entryPointNode,
StatefulKnowledgeSessionImpl wm,
ReentrantLock lock) |
| 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,
Activation activation) |
void |
delete(org.kie.api.runtime.rule.FactHandle factHandle,
RuleImpl rule,
Activation activation,
org.kie.api.runtime.rule.FactHandle.State fhState) |
PropagationContext |
delete(InternalFactHandle handle,
Object object,
ObjectTypeConf typeConf,
RuleImpl rule,
Activation activation) |
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() |
TraitHelper |
getTraitHelper() |
TruthMaintenanceSystem |
getTruthMaintenanceSystem() |
WorkingMemoryEntryPoint |
getWorkingMemoryEntryPoint(String name) |
void |
insert(InternalFactHandle handle,
Object object,
RuleImpl rule,
Activation activation,
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,
Activation activation) |
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) |
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,
RuleImpl rule,
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 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)
public void lock()
public void unlock()
public void reset()
reset in interface InternalWorkingMemoryEntryPointpublic ObjectStore getObjectStore()
getObjectStore in interface InternalWorkingMemoryEntryPointpublic EntryPointNode getEntryPointNode()
getEntryPointNode in interface InternalWorkingMemoryEntryPointpublic FactHandleFactory getHandleFactory()
getHandleFactory in interface InternalWorkingMemoryEntryPointpublic 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, Activation activation)
public void insert(InternalFactHandle handle, Object object, RuleImpl rule, Activation activation, ObjectTypeConf typeConf)
public org.kie.api.runtime.rule.FactHandle insertAsync(Object object)
public 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 InternalWorkingMemoryEntryPointpublic InternalFactHandle update(InternalFactHandle handle, Object object, BitMask mask, Class<?> modifiedClass, Activation activation)
public void update(InternalFactHandle handle, Object object, Object originalObject, ObjectTypeConf typeConf, RuleImpl rule, PropagationContext propagationContext)
public 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,
Activation activation)
delete in interface InternalWorkingMemoryEntryPointpublic void delete(org.kie.api.runtime.rule.FactHandle factHandle,
RuleImpl rule,
Activation activation,
org.kie.api.runtime.rule.FactHandle.State fhState)
delete in interface InternalWorkingMemoryEntryPointpublic PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, Activation activation)
public 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 InternalWorkingMemoryEntryPointpublic InternalKnowledgeBase getKnowledgeBase()
getKnowledgeBase in interface InternalWorkingMemoryEntryPointpublic org.kie.api.runtime.rule.FactHandle getFactHandle(Object object)
getFactHandle in interface org.kie.api.runtime.rule.EntryPointpublic EntryPointId getEntryPoint()
getEntryPoint in interface InternalWorkingMemoryEntryPointpublic InternalWorkingMemory getInternalWorkingMemory()
getInternalWorkingMemory in interface InternalWorkingMemoryEntryPointpublic org.kie.api.runtime.rule.FactHandle getFactHandleByIdentity(Object object)
getFactHandleByIdentity in interface InternalWorkingMemoryEntryPointpublic 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 InternalWorkingMemoryEntryPointpublic PropagationContextFactory getPctxFactory()
public TraitHelper getTraitHelper()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.