Class MOValueValidationEvent

java.lang.Object
java.util.EventObject
org.snmp4j.agent.mo.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:
3.7.0
Author:
Frank Fock
See Also:
  • Constructor Details

    • MOValueValidationEvent

      public MOValueValidationEvent(Object source, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue, org.snmp4j.smi.OID instanceOID)
      Creates a new value validation request.
      Parameters:
      source - the event source (request creator).
      oldValue - the old value.
      newValue - the new value to validate.
      instanceOID - the complete OID of the instance of MOMutableColumn or MOScalar that needs validation.
  • Method Details

    • 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.
    • getInstanceOID

      public org.snmp4j.smi.OID getInstanceOID()
      Get the instance OID for the column instance that needs validation.
      Returns:
      the instance OID of the table cell or scalar instance to be modified. null might be returned if the deprecated method MOMutableColumn.validate(Variable, Variable) has been called.
      Since:
      3.7.0