java.io.Serializable
public class MOChangeEvent extends DeniableEventObject
MOChangeEvent
describes the change of a single value of
a ManagedObject
.Modifier and Type | Class | Description |
---|---|---|
static class |
MOChangeEvent.Modification |
|
static class |
MOChangeEvent.OidType |
Constructor | Description |
---|---|
MOChangeEvent(java.lang.Object source,
ManagedObject changedObject,
org.snmp4j.smi.OID index,
MOChangeEvent.Modification modification) |
Creates a deniable
MOChangeEvent object based on the changed
managed object instances that are identified through a common the instance OID (i.e. |
MOChangeEvent(java.lang.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(java.lang.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 | Description |
---|---|---|
ManagedObject |
getChangedObject() |
|
MOChangeEvent.Modification |
getModification() |
Gets the type of the modification.
|
protected MOChangeEvent.Modification |
getModificationFromValues(org.snmp4j.smi.Variable oldValue,
org.snmp4j.smi.Variable newValue) |
|
org.snmp4j.smi.Variable |
getNewValue() |
|
org.snmp4j.smi.OID |
getOID() |
|
MOChangeEvent.OidType |
getOidType() |
Gets the representation type of the OID of the event as defined by
MOChangeEvent.OidType . |
org.snmp4j.smi.Variable |
getOldValue() |
|
java.lang.String |
toString() |
getDenyReason, isDeniable, setDenyReason
public MOChangeEvent(java.lang.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(java.lang.Object source, ManagedObject changedObject, org.snmp4j.smi.OID index, MOChangeEvent.Modification modification)
MOChangeEvent
object based on the changed
managed object instances that are identified through a common the instance OID (i.e. their row index)
and with a list of old and new values.source
- the event source.changedObject
- the ManagedObject
whose value is changed.index
- the instance OID of the changed instance (i.e. row index).modification
- identifies the type of modification that triggered the event.public MOChangeEvent(java.lang.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.protected MOChangeEvent.Modification getModificationFromValues(org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue)
public ManagedObject getChangedObject()
public org.snmp4j.smi.OID getOID()
public org.snmp4j.smi.Variable getOldValue()
public org.snmp4j.smi.Variable getNewValue()
public MOChangeEvent.Modification getModification()
getModificationFromValues(Variable, Variable)
object construction or explicitly set by a suitable
constructor.MOChangeEvent.Modification
.public MOChangeEvent.OidType getOidType()
MOChangeEvent.OidType
.
The type MOChangeEvent.OidType.index
refers to the row index of a MOTable
ManagedObject
.
All other types refer to a single instance OID, whereas MOChangeEvent.OidType.fullyQualified
includes the OID
of the ManagedObject
and MOChangeEvent.OidType.instanceSuffix
does not.getOID()
.public java.lang.String toString()
toString
in class java.util.EventObject
Copyright © 2018 SNMP4J.org. All rights reserved.