Class RuleSet

    • Constructor Detail

      • RuleSet

        public RuleSet()
    • Method Detail

      • getAssertBehaviour

        public String getAssertBehaviour()
      • setAssertBehaviour

        public void setAssertBehaviour​(String assertBehaviour)
      • getEventProcessingMode

        public String getEventProcessingMode()
      • setEventProcessingMode

        public void setEventProcessingMode​(String eventProcessingMode)
      • getPersistState

        public Boolean getPersistState()
      • setPersistState

        public void setPersistState​(Boolean persistState)
      • enumerateEvent

        public Enumeration<String> enumerateEvent()
        Method enumerateEvent.
        Returns:
        an Enumeration over all possible elements of this collection
      • enumerateGlobal

        public Enumeration<Global> enumerateGlobal()
        Method enumerateGlobal.
        Returns:
        an Enumeration over all possible elements of this collection
      • enumerateRuleFile

        public Enumeration<String> enumerateRuleFile()
        Method enumerateRuleFile.
        Returns:
        an Enumeration over all possible elements of this collection
      • getAppContext

        public String getAppContext()
        Returns the value of field 'appContext'.
        Returns:
        the value of field 'AppContext'.
      • getEvent

        public String[] getEvent()
        Method getEvent.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
      • getEventCollection

        public List<String> getEventCollection()
        Method getEventCollection.Returns a reference to '_eventList'. No type checking is performed on any modifications to the Vector.
        Returns:
        a reference to the Vector backing this class
      • getEventCount

        public int getEventCount()
        Method getEventCount.
        Returns:
        the size of this collection
      • getGlobal

        public Global[] getGlobal()
        Method getGlobal.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
      • getGlobalCollection

        public List<Global> getGlobalCollection()
        Method getGlobalCollection.Returns a reference to '_globalList'. No type checking is performed on any modifications to the Vector.
        Returns:
        a reference to the Vector backing this class
      • getGlobalCount

        public int getGlobalCount()
        Method getGlobalCount.
        Returns:
        the size of this collection
      • getName

        public String getName()
        Returns the value of field 'name'.
        Returns:
        the value of field 'Name'.
      • getRuleFile

        public String[] getRuleFile()
        Method getRuleFile.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
      • getRuleFileCollection

        public List<String> getRuleFileCollection()
        Method getRuleFileCollection.Returns a reference to '_ruleFileList'. No type checking is performed on any modifications to the Vector.
        Returns:
        a reference to the Vector backing this class
      • getRuleFileCount

        public int getRuleFileCount()
        Method getRuleFileCount.
        Returns:
        the size of this collection
      • iterateEvent

        public Iterator<String> iterateEvent()
        Method iterateEvent.
        Returns:
        an Iterator over all possible elements in this collection
      • iterateGlobal

        public Iterator<Global> iterateGlobal()
        Method iterateGlobal.
        Returns:
        an Iterator over all possible elements in this collection
      • iterateRuleFile

        public Iterator<String> iterateRuleFile()
        Method iterateRuleFile.
        Returns:
        an Iterator over all possible elements in this collection
      • removeAllEvent

        public void removeAllEvent()
      • removeAllGlobal

        public void removeAllGlobal()
      • removeAllRuleFile

        public void removeAllRuleFile()
      • removeEvent

        public boolean removeEvent​(String vEvent)
        Method removeEvent.
        Parameters:
        vEvent -
        Returns:
        true if the object was removed from the collection.
      • removeEventAt

        public String removeEventAt​(int index)
        Method removeEventAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • removeGlobal

        public boolean removeGlobal​(Global vGlobal)
        Method removeGlobal.
        Parameters:
        vGlobal -
        Returns:
        true if the object was removed from the collection.
      • removeGlobalAt

        public Global removeGlobalAt​(int index)
        Method removeGlobalAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • removeRuleFile

        public boolean removeRuleFile​(String vRuleFile)
        Method removeRuleFile.
        Parameters:
        vRuleFile -
        Returns:
        true if the object was removed from the collection.
      • removeRuleFileAt

        public String removeRuleFileAt​(int index)
        Method removeRuleFileAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • setAppContext

        public void setAppContext​(String appContext)
        Sets the value of field 'appContext'.
        Parameters:
        appContext - the value of field 'appContext'.
      • setEvent

        public void setEvent​(String[] vEventArray)
        Parameters:
        vEventArray -
      • setEvent

        public void setEvent​(List<String> vEventList)
        Sets the value of '_eventList' by copying the given Vector. All elements will be checked for type safety.
        Parameters:
        vEventList - the Vector to copy.
      • setEventCollection

        public void setEventCollection​(List<String> eventList)
        Deprecated.
        Sets the value of '_eventList' by setting it to the given Vector. No type checking is performed.
        Parameters:
        eventList - the Vector to set.
      • setGlobal

        public void setGlobal​(Global[] vGlobalArray)
        Parameters:
        vGlobalArray -
      • setGlobal

        public void setGlobal​(List<Global> vGlobalList)
        Sets the value of '_globalList' by copying the given Vector. All elements will be checked for type safety.
        Parameters:
        vGlobalList - the Vector to copy.
      • setGlobalCollection

        public void setGlobalCollection​(List<Global> globalList)
        Deprecated.
        Sets the value of '_globalList' by setting it to the given Vector. No type checking is performed.
        Parameters:
        globalList - the Vector to set.
      • setName

        public void setName​(String name)
        Sets the value of field 'name'.
        Parameters:
        name - the value of field 'name'.
      • setRuleFile

        public void setRuleFile​(String[] vRuleFileArray)
        Parameters:
        vRuleFileArray -
      • setRuleFile

        public void setRuleFile​(List<String> vRuleFileList)
        Sets the value of '_ruleFileList' by copying the given Vector. All elements will be checked for type safety.
        Parameters:
        vRuleFileList - the Vector to copy.
      • setRuleFileCollection

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

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

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

        public Map<String,​Object> getGlobals​(org.springframework.context.ApplicationContext context)
      • getInterestingEvents

        public List<String> getInterestingEvents()
      • getResource

        public org.springframework.core.io.Resource getResource​(org.springframework.core.io.ResourceLoader resourceLoader,
                                                                String resourcePath)
      • getRuleResources

        public List<org.springframework.core.io.Resource> getRuleResources​(org.springframework.core.io.ResourceLoader resourceLoader)
      • getConfigLocation

        public String getConfigLocation()