Class DefaultIncrementalRuleEngineUpdateStrategy

    • Constructor Detail

      • DefaultIncrementalRuleEngineUpdateStrategy

        public DefaultIncrementalRuleEngineUpdateStrategy()
    • Method Detail

      • shouldUpdateIncrementally

        public boolean shouldUpdateIncrementally​(org.kie.api.builder.ReleaseId releaseId,
                                                 java.lang.String moduleName,
                                                 java.util.Collection<DroolsRuleModel> rulesToAdd,
                                                 java.util.Collection<DroolsRuleModel> rulesToRemove)
        Description copied from interface: IncrementalRuleEngineUpdateStrategy
        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
        Specified by:
        shouldUpdateIncrementally in interface IncrementalRuleEngineUpdateStrategy
        Parameters:
        releaseId - instance of currently deployed kie container ReleaseId
        moduleName - name of the rules module
        rulesToAdd - collection of drool rules to be added or updated
        rulesToRemove - collection of drool rules to be removed
        Returns:
        true if the incremental rule engine update should be applied, false otherwise
      • setEngineRulesRepository

        public void setEngineRulesRepository​(EngineRulesRepository engineRulesRepository)
      • getTotalNumOfRulesThreshold

        protected int getTotalNumOfRulesThreshold()
      • setTotalNumOfRulesThreshold

        public void setTotalNumOfRulesThreshold​(int totalNumOfRulesThreshold)
      • getFractionOfRulesThreshold

        protected float getFractionOfRulesThreshold()
      • setFractionOfRulesThreshold

        public void setFractionOfRulesThreshold​(float fractionOfRulesThreshold)