Package org.drools.core.common
Class DisconnectedWorkingMemoryEntryPoint
- java.lang.Object
-
- org.drools.core.common.DisconnectedWorkingMemoryEntryPoint
-
- All Implemented Interfaces:
Serializable
,WorkingMemoryEntryPoint
,org.kie.api.runtime.rule.EntryPoint
public class DisconnectedWorkingMemoryEntryPoint extends Object implements WorkingMemoryEntryPoint, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DisconnectedWorkingMemoryEntryPoint(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(org.kie.api.runtime.rule.FactHandle handle)
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)
void
delete(org.kie.api.runtime.rule.FactHandle handle, org.kie.api.runtime.rule.FactHandle.State fhState)
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.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>
Collection<T>getFactHandles()
<T extends org.kie.api.runtime.rule.FactHandle>
Collection<T>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()
TruthMaintenanceSystem
getTruthMaintenanceSystem()
WorkingMemoryEntryPoint
getWorkingMemoryEntryPoint(String name)
org.kie.api.runtime.rule.FactHandle
insert(Object object)
org.kie.api.runtime.rule.FactHandle
insert(Object object, boolean dynamic)
Insert a fact registering JavaBeanPropertyChangeListeners
on the Object to automatically triggerupdate
calls ifdynamic
istrue
.void
reset()
void
retract(org.kie.api.runtime.rule.FactHandle handle)
void
update(org.kie.api.runtime.rule.FactHandle handle, Object object)
void
update(org.kie.api.runtime.rule.FactHandle handle, Object object, String... modifiedProperties)
void
update(org.kie.api.runtime.rule.FactHandle handle, Object object, BitMask mask, Class<?> modifiedClass, Activation activation)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.WorkingMemoryEntryPoint
getRuleUnit, setRuleUnit
-
-
-
-
Constructor Detail
-
DisconnectedWorkingMemoryEntryPoint
public DisconnectedWorkingMemoryEntryPoint(String id)
-
-
Method Detail
-
getEntryPointId
public String getEntryPointId()
- Specified by:
getEntryPointId
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
getEntryPoint
public EntryPointId getEntryPoint()
- Specified by:
getEntryPoint
in interfaceWorkingMemoryEntryPoint
-
getFactCount
public long getFactCount()
- Specified by:
getFactCount
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
getFactHandle
public org.kie.api.runtime.rule.FactHandle getFactHandle(Object object)
- Specified by:
getFactHandle
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
getFactHandles
public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
- Specified by:
getFactHandles
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
getFactHandles
public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles(org.kie.api.runtime.ObjectFilter filter)
- Specified by:
getFactHandles
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
getObject
public Object getObject(org.kie.api.runtime.rule.FactHandle factHandle)
- Specified by:
getObject
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
getObjects
public Collection<? extends Object> getObjects()
- Specified by:
getObjects
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
getObjects
public Collection<? extends Object> getObjects(org.kie.api.runtime.ObjectFilter filter)
- Specified by:
getObjects
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
insert
public org.kie.api.runtime.rule.FactHandle insert(Object object)
- Specified by:
insert
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
insert
public org.kie.api.runtime.rule.FactHandle insert(Object object, boolean dynamic)
Description copied from interface:WorkingMemoryEntryPoint
Insert a fact registering JavaBeanPropertyChangeListeners
on the Object to automatically triggerupdate
calls ifdynamic
istrue
.- Specified by:
insert
in interfaceWorkingMemoryEntryPoint
- Parameters:
object
- The fact object.dynamic
- true if Drools should add JavaBeanPropertyChangeListeners
to the object.- Returns:
- The new fact-handle associated with the object.
-
retract
public void retract(org.kie.api.runtime.rule.FactHandle handle)
- Specified by:
retract
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
delete
public void delete(org.kie.api.runtime.rule.FactHandle handle)
- Specified by:
delete
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
delete
public void delete(org.kie.api.runtime.rule.FactHandle handle, org.kie.api.runtime.rule.FactHandle.State fhState)
- Specified by:
delete
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
update
public void update(org.kie.api.runtime.rule.FactHandle handle, Object object)
- Specified by:
update
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
update
public void update(org.kie.api.runtime.rule.FactHandle handle, Object object, String... modifiedProperties)
- Specified by:
update
in interfaceorg.kie.api.runtime.rule.EntryPoint
-
getWorkingMemoryEntryPoint
public WorkingMemoryEntryPoint getWorkingMemoryEntryPoint(String name)
- Specified by:
getWorkingMemoryEntryPoint
in interfaceWorkingMemoryEntryPoint
-
dispose
public void dispose()
Description copied from interface:WorkingMemoryEntryPoint
Internal method called by the engine when the session is being disposed, so that the entry point can proceed with the necessary clean ups.- Specified by:
dispose
in interfaceWorkingMemoryEntryPoint
-
getObjectTypeConfigurationRegistry
public ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry()
- Specified by:
getObjectTypeConfigurationRegistry
in interfaceWorkingMemoryEntryPoint
-
getKnowledgeBase
public InternalKnowledgeBase getKnowledgeBase()
- Specified by:
getKnowledgeBase
in interfaceWorkingMemoryEntryPoint
-
delete
public void delete(org.kie.api.runtime.rule.FactHandle factHandle, RuleImpl rule, TerminalNode terminalNode)
- Specified by:
delete
in interfaceWorkingMemoryEntryPoint
-
delete
public void delete(org.kie.api.runtime.rule.FactHandle factHandle, RuleImpl rule, TerminalNode terminalNode, org.kie.api.runtime.rule.FactHandle.State fhState)
- Specified by:
delete
in interfaceWorkingMemoryEntryPoint
-
update
public void update(org.kie.api.runtime.rule.FactHandle handle, Object object, BitMask mask, Class<?> modifiedClass, Activation activation)
- Specified by:
update
in interfaceWorkingMemoryEntryPoint
-
getTruthMaintenanceSystem
public TruthMaintenanceSystem getTruthMaintenanceSystem()
- Specified by:
getTruthMaintenanceSystem
in interfaceWorkingMemoryEntryPoint
-
getInternalWorkingMemory
public InternalWorkingMemory getInternalWorkingMemory()
- Specified by:
getInternalWorkingMemory
in interfaceWorkingMemoryEntryPoint
-
getFactHandleByIdentity
public org.kie.api.runtime.rule.FactHandle getFactHandleByIdentity(Object object)
- Specified by:
getFactHandleByIdentity
in interfaceWorkingMemoryEntryPoint
-
reset
public void reset()
- Specified by:
reset
in interfaceWorkingMemoryEntryPoint
-
getObjectStore
public ObjectStore getObjectStore()
- Specified by:
getObjectStore
in interfaceWorkingMemoryEntryPoint
-
getHandleFactory
public FactHandleFactory getHandleFactory()
- Specified by:
getHandleFactory
in interfaceWorkingMemoryEntryPoint
-
getEntryPointNode
public EntryPointNode getEntryPointNode()
- Specified by:
getEntryPointNode
in interfaceWorkingMemoryEntryPoint
-
-