public class DefaultRuleCompilationContext extends java.lang.Object implements RuleCompilationContext
RuleCompilationContext interface| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
WORKER_PRE_DESTROY_TIMEOUT |
| Constructor and Description |
|---|
DefaultRuleCompilationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(java.lang.String moduleName)
Clean up the context (usually called before the object destroy)
|
protected ConcurrentMapFactory |
getConcurrentMapFactory() |
protected ConfigurationService |
getConfigurationService() |
Tenant |
getCurrentTenant()
Get the currently active tenant
|
protected EventService |
getEventService() |
java.lang.Long |
getNextRuleEngineRuleVersion(java.lang.String moduleName)
get the next available rule version for the module
|
int |
getNumberOfThreads()
get the maximum number of threads to allocate for multi-thread execution
|
RuleCompilerService |
getRuleCompilerService()
get the instance of
RuleCompilerService |
protected RuleEngineSpliteratorStrategy |
getRuleEngineSpliteratorStrategy() |
protected RulesModuleDao |
getRulesModuleDao() |
SuspendResumeTaskManager |
getSuspendResumeTaskManager()
get the suspend/resume task manager
|
java.util.concurrent.ThreadFactory |
getThreadFactory()
get the thread factory to be used for creating the tenant-aware threads
|
java.lang.Long |
getThreadTimeout()
get the thread pre-destroy timeout
|
void |
registerCompilationListeners(java.lang.String moduleName)
register aplication listeners related to rule compilation process
|
java.util.concurrent.atomic.AtomicLong |
resetRuleEngineRuleVersion(java.lang.String moduleName)
Resets the compilation context version to the value associated with rules module
|
void |
setConcurrentMapFactory(ConcurrentMapFactory concurrentMapFactory) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setCurrentTenant(Tenant currentTenant) |
void |
setEventService(EventService eventService) |
void |
setRuleCompilerService(RuleCompilerService ruleCompilerService) |
void |
setRuleEngineSpliteratorStrategy(RuleEngineSpliteratorStrategy ruleEngineSpliteratorStrategy) |
void |
setRulesModuleDao(RulesModuleDao rulesModuleDao) |
void |
setSuspendResumeTaskManager(SuspendResumeTaskManager suspendResumeTaskManager) |
void |
setThreadFactory(java.util.concurrent.ThreadFactory threadFactory) |
void |
setUp() |
public static final java.lang.String WORKER_PRE_DESTROY_TIMEOUT
public Tenant getCurrentTenant()
TaskContextgetCurrentTenant in interface TaskContextpublic java.util.concurrent.ThreadFactory getThreadFactory()
TaskContextgetThreadFactory in interface TaskContextpublic RuleCompilerService getRuleCompilerService()
RuleCompilationContextRuleCompilerServicegetRuleCompilerService in interface RuleCompilationContextRuleCompilerServicepublic int getNumberOfThreads()
TaskContextgetNumberOfThreads in interface TaskContextpublic java.lang.Long getThreadTimeout()
TaskContextgetThreadTimeout in interface TaskContextpublic java.util.concurrent.atomic.AtomicLong resetRuleEngineRuleVersion(java.lang.String moduleName)
RuleCompilationContextresetRuleEngineRuleVersion in interface RuleCompilationContextmoduleName - the module name for the series of rules to compileAtomicLong keeping the module rules versionpublic java.lang.Long getNextRuleEngineRuleVersion(java.lang.String moduleName)
RuleCompilationContextgetNextRuleEngineRuleVersion in interface RuleCompilationContextmoduleName - the module name for the series of rules to compilepublic void cleanup(java.lang.String moduleName)
RuleCompilationContextcleanup in interface RuleCompilationContextmoduleName - the rules module name to be monitored by listenerspublic void registerCompilationListeners(java.lang.String moduleName)
RuleCompilationContextregisterCompilationListeners in interface RuleCompilationContextmoduleName - the rules module name to be monitored by listeners@PostConstruct public void setUp()
public void setCurrentTenant(Tenant currentTenant)
public void setThreadFactory(java.util.concurrent.ThreadFactory threadFactory)
public void setRuleCompilerService(RuleCompilerService ruleCompilerService)
public void setConfigurationService(ConfigurationService configurationService)
protected ConfigurationService getConfigurationService()
protected RuleEngineSpliteratorStrategy getRuleEngineSpliteratorStrategy()
public void setRuleEngineSpliteratorStrategy(RuleEngineSpliteratorStrategy ruleEngineSpliteratorStrategy)
protected RulesModuleDao getRulesModuleDao()
public void setRulesModuleDao(RulesModuleDao rulesModuleDao)
protected EventService getEventService()
public void setEventService(EventService eventService)
protected ConcurrentMapFactory getConcurrentMapFactory()
public void setConcurrentMapFactory(ConcurrentMapFactory concurrentMapFactory)
public SuspendResumeTaskManager getSuspendResumeTaskManager()
RuleCompilationContextgetSuspendResumeTaskManager in interface RuleCompilationContextSuspendResumeTaskManagerpublic void setSuspendResumeTaskManager(SuspendResumeTaskManager suspendResumeTaskManager)
Copyright © 2018 SAP SE. All Rights Reserved.