Class EngineConfiguration

  • All Implemented Interfaces:
    Serializable

    public class EngineConfiguration
    extends Object
    implements Serializable
    The top-level element of the drools-engine.xml configuration file.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Detail

      • EngineConfiguration

        public EngineConfiguration()
    • Method Detail

      • enumerateRuleSet

        public Enumeration<RuleSet> enumerateRuleSet()
        Method enumerateRuleSet.
        Returns:
        an Enumeration over all possible elements of this collection
      • getRuleSet

        public RuleSet[] getRuleSet()
        Method getRuleSet.Returns the contents of the collection in an Array.

        Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

        Returns:
        this collection as an Array
      • getRuleSetCollection

        public List<RuleSet> getRuleSetCollection()
        Method getRuleSetCollection.Returns a reference to '_ruleSetList'. No type checking is performed on any modifications to the Vector.
        Returns:
        a reference to the Vector backing this class
      • getRuleSetCount

        public int getRuleSetCount()
        Method getRuleSetCount.
        Returns:
        the size of this collection
      • iterateRuleSet

        public Iterator<RuleSet> iterateRuleSet()
        Method iterateRuleSet.
        Returns:
        an Iterator over all possible elements in this collection
      • removeAllRuleSet

        public void removeAllRuleSet()
      • removeRuleSet

        public boolean removeRuleSet​(RuleSet vRuleSet)
        Method removeRuleSet.
        Parameters:
        vRuleSet -
        Returns:
        true if the object was removed from the collection.
      • removeRuleSetAt

        public RuleSet removeRuleSetAt​(int index)
        Method removeRuleSetAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • setRuleSet

        public void setRuleSet​(RuleSet[] vRuleSetArray)
        Parameters:
        vRuleSetArray -
      • setRuleSet

        public void setRuleSet​(List<RuleSet> vRuleSetList)
        Sets the value of '_ruleSetList' by copying the given Vector. All elements will be checked for type safety.
        Parameters:
        vRuleSetList - the Vector to copy.
      • setRuleSetCollection

        public void setRuleSetCollection​(List<RuleSet> ruleSetList)
        Deprecated.
        Sets the value of '_ruleSetList' by setting it to the given Vector. No type checking is performed.
        Parameters:
        ruleSetList - the Vector to set.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • constructEngines

        public CorrelationEngine[] constructEngines​(org.springframework.core.io.Resource basePath,
                                                    org.springframework.context.ApplicationContext appContext,
                                                    EventIpcManager eventIpcManager,
                                                    com.codahale.metrics.MetricRegistry metricRegistry)
      • constructEngine

        public CorrelationEngine constructEngine​(org.springframework.core.io.Resource basePath,
                                                 org.springframework.context.ApplicationContext appContext,
                                                 EventIpcManager eventIpcManager,
                                                 com.codahale.metrics.MetricRegistry metricRegistry,
                                                 String engineName)