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

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

Parameters:
aTrapPDU - The incoming V1 trap PDU.

processSnmpTrapV2

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

Parameters:
aTrapPDU - The incoming V2 trap PDU.

processSnmpTrapV3

public 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.

FCS Release
jdmk-5_1-b34.2 2005.11.29_16:24:00_MET

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