org.snmp4j.agent
Interface NotificationOriginator

All Known Implementing Classes:
CommandProcessor, NotificationOriginatorImpl

public interface NotificationOriginator

The NotificationOriginator specifies the interface for classes providing notification sending.

See also RFC 3411 for a description of notification originators.

Version:
1.0
Author:
Frank Fock

Method Summary
 java.lang.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.
 java.lang.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.
 

Method Detail

notify

java.lang.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. The targets to notify are determined through the SNMP-TARGET-MIB and the SNMP-NOTIFICATION-MIB.

Parameters:
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.
Returns:
an array of ResponseEvent instances. Since the 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.

notify

java.lang.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. The targets to notify are determined through the SNMP-TARGET-MIB and the SNMP-NOTIFICATION-MIB.

Parameters:
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.
Returns:
an array of ResponseEvent instances. Since the 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 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.