Uses of Class
org.snmp4j.PDU
-
Packages that use PDU Package Description org.snmp4j Provides classes and interfaces for creating, sending, and receiving SNMP messages.org.snmp4j.event Provides classes and interfaces for SNMP4J event processing.org.snmp4j.fluent org.snmp4j.mp Provides classes and interfaces for the SNMP message processing.org.snmp4j.tools.console org.snmp4j.util Contains table retrieval utilities and multi-threading support classes as well as miscellaneous utility classes. -
-
Uses of PDU in org.snmp4j
Subclasses of PDU in org.snmp4j Modifier and Type Class Description class
PDUv1
ThePDUv1
represents SNMPv1 PDUs.class
ScopedPDU
TheScopedPDU
class represents a SNMPv3 scoped PDU.Fields in org.snmp4j declared as PDU Modifier and Type Field Description protected PDU
Snmp.PendingRequest. pdu
Methods in org.snmp4j that return PDU Modifier and Type Method Description PDU
Snmp.PendingRequest. getNextPDU()
PDU
MutablePDU. getPdu()
PDU
CommandResponderEvent. getPDU()
Methods in org.snmp4j with parameters of type PDU Modifier and Type Method Description void
Session. cancel(PDU request, ResponseListener listener)
Cancels an asynchronous request.void
Snmp. cancel(PDU request, ResponseListener listener)
protected void
MessageDispatcherImpl. checkOutgoingMsg(Address transportAddress, int messageProcessingModel, PDU pdu)
Checks outgoing messages for consistency between PDU and target used.<A extends Address>
ResponseEvent<A>Snmp. get(PDU pdu, Target<A> target)
Sends a GET request to a target.<A extends Address>
voidSnmp. get(PDU pdu, Target<A> target, java.lang.Object userHandle, ResponseListener listener)
Asynchronously sends a GET requestPDU
to the given target.<A extends Address>
ResponseEvent<A>Snmp. getBulk(PDU pdu, Target<A> target)
Sends a GETBULK request to a target.<A extends Address>
voidSnmp. getBulk(PDU pdu, Target<A> target, java.lang.Object userHandle, ResponseListener listener)
Asynchronously sends a GETBULK requestPDU
to the given target.<A extends Address>
ResponseEvent<A>Snmp. getNext(PDU pdu, Target<A> target)
Sends a GETNEXT request to a target.<A extends Address>
voidSnmp. getNext(PDU pdu, Target<A> target, java.lang.Object userHandle, ResponseListener listener)
Asynchronously sends a GETNEXT requestPDU
to the given target.protected void
Snmp. handleInternalResponse(PDU response, PDU pdu, Address target)
<A extends Address>
ResponseEvent<A>Snmp. inform(PDU pdu, Target<A> target)
Sends an INFORM request to a target.<A extends Address>
voidSnmp. inform(PDU pdu, Target<A> target, java.lang.Object userHandle, ResponseListener listener)
Asynchronously sends an INFORM requestPDU
to the given target.void
Snmp.PendingRequest. insertFirstPDU(PDU firstPDU)
void
Snmp. notify(PDU pdu, Target<?> target)
Sends a SNMPv2c or SNMPv3 notification to a target.void
Snmp.PendingRequest. pduHandleAssigned(PduHandle handle, PDU pdu)
protected <A extends Address>
booleanSnmp. resendRequest(Snmp.PendingRequest<A> request, PDU response)
<A extends Address>
intMessageDispatcher. returnResponsePdu(int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference<A> stateReference, StatusInformation statusInformation)
Returns a response PDU to the sender of the corresponding request PDU.<A extends Address>
intMessageDispatcherImpl. returnResponsePdu(int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference<A> stateReference, StatusInformation statusInformation)
<A extends Address>
ResponseEvent<A>Session. send(PDU pdu, Target<A> target)
Sends aPDU
to the given target and returns the received responsePDU
.<A extends Address>
voidSession. send(PDU pdu, Target<A> target, java.lang.Object userHandle, ResponseListener listener)
Asynchronously sends aPDU
to the given target.<A extends Address>
ResponseEvent<A>Session. send(PDU pdu, Target<A> target, TransportMapping<? super A> transport)
Sends aPDU
to the given target and returns the received responsePDU
encapsulated in aResponseEvent
object that also includes: the transport address of the response sending peer, theTarget
information of the target, the requestPDU
, the responsePDU
(if any).<A extends Address>
voidSession. send(PDU pdu, Target<A> target, TransportMapping<? super A> transport, java.lang.Object userHandle, ResponseListener listener)
Asynchronously sends aPDU
to the given target.<A extends Address>
ResponseEvent<A>Snmp. send(PDU pdu, Target<A> target)
<A extends Address>
voidSnmp. send(PDU pdu, Target<A> target, java.lang.Object userHandle, ResponseListener listener)
<A extends Address>
ResponseEvent<A>Snmp. send(PDU pdu, Target<A> target, TransportMapping<? super A> transport)
Sends aPDU
to the given target and if thePDU
is a confirmed request, then the received response is returned synchronously.<A extends Address>
voidSnmp. send(PDU pdu, Target<A> target, TransportMapping<? super A> transport, java.lang.Object userHandle, ResponseListener listener)
protected <A extends Address>
PduHandleSnmp. sendMessage(PDU pdu, Target<A> target, TransportMapping<? super A> transport, PduHandleCallback<PDU> pduHandleCallback)
Actually sends a PDU to a target and returns a handle for the sent PDU.<A extends Address>
PduHandleMessageDispatcher. sendPdu(Target<A> target, PDU pdu, boolean expectResponse)
Sends a PDU to the supplied transport address.<A extends Address>
PduHandleMessageDispatcher. sendPdu(TransportMapping<? super A> transportMapping, Target<A> target, PDU pdu, boolean expectResponse)
Sends a PDU to the supplied transport address.<A extends Address>
PduHandleMessageDispatcher. sendPdu(TransportMapping<? super A> transportMapping, Target<A> target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> callback)
Sends a PDU to the supplied transport address and returns thePduHandle
that uniquely identifies the request as response after the request has been sent and optional, if aPduHandleCallback
is given, it returns also thePduHandle
just before the request is sent through the the callback interface.<A extends Address>
PduHandleMessageDispatcherImpl. sendPdu(Target<A> target, PDU pdu, boolean expectResponse)
<A extends Address>
PduHandleMessageDispatcherImpl. sendPdu(TransportMapping<? super A> transportMapping, Target<A> target, PDU pdu, boolean expectResponse)
<A extends Address>
PduHandleMessageDispatcherImpl. sendPdu(TransportMapping<? super A> transport, Target<A> target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> pduHandleCallback)
void
Snmp. set(PDU pdu, Target<?> target, java.lang.Object userHandle, ResponseListener listener)
Asynchronously sends a SET requestPDU
to the given target.<A extends Address>
ResponseEvent<A>Snmp. set(PDU pdu, Target<A> target)
Sends a SET request to a target.void
Snmp.PendingRequest. setNextPDU(PDU nextPDU)
void
MutablePDU. setPdu(PDU pdu)
void
CommandResponderEvent. setPDU(PDU pdu)
Method parameters in org.snmp4j with type arguments of type PDU Modifier and Type Method Description protected <A extends Address>
PduHandleSnmp. sendMessage(PDU pdu, Target<A> target, TransportMapping<? super A> transport, PduHandleCallback<PDU> pduHandleCallback)
Actually sends a PDU to a target and returns a handle for the sent PDU.<A extends Address>
PduHandleMessageDispatcher. sendPdu(TransportMapping<? super A> transportMapping, Target<A> target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> callback)
Sends a PDU to the supplied transport address and returns thePduHandle
that uniquely identifies the request as response after the request has been sent and optional, if aPduHandleCallback
is given, it returns also thePduHandle
just before the request is sent through the the callback interface.<A extends Address>
PduHandleMessageDispatcherImpl. sendPdu(TransportMapping<? super A> transport, Target<A> target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> pduHandleCallback)
Constructors in org.snmp4j with parameters of type PDU Constructor Description CommandResponderEvent(MessageDispatcher messageDispatcher, TransportMapping<? super A> transportMapping, A sourceAddress, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PduHandle pduHandle, PDU pdu, int maxSizeResponseScopedPDU, StateReference<A> stateReference)
Constructs an event for processing an incoming request or notification PDU.PDU(PDU other)
Copy constructor which creates a deep copy (clone) of the other PDU.PendingRequest(ResponseListener listener, java.lang.Object userObject, PDU pdu, Target<A> target, TransportMapping<? super A> transport)
-
Uses of PDU in org.snmp4j.event
Methods in org.snmp4j.event that return PDU Modifier and Type Method Description PDU
ResponseEvent. getRequest()
Gets the request PDU.PDU
ResponseEvent. getResponse()
Gets the response PDU.Methods in org.snmp4j.event with parameters of type PDU Modifier and Type Method Description protected void
ResponseEvent. setRequest(PDU request)
protected void
ResponseEvent. setResponse(PDU response)
Constructors in org.snmp4j.event with parameters of type PDU Constructor Description ResponseEvent(java.lang.Object source, A peerAddress, PDU request, PDU response, java.lang.Object userObject)
Creates anResponseEvent
instance.ResponseEvent(java.lang.Object source, A peerAddress, PDU request, PDU response, java.lang.Object userObject, java.lang.Exception error)
Creates anResponseEvent
instance with an exception object indicating a message processing error. -
Uses of PDU in org.snmp4j.fluent
Methods in org.snmp4j.fluent that return PDU Modifier and Type Method Description PDU
PduBuilder. build()
Methods in org.snmp4j.fluent with parameters of type PDU Modifier and Type Method Description static <A extends Address>
SnmpCompletableFutureSnmpCompletableFuture. send(Snmp snmp, Target<A> target, PDU pdu, java.lang.Object... userObjects)
-
Uses of PDU in org.snmp4j.mp
Methods in org.snmp4j.mp that return PDU Modifier and Type Method Description PDU
MPv3. createPDU(Target<?> target)
Deprecated.Methods in org.snmp4j.mp with parameters of type PDU Modifier and Type Method Description <A extends Address>
intMessageProcessingModel. prepareOutgoingMessage(A transportAddress, int maxMsgSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, BEROutputStream outgoingMessage, TransportStateReference tmStateReference)
Prepares an outgoing message as defined in RFC3412 §7.1.<A extends Address>
intMPv1. prepareOutgoingMessage(A transportAddress, int maxMessageSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, BEROutputStream outgoingMessage, TransportStateReference tmStateReference)
<A extends Address>
intMPv2c. prepareOutgoingMessage(A transportAddress, int maxMessageSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, BEROutputStream outgoingMessage, TransportStateReference tmStateReference)
<A extends Address>
intMPv3. prepareOutgoingMessage(A transportAddress, int maxMessageSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, BEROutputStream outgoingMessage, TransportStateReference tmStateReference)
<A extends Address>
intMessageProcessingModel. prepareResponseMessage(int messageProcessingModel, int maxMsgSize, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference<A> stateReference, StatusInformation statusInformation, BEROutputStream outgoingMessage)
Prepares a response message as defined in RFC3412 §7.1.<A extends Address>
intMPv1. prepareResponseMessage(int messageProcessingModel, int maxMessageSize, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference<A> stateReference, StatusInformation statusInformation, BEROutputStream outgoingMessage)
<A extends Address>
intMPv2c. prepareResponseMessage(int messageProcessingModel, int maxMessageSize, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference<A> stateReference, StatusInformation statusInformation, BEROutputStream outgoingMessage)
<A extends Address>
intMPv3. prepareResponseMessage(int messageProcessingModel, int maxMessageSize, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference<A> stateReference, StatusInformation statusInformation, BEROutputStream outgoingMessage)
-
Uses of PDU in org.snmp4j.tools.console
Methods in org.snmp4j.tools.console that return PDU Modifier and Type Method Description PDU
SnmpCommand. send()
Methods in org.snmp4j.tools.console with parameters of type PDU Modifier and Type Method Description protected static void
SnmpCommand. printReport(PDU response)
protected static void
SnmpCommand. printVariableBindings(PDU response)
-
Uses of PDU in org.snmp4j.util
Fields in org.snmp4j.util declared as PDU Modifier and Type Field Description protected PDU
RetrievalEvent. reportPDU
Methods in org.snmp4j.util that return PDU Modifier and Type Method Description static PDU
DefaultPDUFactory. createPDU(int targetVersion)
Creates aPDU
instance for the specified SNMP version.PDU
DefaultPDUFactory. createPDU(MessageProcessingModel messageProcessingModel)
Creates aPDU
instance for the specifiedMessageProcessingModel
.static PDU
DefaultPDUFactory. createPDU(MessageProcessingModel messageProcessingModel, int pduType)
Creates aPDU
instance for the specifiedMessageProcessingModel
and PDU type.PDU
DefaultPDUFactory. createPDU(Target<?> target)
Create aPDU
instance for the supplied target.static PDU
DefaultPDUFactory. createPDU(Target<?> target, int pduType)
Create aPDU
instance for the supplied target.static PDU
DefaultPDUFactory. createPDU(Target<?> target, int pduType, int maxRepetitions, int nonRepeaters)
Create aPDU
instance for the supplied target.PDU
PDUFactory. createPDU(MessageProcessingModel messageProcessingModel)
Creates aPDU
instance that is compatible with the given SNMP version (message processing model).PDU
PDUFactory. createPDU(Target<?> target)
Creates aPDU
instance for the supplied target.PDU
SnmpConfigurator.InnerPDUFactory. createPDU(MessageProcessingModel messageProcessingModel)
PDU
SnmpConfigurator.InnerPDUFactory. createPDU(Target<?> target)
PDU
RetrievalEvent. getReportPDU()
Gets the report PDU associated with this event.protected PDU
TableUtils.TableRequest. sendGetPDU(TableUtils.Row firstCacheRow, ResponseListener responseListener, PDU pdu)
Methods in org.snmp4j.util with parameters of type PDU Modifier and Type Method Description protected void
DefaultPDUFactory. applyContextInfoToScopedPDU(PDU pdu)
Sets context engine ID and context name members on the given PDU if that PDU is aScopedPDU
.<A extends Address>
intMultiThreadedMessageDispatcher. returnResponsePdu(int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference<A> stateReference, StatusInformation statusInformation)
protected PDU
TableUtils.TableRequest. sendGetPDU(TableUtils.Row firstCacheRow, ResponseListener responseListener, PDU pdu)
<A extends Address>
PduHandleMultiThreadedMessageDispatcher. sendPdu(Target<A> target, PDU pdu, boolean expectResponse)
<A extends Address>
PduHandleMultiThreadedMessageDispatcher. sendPdu(TransportMapping<? super A> transportMapping, Target<A> target, PDU pdu, boolean expectResponse)
<A extends Address>
PduHandleMultiThreadedMessageDispatcher. sendPdu(TransportMapping<? super A> transportMapping, Target<A> target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> callback)
protected void
TableUtils.TableRequest. sendRequest(PDU pdu, Target<?> target, TableUtils.ColumnsOfRequest sendColumns)
Method parameters in org.snmp4j.util with type arguments of type PDU Modifier and Type Method Description <A extends Address>
PduHandleMultiThreadedMessageDispatcher. sendPdu(TransportMapping<? super A> transportMapping, Target<A> target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> callback)
Constructors in org.snmp4j.util with parameters of type PDU Constructor Description RetrievalEvent(org.snmp4j.util.TreeUtils.TreeRequest source, java.lang.Object userObject, PDU report)
Creates a retrieval event with a report PDU.TableEvent(TableUtils.TableRequest source, java.lang.Object userObject, PDU report)
Creates a table event with a report PDU.TreeEvent(org.snmp4j.util.TreeUtils.TreeRequest source, java.lang.Object userObject, PDU report)
-