KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jmx > snmp > agent > SnmpTableCallbackHandler


1 /*
2  * @(#)file SnmpTableCallbackHandler.java
3  * @(#)author Sun Microsystems, Inc.
4  * @(#)version 1.6
5  * @(#)date 08/02/09
6  *
7  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
8  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
9  */

10 package com.sun.jmx.snmp.agent;
11
12 import javax.management.ObjectName JavaDoc;
13 import com.sun.jmx.snmp.SnmpStatusException;
14 import com.sun.jmx.snmp.SnmpOid;
15 import com.sun.jmx.snmp.agent.SnmpMibTable;
16
17 /**
18  * This interface ensures the synchronization between Metadata table objects
19  * and bean-like table objects.
20  *
21  * It is used between mibgen generated table meta and table classes.
22  * <p><b><i>
23  * You should never need to use this interface directly.
24  * </p></b></i>
25  *
26  * <p><b>This API is a Sun Microsystems internal API and is subject
27  * to change without notice.</b></p>
28  **/

29 public interface SnmpTableCallbackHandler {
30     /**
31      * This method is called by the SNMP runtime after a new entry
32      * has been added to the table.
33      *
34      * If an SnmpStatusException is raised, the entry will be removed
35      * and the operation will be aborted. In this case, the removeEntryCb()
36      * callback will not be called.
37      *
38      * <p><b><i>
39      * You should never need to use this method directly.
40      * </p></b></i>
41      *
42      **/

43     public void addEntryCb(int pos, SnmpOid row, ObjectName JavaDoc name,
44                Object JavaDoc entry, SnmpMibTable meta)
45     throws SnmpStatusException;
46
47     /**
48      * This method is called by the SNMP runtime after a new entry
49      * has been removed from the table.
50      *
51      * If raised, SnmpStatusException will be ignored.
52      *
53      * <p><b><i>
54      * You should never need to use this method directly.
55      * </p></b></i>
56      *
57      **/

58     public void removeEntryCb(int pos, SnmpOid row, ObjectName JavaDoc name,
59                   Object JavaDoc entry, SnmpMibTable meta)
60     throws SnmpStatusException;
61 }
62
Popular Tags