站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 varia API Documentation 英文版文档

TrapReceiver (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档


org.jboss.jmx.adaptor.snmp.trapd
Class TrapReceiver

java.lang.Object
  extended byorg.jboss.jmx.adaptor.snmp.trapd.TrapReceiver
All Implemented Interfaces:
org.opennms.protocols.snmp.SnmpTrapHandler

public class TrapReceiver
extends Object
implements org.opennms.protocols.snmp.SnmpTrapHandler

Implements an SNMP trap reception engine

Version:
$Revision: 1.2.6.1 $
Author:
Spyros Pollatos, Dimitris Andreadis

Field Summary
protected  org.jboss.logging.Logger log
          target logger
 
Constructor Summary
TrapReceiver(org.jboss.logging.Logger log)
          Public CTOR
 
Method Summary
 void snmpReceivedTrap(org.opennms.protocols.snmp.SnmpTrapSession session, InetAddress agent, int port, org.opennms.protocols.snmp.SnmpOctetString community, org.opennms.protocols.snmp.SnmpPduPacket pdu)
          Receives and logs information about SNMPv2 traps.
 void snmpReceivedTrap(org.opennms.protocols.snmp.SnmpTrapSession session, InetAddress agent, int port, org.opennms.protocols.snmp.SnmpOctetString community, org.opennms.protocols.snmp.SnmpPduTrap pdu)
          Receives and logs information about SNMPv1 traps.
 void snmpTrapSessionError(org.opennms.protocols.snmp.SnmpTrapSession session, int error, Object ref)
          Processes session errors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.jboss.logging.Logger log
target logger

Constructor Detail

TrapReceiver

public TrapReceiver(org.jboss.logging.Logger log)
Public CTOR

Parameters:
log - the logger used to output info messages
Method Detail

snmpReceivedTrap

public void snmpReceivedTrap(org.opennms.protocols.snmp.SnmpTrapSession session,
                             InetAddress agent,
                             int port,
                             org.opennms.protocols.snmp.SnmpOctetString community,
                             org.opennms.protocols.snmp.SnmpPduPacket pdu)
Receives and logs information about SNMPv2 traps.

Specified by:
snmpReceivedTrap in interface org.opennms.protocols.snmp.SnmpTrapHandler
Parameters:
session - the trap session that received the PDU
agent - the address of the remote sender
port - the remote port where the pdu was transmitted from
community - the decoded community string
pdu - the decoded v2 trap pdu

snmpReceivedTrap

public void snmpReceivedTrap(org.opennms.protocols.snmp.SnmpTrapSession session,
                             InetAddress agent,
                             int port,
                             org.opennms.protocols.snmp.SnmpOctetString community,
                             org.opennms.protocols.snmp.SnmpPduTrap pdu)
Receives and logs information about SNMPv1 traps.

Specified by:
snmpReceivedTrap in interface org.opennms.protocols.snmp.SnmpTrapHandler
Parameters:
session - the trap session that received the PDU
agent - the address of the remote sender
port - the remote port where the pdu was transmitted from
community - the decoded community string
pdu - the decoded v1 trap pdu

snmpTrapSessionError

public void snmpTrapSessionError(org.opennms.protocols.snmp.SnmpTrapSession session,
                                 int error,
                                 Object ref)
Processes session errors.

Specified by:
snmpTrapSessionError in interface org.opennms.protocols.snmp.SnmpTrapHandler
Parameters:
session - the trap session in error
error - the error condition
ref - the reference object, if any


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.