Class Snmp4JTrapNotifier.Snmp4JV2V3TrapInformation

    • Constructor Detail

      • Snmp4JV2V3TrapInformation

        public Snmp4JV2V3TrapInformation​(java.net.InetAddress agent,
                                         java.lang.String community,
                                         org.snmp4j.PDU pdu)
        Constructs a new trap information instance that contains the sending agent, the community string, and the Protocol Data Unit.
        Parameters:
        agent - The sending agent's address
        community - The community string from the SNMP packet.
        pdu - The encapsulated Protocol Data Unit.
      • Snmp4JV2V3TrapInformation

        public Snmp4JV2V3TrapInformation​(java.net.InetAddress agent,
                                         java.lang.String community,
                                         org.snmp4j.PDU pdu,
                                         int version)
        Constructs a new trap information instance that contains the sending agent, the community string, and the Protocol Data Unit.
        Parameters:
        agent - The sending agent's address
        community - The community string from the SNMP packet.
        pdu - The encapsulated Protocol Data Unit.
        version - The SNMP version, 2 or 3