public class DefaultIncrementalRuleEngineUpdateStrategy extends java.lang.Object implements IncrementalRuleEngineUpdateStrategy
IncrementalRuleEngineUpdateStrategy interface| Constructor and Description |
|---|
DefaultIncrementalRuleEngineUpdateStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected EngineRulesRepository |
getEngineRulesRepository() |
protected float |
getFractionOfRulesThreshold() |
protected int |
getTotalNumOfRulesThreshold() |
void |
setEngineRulesRepository(EngineRulesRepository engineRulesRepository) |
void |
setFractionOfRulesThreshold(float fractionOfRulesThreshold) |
void |
setTotalNumOfRulesThreshold(int totalNumOfRulesThreshold) |
boolean |
shouldUpdateIncrementally(ReleaseId releaseId,
java.lang.String moduleName,
java.util.Collection<DroolsRuleModel> rulesToAdd,
java.util.Collection<DroolsRuleModel> rulesToRemove)
Given the rules module and the list (per kie base) of rules to add and remove, returns true if the incremental update would
be the better strategy, false otherwise
|
public DefaultIncrementalRuleEngineUpdateStrategy()
public boolean shouldUpdateIncrementally(ReleaseId releaseId,
java.lang.String moduleName,
java.util.Collection<DroolsRuleModel> rulesToAdd,
java.util.Collection<DroolsRuleModel> rulesToRemove)
IncrementalRuleEngineUpdateStrategyshouldUpdateIncrementally in interface IncrementalRuleEngineUpdateStrategyreleaseId - instance of currently deployed kie container ReleaseIdmoduleName - name of the rules modulerulesToAdd - collection of drool rules to be added or updatedrulesToRemove - collection of drool rules to be removedprotected EngineRulesRepository getEngineRulesRepository()
public void setEngineRulesRepository(EngineRulesRepository engineRulesRepository)
protected int getTotalNumOfRulesThreshold()
public void setTotalNumOfRulesThreshold(int totalNumOfRulesThreshold)
protected float getFractionOfRulesThreshold()
public void setFractionOfRulesThreshold(float fractionOfRulesThreshold)
Copyright © 2018 SAP SE. All Rights Reserved.