Class 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
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.drools.commands.InternalLocalRunner

        execute, execute, execute
    • 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 interface org.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 interface org.kie.api.runtime.ExecutableRunner<org.kie.api.runtime.RequestContext>
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.drools.commands.SingleSessionCommandService
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.drools.commands.SingleSessionCommandService
      • getSessionId

        public java.lang.Long getSessionId()
        Specified by:
        getSessionId in interface org.drools.commands.SingleSessionCommandService
      • getKieSession

        public org.kie.api.runtime.KieSession getKieSession()
        Specified by:
        getKieSession in interface org.drools.commands.SingleSessionCommandService
      • addInterceptor

        public void addInterceptor​(org.drools.commands.ChainableRunner interceptor)
      • addInterceptor

        protected void addInterceptor​(org.drools.commands.ChainableRunner interceptor,
                                      boolean store)