Class Snmp4JTrapNotifier.Snmp4JV1TrapInformation

    • Constructor Detail

      • Snmp4JV1TrapInformation

        public Snmp4JV1TrapInformation​(java.net.InetAddress agent,
                                       java.lang.String community,
                                       org.snmp4j.PDUv1 pdu)
    • Method Detail

      • getPdu

        public org.snmp4j.PDUv1 getPdu()
        Returns the Protocol Data Unit that was encapsulated within the SNMP Trap message
      • getTrapAddress

        public java.net.InetAddress getTrapAddress()
        Specified by:
        getTrapAddress in class TrapInformation
        Returns:
        The InetAddress of the agent that generated the trap as found in the SNMPv1 AgentAddress field. This can vary from the value of TrapInformation.getAgentAddress() if the SNMPv1 trap has been forwarded.
      • getTimeStamp

        public long getTimeStamp()
        Description copied from class: TrapInformation
        Get the SNMP TimeTicks value for the sysUpTime of the agent that generated the trap. Note that the units for this value are 1/100ths of a second instead of milliseconds.
        Specified by:
        getTimeStamp in class TrapInformation
      • getVarBindAt

        protected org.snmp4j.smi.VariableBinding getVarBindAt​(int i)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object