com.sun.management.snmp.manager
Interface SnmpTrapListener


public interface SnmpTrapListener

Should be implemented by classes that wish to receive SNMP trap PDUs.

An SnmpTrapListener will be activated every time the SnmpEventReportDispatcher receives a trap (version 1 or version 2).
If you are interested in handling only a specific version of traps, just implement the corresponding callback.

Since:
Java DMK 5.1

Method Summary
 void processSnmpTrapV1(SnmpPduTrap aTrapPDU)
          Called by SnmpEventReportDispatcher when a V1 trap is received.
 void processSnmpTrapV2(SnmpPduRequest aTrapPDU)
          Called by SnmpEventReportDispatcher when a V2 trap is received.
 void processSnmpTrapV3(SnmpScopedPduRequest aTrapPDU)
          Called by SnmpEventReportDispatcher when a V2 trap PDU is received within an SNMP V3 message.
 

Method Detail

processSnmpTrapV1

void processSnmpTrapV1(SnmpPduTrap aTrapPDU)
Called by SnmpEventReportDispatcher when a V1 trap is received.

Parameters:
aTrapPDU - The incoming V1 trap PDU.

processSnmpTrapV2

void processSnmpTrapV2(SnmpPduRequest aTrapPDU)
Called by SnmpEventReportDispatcher when a V2 trap is received.

Parameters:
aTrapPDU - The incoming V2 trap PDU.

processSnmpTrapV3

void processSnmpTrapV3(SnmpScopedPduRequest aTrapPDU)
Called by SnmpEventReportDispatcher when a V2 trap PDU is received within an SNMP V3 message.

Parameters:
aTrapPDU - The incoming V3 trap PDU.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

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