From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- lib/snmp/doc/src/snmpa_notification_filter.xml | 73 ++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 lib/snmp/doc/src/snmpa_notification_filter.xml (limited to 'lib/snmp/doc/src/snmpa_notification_filter.xml') diff --git a/lib/snmp/doc/src/snmpa_notification_filter.xml b/lib/snmp/doc/src/snmpa_notification_filter.xml new file mode 100644 index 0000000000..c3b300ecab --- /dev/null +++ b/lib/snmp/doc/src/snmpa_notification_filter.xml @@ -0,0 +1,73 @@ + + + + +
+ + 20042009 + Ericsson AB. All Rights Reserved. + + + The contents of this file are subject to the Erlang Public License, + Version 1.1, (the "License"); you may not use this file except in + compliance with the License. You should have received a copy of the + Erlang Public License along with this software. If not, it can be + retrieved online at http://www.erlang.org/. + + Software distributed under the License is distributed on an "AS IS" + basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + the License for the specific language governing rights and limitations + under the License. + + + + snmpa_notification_filter + + + + + + + + snmpa_notification_filter.xml +
+ snmpa_notification_filter + Behaviour module for the SNMP agent notification filters. + +

This module defines the behaviour of the agent notification + filters. A snmpa_notification_filter compliant module + must export the following functions:

+ + +

handle_notification/2

+
+
+

The semantics of them and their exact signatures are explained + below.

+

The purpose of notification filters is to allow for modification + and/or suppression of a notification.

+

A misbehaving filter will be removed.

+
+ + + handle_notification(Notif, Data) -> Reply + Handle a notification + + Reply = send | {send, NewNotif} | dont_send + Notif = NewNotif = notification() | trap() + Data = term() + + +

Handle a notification to be sent. The filter can either + accept the notification as is, return send, modify + the notification, return {send, NewNotif} or + suppress the notification, return dont_send.

+

Data is supplied at filter registration time, + see register_notification_filter. +

+
+
+
+ +
+ -- cgit v1.2.3