com.sun.jaw.snmp.agent
Interface SnmpMibHandlerSrvIf

All Known Implementing Classes:
AdaptorServerImpl

public abstract interface SnmpMibHandlerSrvIf

A SnmpMibHandlerSrvIf is the logical link between a SNMP MIB and the SNMP communication stack.


Method Summary
 void addMib(SnmpMibAgent mib)
          Adds a new MIB in the adaptor.
 java.lang.Boolean removeMib(SnmpMibAgent mib)
          Removes the specified MIB from the adaptor.
 void sendTrap(int generic, int specific, java.util.Vector varBindList)
          Sends a trap.
 

Method Detail

sendTrap

public void sendTrap(int generic,
                     int specific,
                     java.util.Vector varBindList)
              throws java.io.IOException,
                     SnmpStatusException
Sends a trap. The trap is sent to each destination defined in the ACL file (if available).
Parameters:
generic - The generic number of the trap.
specific - The specific number of the trap.
varBindList - The variables to be included in the trap.
Throws:
java.io.IOException - An I/O error occured while sending the traps
SnmpStatusException - An encoding error occured.

addMib

public void addMib(SnmpMibAgent mib)
            throws java.lang.IllegalArgumentException
Adds a new MIB in the adaptor.
Parameters:
mib - The mib to add.
Throws:
java.lang.IllegalArgumentException - If the argument is null.

removeMib

public java.lang.Boolean removeMib(SnmpMibAgent mib)
Removes the specified MIB from the adaptor.
Parameters:
mib - The mib to be removed.
Returns:
True if mib was a MIB included in the adaptor, false otherwise.