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
ConstructorsConstructorDescriptionMOChangeEvent(Object source, ManagedObject changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue) Creates a deniableMOChangeEventobject 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 aMOChangeEventobject 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.Variableorg.snmp4j.smi.OIDgetOID()org.snmp4j.smi.VariableMethods inherited from class org.snmp4j.agent.mo.DeniableEventObject
getDenyReason, isDeniable, setDenyReasonMethods 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 deniableMOChangeEventobject based on the changed managed object, the instance OID of the changed value, with old and new value.- Parameters:
source- the event source.changedObject- theManagedObjectwhose 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 aMOChangeEventobject based on the changed managed object, the instance OID of the changed value, with old and new value.- Parameters:
source- the event source.changedObject- theManagedObjectwhose 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()
-