Module org.snmp4j

Interface PDUFactory

    • Method Detail

      • createPDU

        PDU createPDU​(Target<?> target)
        Creates a PDU instance for the supplied target. The created PDU has to be compliant to the SNMP version defined by the supplied target. For example, a SNMPv3 target requires a ScopedPDU instance.
        Parameters:
        target - the Target where the PDU to be created will be sent.
        Returns:
        PDU a PDU instance that is compatible with the supplied target.
      • createPDU

        PDU createPDU​(MessageProcessingModel messageProcessingModel)
        Creates a PDU instance that is compatible with the given SNMP version (message processing model).
        Parameters:
        messageProcessingModel - a MessageProcessingModel instance.
        Returns:
        a PDU instance that is compatible with the given SNMP version (message processing model).
        Since:
        2.2