com.sun.management.snmp.agent
Interface SnmpTableCallbackHandler

All Known Subinterfaces:
SnmpTableEntryFactory
All Known Implementing Classes:
SnmpTableSupport

public interface SnmpTableCallbackHandler

This interface ensures the synchronization between Metadata table objects and bean-like table objects. It is used between mibgen generated table meta and table classes.

You should never need to use this interface directly.

Since:
Java DMK 5.1

Method Summary
 void addEntryCb(int pos, SnmpOid row, ObjectName name, Object entry, SnmpMibTable meta)
          This method is called by the SNMP runtime after a new entry has been added to the table.
 void removeEntryCb(int pos, SnmpOid row, ObjectName name, Object entry, SnmpMibTable meta)
          This method is called by the SNMP runtime after a new entry has been removed from the table.
 

Method Detail

addEntryCb

public void addEntryCb(int pos,
                       SnmpOid row,
                       ObjectName name,
                       Object entry,
                       SnmpMibTable meta)
                throws SnmpStatusException
This method is called by the SNMP runtime after a new entry has been added to the table. If an SnmpStatusException is raised, the entry will be removed and the operation will be aborted. In this case, the removeEntryCb() callback will not be called.

You should never need to use this method directly.

Throws:
SnmpStatusException

removeEntryCb

public void removeEntryCb(int pos,
                          SnmpOid row,
                          ObjectName name,
                          Object entry,
                          SnmpMibTable meta)
                   throws SnmpStatusException
This method is called by the SNMP runtime after a new entry has been removed from the table. If raised, SnmpStatusException will be ignored.

You should never need to use this method directly.

Throws:
SnmpStatusException

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.