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() |
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) |
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 WorkingMemoryEntryPoint
public ObjectStore getObjectStore()
getObjectStore
in interface WorkingMemoryEntryPoint
public EntryPointNode getEntryPointNode()
getEntryPointNode
in interface WorkingMemoryEntryPoint
public FactHandleFactory getHandleFactory()
getHandleFactory
in interface WorkingMemoryEntryPoint
public org.kie.api.runtime.rule.FactHandle insert(Object object)
insert
in interface org.kie.api.runtime.rule.EntryPoint
WorkingMemory
public org.kie.api.runtime.rule.FactHandle insert(Object object, boolean dynamic)
WorkingMemoryEntryPoint
PropertyChangeListeners
on the Object to automatically trigger update
calls
if dynamic
is true
.insert
in interface WorkingMemoryEntryPoint
object
- 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 InternalWorkingMemoryEntryPoint
public void insert(InternalFactHandle handle, Object object, RuleImpl rule, TerminalNode terminalNode, ObjectTypeConf typeConf)
insert
in interface InternalWorkingMemoryEntryPoint
public void insert(InternalFactHandle handle, Object object, RuleImpl rule, ObjectTypeConf typeConf, PropagationContext pctx)
insert
in interface InternalWorkingMemoryEntryPoint
public org.kie.api.runtime.rule.FactHandle insertAsync(Object object)
insertAsync
in interface InternalWorkingMemoryEntryPoint
public void update(org.kie.api.runtime.rule.FactHandle factHandle, Object object)
update
in interface org.kie.api.runtime.rule.EntryPoint
public void update(org.kie.api.runtime.rule.FactHandle handle, Object object, String... modifiedProperties)
update
in interface org.kie.api.runtime.rule.EntryPoint
public void update(org.kie.api.runtime.rule.FactHandle factHandle, Object object, BitMask mask, Class<?> modifiedClass, Activation activation)
update
in interface WorkingMemoryEntryPoint
public InternalFactHandle update(InternalFactHandle handle, Object object, BitMask mask, Class<?> modifiedClass, Activation activation)
update
in interface InternalWorkingMemoryEntryPoint
public void update(InternalFactHandle handle, Object object, Object originalObject, ObjectTypeConf typeConf, PropagationContext propagationContext)
update
in interface InternalWorkingMemoryEntryPoint
public void retract(org.kie.api.runtime.rule.FactHandle handle)
retract
in interface org.kie.api.runtime.rule.EntryPoint
public void delete(org.kie.api.runtime.rule.FactHandle handle)
delete
in interface org.kie.api.runtime.rule.EntryPoint
public 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.EntryPoint
public void delete(org.kie.api.runtime.rule.FactHandle factHandle, RuleImpl rule, TerminalNode terminalNode)
delete
in interface WorkingMemoryEntryPoint
public void delete(org.kie.api.runtime.rule.FactHandle factHandle, RuleImpl rule, TerminalNode terminalNode, org.kie.api.runtime.rule.FactHandle.State fhState)
delete
in interface WorkingMemoryEntryPoint
public PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, Activation activation)
delete
in interface InternalWorkingMemoryEntryPoint
public PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, Activation activation, TerminalNode terminalNode)
delete
in interface InternalWorkingMemoryEntryPoint
public void removeFromObjectStore(InternalFactHandle handle)
removeFromObjectStore
in interface InternalWorkingMemoryEntryPoint
protected 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 WorkingMemoryEntryPoint
public ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry()
getObjectTypeConfigurationRegistry
in interface WorkingMemoryEntryPoint
public InternalKnowledgeBase getKnowledgeBase()
getKnowledgeBase
in interface WorkingMemoryEntryPoint
public org.kie.api.runtime.rule.FactHandle getFactHandle(Object object)
getFactHandle
in interface org.kie.api.runtime.rule.EntryPoint
public EntryPointId getEntryPoint()
getEntryPoint
in interface WorkingMemoryEntryPoint
public InternalWorkingMemory getInternalWorkingMemory()
getInternalWorkingMemory
in interface WorkingMemoryEntryPoint
public org.kie.api.runtime.rule.FactHandle getFactHandleByIdentity(Object object)
getFactHandleByIdentity
in interface WorkingMemoryEntryPoint
public Object getObject(org.kie.api.runtime.rule.FactHandle factHandle)
getObject
in interface org.kie.api.runtime.rule.EntryPoint
public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
getFactHandles
in interface org.kie.api.runtime.rule.EntryPoint
public <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.EntryPoint
public Collection<? extends Object> getObjects()
getObjects
in interface org.kie.api.runtime.rule.EntryPoint
public Collection<? extends Object> getObjects(org.kie.api.runtime.ObjectFilter filter)
getObjects
in interface org.kie.api.runtime.rule.EntryPoint
public String getEntryPointId()
getEntryPointId
in interface org.kie.api.runtime.rule.EntryPoint
public long getFactCount()
getFactCount
in interface org.kie.api.runtime.rule.EntryPoint
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
public void dispose()
WorkingMemoryEntryPoint
dispose
in interface WorkingMemoryEntryPoint
public void enQueueWorkingMemoryAction(WorkingMemoryAction action)
public TruthMaintenanceSystem getTruthMaintenanceSystem()
getTruthMaintenanceSystem
in interface WorkingMemoryEntryPoint
public PropagationContextFactory getPctxFactory()
getPctxFactory
in interface InternalWorkingMemoryEntryPoint
public TraitHelper getTraitHelper()
getTraitHelper
in interface InternalWorkingMemoryEntryPoint
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.