Package org.drools.persistence
Class PersistableRunner
- java.lang.Object
-
- org.drools.persistence.PersistableRunner
-
- All Implemented Interfaces:
org.drools.commands.InternalLocalRunner
,org.drools.commands.SingleSessionCommandService
,org.kie.api.runtime.CommandExecutor
,org.kie.api.runtime.ExecutableRunner<org.kie.api.runtime.RequestContext>
public class PersistableRunner extends java.lang.Object implements org.drools.commands.SingleSessionCommandService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PersistableRunner.CommandBasedEntryPointCreator
static class
PersistableRunner.EndOperationListenerImpl
class
PersistableRunner.JpaSessionInitializer
-
Constructor Summary
Constructors Constructor Description PersistableRunner(java.lang.Long sessionId, org.kie.api.KieBase kbase, org.kie.api.runtime.KieSessionConfiguration conf, org.kie.api.runtime.Environment env)
PersistableRunner(org.kie.api.KieBase kbase, org.kie.api.runtime.KieSessionConfiguration conf, org.kie.api.runtime.Environment env)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInterceptor(org.drools.commands.ChainableRunner interceptor)
protected void
addInterceptor(org.drools.commands.ChainableRunner interceptor, boolean store)
void
checkEnvironment(org.kie.api.runtime.Environment env)
org.kie.api.runtime.RequestContext
createContext()
void
destroy()
void
dispose()
org.kie.api.runtime.RequestContext
execute(org.kie.api.runtime.Executable executable, org.kie.api.runtime.RequestContext ctx)
org.drools.commands.ChainableRunner
getChainableRunner()
org.kie.api.runtime.KieSession
getKieSession()
java.lang.Long
getSessionId()
protected void
initExistingKnowledgeSession(java.lang.Long sessionId, org.kie.api.KieBase kbase, org.kie.api.runtime.KieSessionConfiguration conf, org.drools.persistence.api.PersistenceContext persistenceContext)
protected void
initNewKnowledgeSession(org.kie.api.KieBase kbase, org.kie.api.runtime.KieSessionConfiguration conf)
void
initTransactionManager(org.kie.api.runtime.Environment env)
static boolean
isSpringTransactionManager(java.lang.Class<?> clazz)
-
-
-
Constructor Detail
-
PersistableRunner
public PersistableRunner(org.kie.api.KieBase kbase, org.kie.api.runtime.KieSessionConfiguration conf, org.kie.api.runtime.Environment env)
-
PersistableRunner
public PersistableRunner(java.lang.Long sessionId, org.kie.api.KieBase kbase, org.kie.api.runtime.KieSessionConfiguration conf, org.kie.api.runtime.Environment env)
-
-
Method Detail
-
checkEnvironment
public void checkEnvironment(org.kie.api.runtime.Environment env)
-
initNewKnowledgeSession
protected void initNewKnowledgeSession(org.kie.api.KieBase kbase, org.kie.api.runtime.KieSessionConfiguration conf)
-
initExistingKnowledgeSession
protected void initExistingKnowledgeSession(java.lang.Long sessionId, org.kie.api.KieBase kbase, org.kie.api.runtime.KieSessionConfiguration conf, org.drools.persistence.api.PersistenceContext persistenceContext)
-
initTransactionManager
public void initTransactionManager(org.kie.api.runtime.Environment env)
-
isSpringTransactionManager
public static boolean isSpringTransactionManager(java.lang.Class<?> clazz)
-
createContext
public org.kie.api.runtime.RequestContext createContext()
- Specified by:
createContext
in interfaceorg.kie.api.runtime.ExecutableRunner<org.kie.api.runtime.RequestContext>
-
getChainableRunner
public org.drools.commands.ChainableRunner getChainableRunner()
-
execute
public org.kie.api.runtime.RequestContext execute(org.kie.api.runtime.Executable executable, org.kie.api.runtime.RequestContext ctx)
- Specified by:
execute
in interfaceorg.kie.api.runtime.ExecutableRunner<org.kie.api.runtime.RequestContext>
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.drools.commands.SingleSessionCommandService
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceorg.drools.commands.SingleSessionCommandService
-
getSessionId
public java.lang.Long getSessionId()
- Specified by:
getSessionId
in interfaceorg.drools.commands.SingleSessionCommandService
-
getKieSession
public org.kie.api.runtime.KieSession getKieSession()
- Specified by:
getKieSession
in interfaceorg.drools.commands.SingleSessionCommandService
-
addInterceptor
public void addInterceptor(org.drools.commands.ChainableRunner interceptor)
-
addInterceptor
protected void addInterceptor(org.drools.commands.ChainableRunner interceptor, boolean store)
-
-