org.drools.persistence
Class SingleSessionCommandService

java.lang.Object
  extended by org.drools.persistence.SingleSessionCommandService
All Implemented Interfaces:
CommandService, SingleSessionCommandService, org.drools.runtime.CommandExecutor

public class SingleSessionCommandService
extends Object
implements SingleSessionCommandService


Nested Class Summary
static class SingleSessionCommandService.EndOperationListenerImpl
           
 
Field Summary
static Map<Object,Object> txManagerClasses
           
 
Constructor Summary
SingleSessionCommandService(Integer sessionId, org.drools.KnowledgeBase kbase, org.drools.runtime.KnowledgeSessionConfiguration conf, org.drools.runtime.Environment env)
           
SingleSessionCommandService(Integer sessionId, RuleBase ruleBase, SessionConfiguration conf, org.drools.runtime.Environment env)
           
SingleSessionCommandService(org.drools.KnowledgeBase kbase, org.drools.runtime.KnowledgeSessionConfiguration conf, org.drools.runtime.Environment env)
           
SingleSessionCommandService(RuleBase ruleBase, SessionConfiguration conf, org.drools.runtime.Environment env)
           
 
Method Summary
 void checkEnvironment(org.drools.runtime.Environment env)
           
 void dispose()
           
<T> T
execute(org.drools.command.Command<T> command)
           
 Context getContext()
           
 int getSessionId()
           
 void initKsession(Integer sessionId, org.drools.KnowledgeBase kbase, org.drools.runtime.KnowledgeSessionConfiguration conf)
           
 void initTransactionManager(org.drools.runtime.Environment env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

txManagerClasses

public static Map<Object,Object> txManagerClasses
Constructor Detail

SingleSessionCommandService

public SingleSessionCommandService(RuleBase ruleBase,
                                   SessionConfiguration conf,
                                   org.drools.runtime.Environment env)

SingleSessionCommandService

public SingleSessionCommandService(Integer sessionId,
                                   RuleBase ruleBase,
                                   SessionConfiguration conf,
                                   org.drools.runtime.Environment env)

SingleSessionCommandService

public SingleSessionCommandService(org.drools.KnowledgeBase kbase,
                                   org.drools.runtime.KnowledgeSessionConfiguration conf,
                                   org.drools.runtime.Environment env)

SingleSessionCommandService

public SingleSessionCommandService(Integer sessionId,
                                   org.drools.KnowledgeBase kbase,
                                   org.drools.runtime.KnowledgeSessionConfiguration conf,
                                   org.drools.runtime.Environment env)
Method Detail

checkEnvironment

public void checkEnvironment(org.drools.runtime.Environment env)

initKsession

public void initKsession(Integer sessionId,
                         org.drools.KnowledgeBase kbase,
                         org.drools.runtime.KnowledgeSessionConfiguration conf)

initTransactionManager

public void initTransactionManager(org.drools.runtime.Environment env)

getContext

public Context getContext()
Specified by:
getContext in interface CommandService

execute

public <T> T execute(org.drools.command.Command<T> command)
Specified by:
execute in interface org.drools.runtime.CommandExecutor

dispose

public void dispose()
Specified by:
dispose in interface SingleSessionCommandService

getSessionId

public int getSessionId()
Specified by:
getSessionId in interface SingleSessionCommandService


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.