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 voiddelete(org.kie.api.runtime.rule.FactHandle handle)voiddelete(org.kie.api.runtime.rule.FactHandle factHandle, RuleImpl rule, TerminalNode terminalNode)voiddelete(org.kie.api.runtime.rule.FactHandle factHandle, RuleImpl rule, TerminalNode terminalNode, org.kie.api.runtime.rule.FactHandle.State fhState)voiddelete(org.kie.api.runtime.rule.FactHandle handle, org.kie.api.runtime.rule.FactHandle.State fhState)voiddispose()Internal method called by the engine when the session is being disposed, so that the entry point can proceed with the necessary clean ups.EntryPointIdgetEntryPoint()StringgetEntryPointId()EntryPointNodegetEntryPointNode()longgetFactCount()org.kie.api.runtime.rule.FactHandlegetFactHandle(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)FactHandleFactorygetHandleFactory()RuleBasegetKnowledgeBase()ObjectgetObject(org.kie.api.runtime.rule.FactHandle factHandle)Collection<? extends Object>getObjects()Collection<? extends Object>getObjects(org.kie.api.runtime.ObjectFilter filter)ObjectStoregetObjectStore()ObjectTypeConfigurationRegistrygetObjectTypeConfigurationRegistry()ReteEvaluatorgetReteEvaluator()TruthMaintenanceSystemgetTruthMaintenanceSystem()org.kie.api.runtime.rule.FactHandleinsert(Object object)org.kie.api.runtime.rule.FactHandleinsert(Object object, boolean dynamic)Insert a fact registering JavaBeanPropertyChangeListenerson the Object to automatically triggerupdatecalls ifdynamicistrue.voidreset()voidretract(org.kie.api.runtime.rule.FactHandle handle)voidupdate(org.kie.api.runtime.rule.FactHandle handle, Object object)voidupdate(org.kie.api.runtime.rule.FactHandle handle, Object object, String... modifiedProperties)voidupdate(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:
getEntryPointIdin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getEntryPoint
public EntryPointId getEntryPoint()
- Specified by:
getEntryPointin interfaceWorkingMemoryEntryPoint
-
getReteEvaluator
public ReteEvaluator getReteEvaluator()
- Specified by:
getReteEvaluatorin interfaceWorkingMemoryEntryPoint
-
getFactCount
public long getFactCount()
- Specified by:
getFactCountin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getFactHandle
public org.kie.api.runtime.rule.FactHandle getFactHandle(Object object)
- Specified by:
getFactHandlein interfaceorg.kie.api.runtime.rule.EntryPoint
-
getFactHandles
public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
- Specified by:
getFactHandlesin 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:
getFactHandlesin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getObject
public Object getObject(org.kie.api.runtime.rule.FactHandle factHandle)
- Specified by:
getObjectin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getObjects
public Collection<? extends Object> getObjects()
- Specified by:
getObjectsin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getObjects
public Collection<? extends Object> getObjects(org.kie.api.runtime.ObjectFilter filter)
- Specified by:
getObjectsin interfaceorg.kie.api.runtime.rule.EntryPoint
-
insert
public org.kie.api.runtime.rule.FactHandle insert(Object object)
- Specified by:
insertin interfaceorg.kie.api.runtime.rule.EntryPoint
-
insert
public org.kie.api.runtime.rule.FactHandle insert(Object object, boolean dynamic)
Description copied from interface:WorkingMemoryEntryPointInsert a fact registering JavaBeanPropertyChangeListenerson the Object to automatically triggerupdatecalls ifdynamicistrue.- Specified by:
insertin interfaceWorkingMemoryEntryPoint- Parameters:
object- The fact object.dynamic- true if Drools should add JavaBeanPropertyChangeListenersto the object.- Returns:
- The new fact-handle associated with the object.
-
retract
public void retract(org.kie.api.runtime.rule.FactHandle handle)
- Specified by:
retractin interfaceorg.kie.api.runtime.rule.EntryPoint
-
delete
public void delete(org.kie.api.runtime.rule.FactHandle handle)
- Specified by:
deletein 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:
deletein interfaceorg.kie.api.runtime.rule.EntryPoint
-
update
public void update(org.kie.api.runtime.rule.FactHandle handle, Object object)- Specified by:
updatein interfaceorg.kie.api.runtime.rule.EntryPoint
-
update
public void update(org.kie.api.runtime.rule.FactHandle handle, Object object, String... modifiedProperties)- Specified by:
updatein interfaceorg.kie.api.runtime.rule.EntryPoint
-
dispose
public void dispose()
Description copied from interface:WorkingMemoryEntryPointInternal 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:
disposein interfaceWorkingMemoryEntryPoint
-
getObjectTypeConfigurationRegistry
public ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry()
- Specified by:
getObjectTypeConfigurationRegistryin interfaceWorkingMemoryEntryPoint
-
getKnowledgeBase
public RuleBase getKnowledgeBase()
- Specified by:
getKnowledgeBasein interfaceWorkingMemoryEntryPoint
-
delete
public void delete(org.kie.api.runtime.rule.FactHandle factHandle, RuleImpl rule, TerminalNode terminalNode)- Specified by:
deletein 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:
deletein interfaceWorkingMemoryEntryPoint
-
update
public void update(org.kie.api.runtime.rule.FactHandle handle, Object object, BitMask mask, Class<?> modifiedClass, Activation activation)- Specified by:
updatein interfaceWorkingMemoryEntryPoint
-
getTruthMaintenanceSystem
public TruthMaintenanceSystem getTruthMaintenanceSystem()
- Specified by:
getTruthMaintenanceSystemin interfaceWorkingMemoryEntryPoint
-
reset
public void reset()
- Specified by:
resetin interfaceWorkingMemoryEntryPoint
-
getObjectStore
public ObjectStore getObjectStore()
- Specified by:
getObjectStorein interfaceWorkingMemoryEntryPoint
-
getHandleFactory
public FactHandleFactory getHandleFactory()
- Specified by:
getHandleFactoryin interfaceWorkingMemoryEntryPoint
-
getEntryPointNode
public EntryPointNode getEntryPointNode()
- Specified by:
getEntryPointNodein interfaceWorkingMemoryEntryPoint
-
-