-
- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PDU
createPDU(MessageProcessingModel messageProcessingModel)
Creates aPDU
instance that is compatible with the given SNMP version (message processing model).PDU
createPDU(Target<?> target)
Creates aPDU
instance for the supplied target.
-
-
-
Method Detail
-
createPDU
PDU createPDU(Target<?> target)
Creates aPDU
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
- theTarget
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 aPDU
instance that is compatible with the given SNMP version (message processing model).- Parameters:
messageProcessingModel
- aMessageProcessingModel
instance.- Returns:
- a
PDU
instance that is compatible with the given SNMP version (message processing model). - Since:
- 2.2
-
-