Package org.snmp4j.agent.mo
Class MOChangeEvent
java.lang.Object
java.util.EventObject
org.snmp4j.agent.mo.DeniableEventObject
org.snmp4j.agent.mo.MOChangeEvent
- All Implemented Interfaces:
Serializable
The
MOChangeEvent
describes the change of a single value of
a ManagedObject
.- Version:
- 1.0
- Author:
- Frank Fock
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionMOChangeEvent
(Object source, ManagedObject changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue) Creates a deniableMOChangeEvent
object based on the changed managed object, the instance OID of the changed value, with old and new value.MOChangeEvent
(Object source, ManagedObject changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue, boolean deniable) Creates aMOChangeEvent
object based on the changed managed object, the instance OID of the changed value, with old and new value. -
Method Summary
Modifier and TypeMethodDescriptionorg.snmp4j.smi.Variable
org.snmp4j.smi.OID
getOID()
org.snmp4j.smi.Variable
Methods inherited from class org.snmp4j.agent.mo.DeniableEventObject
getDenyReason, isDeniable, setDenyReason
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
MOChangeEvent
public MOChangeEvent(Object source, ManagedObject changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue) Creates a deniableMOChangeEvent
object based on the changed managed object, the instance OID of the changed value, with old and new value.- Parameters:
source
- the event source.changedObject
- theManagedObject
whose value is changed.oid
- the instance OID of the changed instance.oldValue
- the old value.newValue
- the new value.
-
MOChangeEvent
public MOChangeEvent(Object source, ManagedObject changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue, boolean deniable) Creates aMOChangeEvent
object based on the changed managed object, the instance OID of the changed value, with old and new value.- Parameters:
source
- the event source.changedObject
- theManagedObject
whose value is changed.oid
- the instance OID of the changed instance.oldValue
- the old value.newValue
- the new value.deniable
- indicates whether the event can be canceled through setting its denyReason member to a SNMP error status.- Since:
- 1.1
-
-
Method Details
-
getChangedObject
-
getOID
public org.snmp4j.smi.OID getOID() -
getOldValue
public org.snmp4j.smi.Variable getOldValue() -
getNewValue
public org.snmp4j.smi.Variable getNewValue()
-