PDUFactory
public class SnmpConfigurator.InnerPDUFactory extends java.lang.Object implements PDUFactory
Constructor | Description |
---|---|
InnerPDUFactory(java.util.Map settings) |
Modifier and Type | Method | 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. |
java.lang.Integer |
getMaxRepetitions() |
|
java.lang.Integer |
getNonRepeaters() |
public PDU createPDU(Target target)
PDUFactory
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.createPDU
in interface PDUFactory
target
- the Target
where the PDU to be created will be sent.public PDU createPDU(MessageProcessingModel messageProcessingModel)
PDUFactory
PDU
instance that is compatible with the given SNMP version
(message processing model).createPDU
in interface PDUFactory
messageProcessingModel
- a MessageProcessingModel
instance.PDU
instance that is compatible with the given SNMP version
(message processing model).public java.lang.Integer getMaxRepetitions()
public java.lang.Integer getNonRepeaters()
Copyright © 2018 SNMP4J.org. All rights reserved.