public interface NotificationOriginator
NotificationOriginator
specifies the interface for
classes providing notification sending.
See also RFC 3411 for a description of notification originators.
Modifier and Type | Method and Description |
---|---|
Object |
notify(org.snmp4j.smi.OctetString context,
org.snmp4j.smi.OID notificationID,
org.snmp4j.smi.TimeTicks sysUpTime,
org.snmp4j.smi.VariableBinding[] vbs)
Sends notifications (traps) to all appropriate notification targets.
|
Object |
notify(org.snmp4j.smi.OctetString context,
org.snmp4j.smi.OID notificationID,
org.snmp4j.smi.VariableBinding[] vbs)
Sends notifications (traps) to all appropriate notification targets.
|
Object notify(org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID notificationID, org.snmp4j.smi.VariableBinding[] vbs)
context
- the context name of the context on whose behalf this notification has
been generated.notificationID
- the object ID that uniquely identifies this notification. For SNMPv1
traps, the notification ID has to be build using the rules provided
by RFC 2576.vbs
- an array of VariableBinding
instances representing the
payload of the notification.NotificationOriginator
determines on behalf of the
SNMP-NOTIFICTON-MIB contents whether a notification is sent as
trap/notification or as inform request, the returned array contains
an element for each addressed target, but only a response PDU for
inform targets.Object notify(org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID notificationID, org.snmp4j.smi.TimeTicks sysUpTime, org.snmp4j.smi.VariableBinding[] vbs)
context
- the context name of the context on whose behalf this notification has
been generated.notificationID
- the object ID that uniquely identifies this notification. For SNMPv1
traps, the notification ID has to be build using the rules provided
by RFC 2576.sysUpTime
- the value of the sysUpTime for the context context
. This
value will be included in the generated notification as
sysUpTime.0
.vbs
- an array of VariableBinding
instances representing the
payload of the notification.NotificationOriginator
determines on behalf of the
SNMP-NOTIFICTON-MIB contents whether a notification is sent as
trap/notification or as inform request, the returned array contains
an element for each addressed target, but only a response PDU for
inform targets.Copyright © 2018 SNMP4J.org. All rights reserved.