Class AlarmUtil


  • public abstract class AlarmUtil
    extends java.lang.Object

    Abstract AlarmUtil class.

    Since:
    1.8.1
    Version:
    $Id: $
    Author:
    ranger
    • Field Detail

      • ANY_SERVICES_OPTION

        public static final java.lang.String ANY_SERVICES_OPTION
        Constant ANY_SERVICES_OPTION="Any"
        See Also:
        Constant Field Values
      • ANY_SEVERITIES_OPTION

        public static final java.lang.String ANY_SEVERITIES_OPTION
        Constant ANY_SEVERITIES_OPTION="Any"
        See Also:
        Constant Field Values
      • ANY_RELATIVE_TIMES_OPTION

        public static final java.lang.String ANY_RELATIVE_TIMES_OPTION
        Constant ANY_RELATIVE_TIMES_OPTION="Any"
        See Also:
        Constant Field Values
      • LAST_HOUR_RELATIVE_TIME

        public static final int LAST_HOUR_RELATIVE_TIME
        Constant LAST_HOUR_RELATIVE_TIME=1
        See Also:
        Constant Field Values
      • LAST_FOUR_HOURS_RELATIVE_TIME

        public static final int LAST_FOUR_HOURS_RELATIVE_TIME
        Constant LAST_FOUR_HOURS_RELATIVE_TIME=2
        See Also:
        Constant Field Values
      • LAST_EIGHT_HOURS_RELATIVE_TIME

        public static final int LAST_EIGHT_HOURS_RELATIVE_TIME
        Constant LAST_EIGHT_HOURS_RELATIVE_TIME=3
        See Also:
        Constant Field Values
      • LAST_TWELVE_HOURS_RELATIVE_TIME

        public static final int LAST_TWELVE_HOURS_RELATIVE_TIME
        Constant LAST_TWELVE_HOURS_RELATIVE_TIME=4
        See Also:
        Constant Field Values
      • LAST_DAY_RELATIVE_TIME

        public static final int LAST_DAY_RELATIVE_TIME
        Constant LAST_DAY_RELATIVE_TIME=5
        See Also:
        Constant Field Values
      • LAST_WEEK_RELATIVE_TIME

        public static final int LAST_WEEK_RELATIVE_TIME
        Constant LAST_WEEK_RELATIVE_TIME=6
        See Also:
        Constant Field Values
      • LAST_MONTH_RELATIVE_TIME

        public static final int LAST_MONTH_RELATIVE_TIME
        Constant LAST_MONTH_RELATIVE_TIME=7
        See Also:
        Constant Field Values
    • Constructor Detail

      • AlarmUtil

        public AlarmUtil()
    • Method Detail

      • getFilter

        public static Filter getFilter​(java.lang.String filterString,
                                       javax.servlet.ServletContext servletContext)

        getFilter

        Parameters:
        filterString - a String object.
        Returns:
        a Filter object.
      • getFilterString

        public static java.lang.String getFilterString​(Filter filter)

        getFilterString

        Parameters:
        filter - a Filter object.
        Returns:
        a String object.
      • getRelativeTimeFilter

        public static Filter getRelativeTimeFilter​(int relativeTime)

        getRelativeTimeFilter

        Parameters:
        relativeTime - a int.
        Returns:
        a Filter object.
      • getFilterList

        public static java.util.List<Filter> getFilterList​(java.lang.String[] filterStrings,
                                                           javax.servlet.ServletContext servletContext)