public class MOChangeEvent extends DeniableEventObject
MOChangeEvent
describes the change of a single value of
a ManagedObject
.source
Constructor and Description |
---|
MOChangeEvent(Object source,
ManagedObject changedObject,
org.snmp4j.smi.OID oid,
org.snmp4j.smi.Variable oldValue,
org.snmp4j.smi.Variable newValue)
Creates a deniable
MOChangeEvent 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 a
MOChangeEvent object based on the changed managed
object, the instance OID of the changed value, with old and new value. |
Modifier and Type | Method and Description |
---|---|
ManagedObject |
getChangedObject() |
org.snmp4j.smi.Variable |
getNewValue() |
org.snmp4j.smi.OID |
getOID() |
org.snmp4j.smi.Variable |
getOldValue() |
getDenyReason, isDeniable, setDenyReason
getSource, toString
public MOChangeEvent(Object source, ManagedObject changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue)
MOChangeEvent
object based on the changed
managed object, the instance OID of the changed value, with old and new
value.source
- the event source.changedObject
- the ManagedObject
whose value is changed.oid
- the instance OID of the changed instance.oldValue
- the old value.newValue
- the new value.public MOChangeEvent(Object source, ManagedObject changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue, boolean deniable)
MOChangeEvent
object based on the changed managed
object, the instance OID of the changed value, with old and new value.source
- the event source.changedObject
- the ManagedObject
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.public ManagedObject getChangedObject()
public org.snmp4j.smi.OID getOID()
public org.snmp4j.smi.Variable getOldValue()
public org.snmp4j.smi.Variable getNewValue()
Copyright © 2020 SNMP4J.org. All rights reserved.