Class SnmpMonitorStrategy

    • Field Detail

      • LESS_THAN

        public static final java.lang.String LESS_THAN
        Constant for less-than operand
        See Also:
        Constant Field Values
      • GREATER_THAN

        public static final java.lang.String GREATER_THAN
        Constant GREATER_THAN=">"
        See Also:
        Constant Field Values
      • LESS_THAN_EQUALS

        public static final java.lang.String LESS_THAN_EQUALS
        Constant LESS_THAN_EQUALS="<="
        See Also:
        Constant Field Values
      • GREATER_THAN_EQUALS

        public static final java.lang.String GREATER_THAN_EQUALS
        Constant GREATER_THAN_EQUALS=">="
        See Also:
        Constant Field Values
      • EQUALS

        public static final java.lang.String EQUALS
        Constant EQUALS="="
        See Also:
        Constant Field Values
      • NOT_EQUAL

        public static final java.lang.String NOT_EQUAL
        Constant NOT_EQUAL="!="
        See Also:
        Constant Field Values
      • MATCHES

        public static final java.lang.String MATCHES
        Constant MATCHES="~"
        See Also:
        Constant Field Values
      • hex

        protected boolean hex
    • Constructor Detail

      • SnmpMonitorStrategy

        public SnmpMonitorStrategy()
    • Method Detail

      • getStringValue

        public java.lang.String getStringValue​(SnmpValue result)
      • meetsCriteria

        public boolean meetsCriteria​(SnmpValue result,
                                     java.lang.String operator,
                                     java.lang.String operand)
        Verifies that the result of the SNMP query meets the criteria specified by the operator and the operand from the configuration file.
        Parameters:
        result - a SnmpValue object.
        operator - a String object.
        operand - a String object.
        Returns:
        a boolean.