Class MOChangeEvent

All Implemented Interfaces:
Serializable

public class MOChangeEvent extends DeniableEventObject
The MOChangeEvent describes the change of a single value of a ManagedObject.
Version:
3.2.3
Author:
Frank Fock
See Also:
  • Constructor Details

    • MOChangeEvent

      public MOChangeEvent(Object source, ManagedObject<SubRequest<?>> 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.
      Parameters:
      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.
    • MOChangeEvent

      public MOChangeEvent(Object source, ManagedObject<SubRequest<?>> 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. their row index) and with a list of old and new values.
      Parameters:
      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.
      Since:
      3.0
    • MOChangeEvent

      public MOChangeEvent(Object source, ManagedObject<SubRequest<?>> changedObject, org.snmp4j.smi.OID index, MOChangeEvent.Modification modification, SubRequest<?> subRequest)
      Creates a deniable 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.
      Parameters:
      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.
      subRequest - the subRequest that triggered the change. This might by null if the change was not triggered by a SNMP, AgentX, or similar external request or if the request cannot be identified through the call hierarchy.
      Since:
      3.2.3
    • MOChangeEvent

      public MOChangeEvent(Object source, ManagedObject<SubRequest<?>> 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.
      Parameters:
      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.
      Since:
      1.1
    • MOChangeEvent

      public MOChangeEvent(Object source, ManagedObject<SubRequest<?>> changedObject, org.snmp4j.smi.OID oid, org.snmp4j.smi.Variable oldValue, org.snmp4j.smi.Variable newValue, boolean deniable, SubRequest<?> subRequest)
      Creates a MOChangeEvent 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 - 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.
      subRequest - the subRequest that triggered the change. This might by null if the change was not triggered by a SNMP, AgentX, or similar external request.
      Since:
      3.2.3
  • Method Details