Class SyslogFilter


  • public class SyslogFilter
    extends java.lang.Object
    Configuration for the various filters to change the behavior of the forwarder.
    Author:
    Alejandro Galue
    • Constructor Summary

      Constructors 
      Constructor Description
      SyslogFilter()
      Instantiates a new Syslog filter.
      SyslogFilter​(java.lang.String name, java.lang.String rule, java.lang.String messageFormat)
      Instantiates a new Syslog filter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessageFormat()
      Gets the message format.
      java.lang.String getName()
      Gets the filter name.
      java.lang.String getRule()
      Gets the filter rule.
      java.lang.Boolean isEnabled()
      Checks if the rule is enabled.
      boolean passFilter​(NorthboundAlarm alarm)
      Pass filter.
      void setEnabled​(java.lang.Boolean enabled)
      Sets the enabled flag.
      void setMessageFormat​(java.lang.String messageFormat)
      Sets the message format.
      void setName​(java.lang.String name)
      Sets the filter name.
      void setRule​(java.lang.String rule)
      Sets the filter rule.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SyslogFilter

        public SyslogFilter()
        Instantiates a new Syslog filter.
      • SyslogFilter

        public SyslogFilter​(java.lang.String name,
                            java.lang.String rule,
                            java.lang.String messageFormat)
        Instantiates a new Syslog filter.
        Parameters:
        name - the name
        rule - the rule
        messageFormat - the message format
    • Method Detail

      • isEnabled

        public java.lang.Boolean isEnabled()
        Checks if the rule is enabled.
        Returns:
        true, if is enabled
      • getName

        public java.lang.String getName()
        Gets the filter name.
        Returns:
        the filter name
      • getRule

        public java.lang.String getRule()
        Gets the filter rule.
        Returns:
        the filter rule
      • getMessageFormat

        public java.lang.String getMessageFormat()
        Gets the message format.
        Returns:
        the message format
      • setEnabled

        public void setEnabled​(java.lang.Boolean enabled)
        Sets the enabled flag.
        Parameters:
        enabled - the new enabled
      • setName

        public void setName​(java.lang.String name)
        Sets the filter name.
        Parameters:
        name - the new name
      • setRule

        public void setRule​(java.lang.String rule)
        Sets the filter rule.
        Parameters:
        rule - the rule
      • setMessageFormat

        public void setMessageFormat​(java.lang.String messageFormat)
        Sets the message format.
        Parameters:
        messageFormat - the new message format
      • passFilter

        public boolean passFilter​(NorthboundAlarm alarm)
        Pass filter.
        Parameters:
        alarm - the alarm
        Returns:
        true, if successful