java.lang.Object
java.util.EventObject
org.snmp4j.agent.mo.MOValueValidationEvent
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionMOValueValidationEvent
(Object source, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue, org.snmp4j.smi.OID instanceOID) Creates a new value validation request. -
Method Summary
Modifier and TypeMethodDescriptionorg.snmp4j.smi.OID
Get the instance OID for the column instance that needs validation.org.snmp4j.smi.Variable
org.snmp4j.smi.Variable
int
Gets the validation status.void
setValidationStatus
(int validationStatus) Sets the validation status.Methods inherited from class java.util.EventObject
getSource, toString
-
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 ofMOMutableColumn
orMOScalar
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 methodMOMutableColumn.validate(Variable, Variable)
has been called. - Since:
- 3.7.0
-