Class SyslogDestination

    • Constructor Detail

      • SyslogDestination

        public SyslogDestination()
        Instantiates a new Syslog destination.
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Destination
        Gets the destination name.
        Specified by:
        getName in interface Destination
        Returns:
        the destination name
      • setName

        public void setName​(String name)
        Sets the name.
        Parameters:
        name - the new name
      • getHost

        public String getHost()
        Gets the host.
        Returns:
        the host
      • setHost

        public void setHost​(String m_host)
        Sets the host.
        Parameters:
        m_host - the new host
      • getPort

        public Integer getPort()
        Gets the port.
        Returns:
        the port
      • setPort

        public void setPort​(Integer m_port)
        Sets the port.
        Parameters:
        m_port - the new port
      • getCharSet

        public String getCharSet()
        Gets the char set.
        Returns:
        the char set
      • setCharSet

        public void setCharSet​(String charSet)
        Sets the char set.
        Parameters:
        charSet - the new char set
      • getMaxMessageLength

        public Integer getMaxMessageLength()
        Gets the max message length.
        Returns:
        the max message length
      • setMaxMessageLength

        public void setMaxMessageLength​(Integer maxMessageLength)
        Sets the max message length.
        Parameters:
        maxMessageLength - the new max message length
      • isSendLocalName

        public Boolean isSendLocalName()
        Checks if is send local name flag.
        Returns:
        true, if is send local name flag
      • setSendLocalName

        public void setSendLocalName​(Boolean sendLocalName)
        Sets the send local name flag.
        Parameters:
        sendLocalName - the new send local name flag
      • isSendLocalTime

        public Boolean isSendLocalTime()
        Checks if is send local time flag.
        Returns:
        true, if is send local time flag
      • setSendLocalTime

        public void setSendLocalTime​(Boolean sendLocalTime)
        Sets the send local time flag.
        Parameters:
        sendLocalTime - the new send local time flag
      • isTruncateMessage

        public Boolean isTruncateMessage()
        Checks if is truncate message flag.
        Returns:
        true, if is truncate message flag
      • setTruncateMessage

        public void setTruncateMessage​(Boolean truncateMessage)
        Sets the truncate message flag.
        Parameters:
        truncateMessage - the new truncate message flag
      • isFirstOccurrenceOnly

        public boolean isFirstOccurrenceOnly()
        Description copied from interface: Destination
        Checks if is first occurrence only.
        Specified by:
        isFirstOccurrenceOnly in interface Destination
        Returns:
        true, if is first occurrence only
      • setFirstOccurrenceOnly

        public void setFirstOccurrenceOnly​(Boolean firstOccurrenceOnly)
        Sets the first occurrence only.
        Parameters:
        firstOccurrenceOnly - the new first occurrence only
      • getFilters

        public List<SyslogFilter> getFilters()
        Gets the filters.
        Returns:
        the filters
      • setFilters

        public void setFilters​(List<SyslogFilter> filters)
        Sets the filters.
        Parameters:
        filters - the new filters
      • passFilter

        public boolean passFilter​(NorthboundAlarm alarm)
        Pass filter.

        If the destination doesn't have filter, the method will return true.

        If the method has filters, they will be evaluated. If no filters are satisfied, the method will return false. Otherwise, the method will return true as soon as one filter is satisfied.

        Parameters:
        alarm - the alarm
        Returns:
        true, if successful
      • getCustomMessageFormat

        public String getCustomMessageFormat​(NorthboundAlarm alarm)
        Gets the custom message format.
        Parameters:
        alarm - the alarm
        Returns:
        the custom message format