public interface PDUFactory
PDUFactory defines the interface for PDU factories.| Modifier and Type | Method and Description |
|---|---|
PDU |
createPDU(MessageProcessingModel messageProcessingModel)
Creates a
PDU instance that is compatible with the given SNMP version
(message processing model). |
PDU |
createPDU(Target target)
Creates a
PDU instance for the supplied target. |
PDU createPDU(Target target)
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.target - the Target where the PDU to be created will be sent.PDU createPDU(MessageProcessingModel messageProcessingModel)
PDU instance that is compatible with the given SNMP version
(message processing model).messageProcessingModel - a MessageProcessingModel instance.PDU instance that is compatible with the given SNMP version
(message processing model).Copyright © 2020 SNMP4J.org. All rights reserved.