Class MOValueValidationEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class MOValueValidationEvent
    extends java.util.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
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      MOValueValidationEvent​(java.lang.Object source, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue)
      Creates a new value validation request.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.snmp4j.smi.Variable getNewValue()  
      org.snmp4j.smi.Variable getOldValue()  
      int getValidationStatus()
      Gets the validation status.
      void setValidationStatus​(int validationStatus)
      Sets the validation status.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

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

      • MOValueValidationEvent

        public MOValueValidationEvent​(java.lang.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.