Module org.snmp4j

Interface PDUFactory

All Known Implementing Classes:
DefaultPDUFactory, SnmpConfigurator.InnerPDUFactory

public interface PDUFactory
PDUFactory defines the interface for PDU factories.
Since:
1.0.2
Version:
2.2
Author:
Frank Fock
  • Method Summary

    Modifier and Type
    Method
    Description
    createPDU(MessageProcessingModel messageProcessingModel)
    Creates a PDU instance that is compatible with the given SNMP version (message processing model).
    createPDU(Target<?> target)
    Creates a PDU instance for the supplied target.
  • Method Details

    • 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