Class MOValueValidationEvent

  • All Implemented Interfaces:
    Serializable

    public class MOValueValidationEvent
    extends EventObject
    The MOValueValidationEvent class represents a value validation request. The request's result is carries in its status member.
    Version:
    1.0
    Author:
    Frank Fock
    See Also:
    Serialized Form
    • Constructor Detail

      • MOValueValidationEvent

        public MOValueValidationEvent​(Object source,
                                      org.snmp4j.smi.Variable oldValue,
                                      org.snmp4j.smi.Variable newValue)
        Creates a new value validation request.
        Parameters:
        source - the event source (request creator).
        oldValue - the old value.
        newValue - the new value to validate.
    • Method Detail

      • getValidationStatus

        public int getValidationStatus()
        Gets the validation status.
        Returns:
        an SNMP error status or zero if validation was successful.
      • getNewValue

        public org.snmp4j.smi.Variable getNewValue()
      • getOldValue

        public org.snmp4j.smi.Variable getOldValue()
      • setValidationStatus

        public void setValidationStatus​(int validationStatus)
        Sets the validation status. The default status is zero.
        Parameters:
        validationStatus - a SNMP error status.