org.jboss.jmx.adaptor.snmp.agent
Interface TrapFactory

All Known Implementing Classes:
TrapFactorySupport

public interface TrapFactory

TrapFactory takes care of translation of Notifications into SNMP V1 and V2 traps Trap-PDU ::= [4] IMPLICIT SEQUENCE { enterprise -- type of object generating -- trap, see sysObjectID in [5] OBJECT IDENTIFIER, agent-addr -- address of object generating NetworkAddress, -- trap generic-trap -- generic trap type INTEGER { coldStart(0), warmStart(1), linkDown(2), linkUp(3), authenticationFailure(4), egpNeighborLoss(5), enterpriseSpecific(6) }, specific-trap -- specific code, present even INTEGER, -- if generic-trap is not -- enterpriseSpecific time-stamp -- time elapsed between the last TimeTicks, -- (re)initialization of the network -- entity and the generation of the trap variable-bindings -- "interesting" information VarBindList }

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

Method Summary
 org.snmp4j.PDUv1 generateV1Trap(javax.management.Notification n, Mapping m, NotificationWrapper wrapper)
          Traslates a Notification to an SNMP V1 trap.
 org.snmp4j.PDU generateV2cTrap(javax.management.Notification n, Mapping m, NotificationWrapper wrapper)
          Translates a Notification to an SNMP V2c trap.
 org.snmp4j.ScopedPDU generateV3Trap(javax.management.Notification n, Mapping m, NotificationWrapper wrapper)
          Traslates a Notification to an SNMP V3 trap.
 void set(Clock uptime, Counter count)
          Sets the name of the file containing the notification/trap mappings, the uptime clock and the trap counter
 void set(Clock uptime, Counter count, RequestHandler rh)
           
 void start()
          Performs all the required initialisation in order for the mapper to commence operation (e.g.
 

Method Detail

set

void set(Clock uptime,
         Counter count)
Sets the name of the file containing the notification/trap mappings, the uptime clock and the trap counter


set

void set(Clock uptime,
         Counter count,
         RequestHandler rh)

start

void start()
           throws java.lang.Exception
Performs all the required initialisation in order for the mapper to commence operation (e.g. reading of the resource file)

Throws:
java.lang.Exception

generateV1Trap

org.snmp4j.PDUv1 generateV1Trap(javax.management.Notification n,
                                Mapping m,
                                NotificationWrapper wrapper)
                                throws MappingFailedException
Traslates a Notification to an SNMP V1 trap.

Parameters:
the - notification to be translated
Throws:
MappingFailedException

generateV2cTrap

org.snmp4j.PDU generateV2cTrap(javax.management.Notification n,
                               Mapping m,
                               NotificationWrapper wrapper)
                               throws MappingFailedException
Translates a Notification to an SNMP V2c trap.

Parameters:
the - notification to be translated
Throws:
MappingFailedException

generateV3Trap

org.snmp4j.ScopedPDU generateV3Trap(javax.management.Notification n,
                                    Mapping m,
                                    NotificationWrapper wrapper)
                                    throws MappingFailedException
Traslates a Notification to an SNMP V3 trap.

Parameters:
the - notification to be translated
Throws:
MappingFailedException


Copyright © 2011. All Rights Reserved.