All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.jaw.snmp.agent.SnmpMibHandlerSrvIf
- public interface SnmpMibHandlerSrvIf
A SnmpMibHandlerSrvIf is the logical link between a
SNMP MIB and the SNMP communication stack.
-
addMib(SnmpMib)
- Adds a new MIB in the adaptor.
-
removeMib(SnmpMib)
- Removes a MIB from the adaptor.
-
sendTrap(int, int, Vector)
- Sends a trap.
sendTrap
public abstract void sendTrap(int generic,
int specific,
Vector varBindList) throws 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: IOException
- An I/O error occured while sending the traps
- Throws: SnmpStatusException
- An encoding error occured.
addMib
public abstract void addMib(SnmpMib mib) throws IllegalArgumentException
- Adds a new MIB in the adaptor.
- Parameters:
- mib - The mib to add
- Throws: IllegalArgumentException
- if the argument is null.
removeMib
public abstract Boolean removeMib(SnmpMib mib)
- Removes a MIB from the adaptor.
- Parameters:
- mib - The mib to be removed.
- Returns:
- True if mib was a MIB included in the adaptor, false otherwise.
All Packages Class Hierarchy This Package Previous Next Index