Uses of Class
org.snmp4j.PDU
Package
Description
Provides classes and interfaces for creating, sending, and receiving SNMP
messages.
Provides classes and interfaces for SNMP4J event processing.
Provides classes and interfaces for the SNMP message processing.
Contains table retrieval utilities and multi-threading support classes as
well as miscellaneous utility classes.
-
Uses of PDU in org.snmp4j
Modifier and TypeClassDescriptionclass
ThePDUv1
represents SNMPv1 PDUs.class
TheScopedPDU
class represents a SNMPv3 scoped PDU.Modifier and TypeMethodDescriptionvoid
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.Sends a GET request to a target.void
Snmp.get
(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends a GET requestPDU
to the given target.Sends a GETBULK request to a target.void
Snmp.getBulk
(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends a GETBULK requestPDU
to the given target.Sends a GETNEXT request to a target.void
Snmp.getNext
(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends a GETNEXT requestPDU
to the given target.protected void
Snmp.handleInternalResponse
(PDU response, PDU pdu, Address target) Sends an INFORM request to a target.void
Snmp.inform
(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends an INFORM requestPDU
to the given target.void
Sends a SNMPv2c or SNMPv3 notification to a target.protected boolean
Snmp.resendRequest
(org.snmp4j.Snmp.PendingRequest request, PDU response) int
MessageDispatcher.returnResponsePdu
(int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference, StatusInformation statusInformation) Returns a response PDU to the sender of the corresponding request PDU.int
MessageDispatcherImpl.returnResponsePdu
(int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference, StatusInformation statusInformation) Sends aPDU
to the given target and returns the received responsePDU
.void
Session.send
(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends aPDU
to the given target.Session.send
(PDU pdu, Target target, TransportMapping 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).void
Session.send
(PDU pdu, Target target, TransportMapping transport, Object userHandle, ResponseListener listener) Asynchronously sends aPDU
to the given target.void
Snmp.send
(PDU pdu, Target target, Object userHandle, ResponseListener listener) Snmp.send
(PDU pdu, Target target, TransportMapping transport) Sends aPDU
to the given target and if thePDU
is a confirmed request, then the received response is returned synchronously.void
Snmp.send
(PDU pdu, Target target, TransportMapping transport, Object userHandle, ResponseListener listener) protected PduHandle
Snmp.sendMessage
(PDU pdu, Target target, TransportMapping transport, PduHandleCallback<PDU> pduHandleCallback) Actually sends a PDU to a target and returns a handle for the sent PDU.Sends a PDU to the supplied transport address.MessageDispatcher.sendPdu
(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse) Sends a PDU to the supplied transport address.MessageDispatcher.sendPdu
(TransportMapping transportMapping, Target 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.MessageDispatcherImpl.sendPdu
(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse) MessageDispatcherImpl.sendPdu
(TransportMapping transport, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> pduHandleCallback) Sends a SET request to a target.void
Snmp.set
(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends a SET requestPDU
to the given target.void
void
Modifier and TypeMethodDescriptionprotected PduHandle
Snmp.sendMessage
(PDU pdu, Target target, TransportMapping transport, PduHandleCallback<PDU> pduHandleCallback) Actually sends a PDU to a target and returns a handle for the sent PDU.MessageDispatcher.sendPdu
(TransportMapping transportMapping, Target 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.MessageDispatcherImpl.sendPdu
(TransportMapping transport, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> pduHandleCallback) ModifierConstructorDescriptionCommandResponderEvent
(MessageDispatcher messageDispatcher, TransportMapping transportMapping, Address sourceAddress, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PduHandle pduHandle, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference) Constructs an event for processing an incoming request or notification PDU.Copy constructor which creates a deep copy (clone) of the other PDU. -
Uses of PDU in org.snmp4j.event
Modifier and TypeMethodDescriptionResponseEvent.getRequest()
Gets the request PDU.ResponseEvent.getResponse()
Gets the response PDU.Modifier and TypeMethodDescriptionprotected final void
ResponseEvent.setRequest
(PDU request) protected final void
ResponseEvent.setResponse
(PDU response) -
Uses of PDU in org.snmp4j.mp
Modifier and TypeMethodDescriptionint
MessageProcessingModel.prepareOutgoingMessage
(Address transportAddress, int maxMsgSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, Address destTransportAddress, BEROutputStream outgoingMessage, TransportStateReference tmStateReference) Prepares an outgoing message as defined in RFC3412 §7.1.int
MPv1.prepareOutgoingMessage
(Address transportAddress, int maxMessageSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, Address destTransportAddress, BEROutputStream outgoingMessage, TransportStateReference tmStateReference) int
MPv2c.prepareOutgoingMessage
(Address transportAddress, int maxMessageSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, Address destTransportAddress, BEROutputStream outgoingMessage, TransportStateReference tmStateReference) int
MPv3.prepareOutgoingMessage
(Address transportAddress, int maxMessageSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, Address destTransportAddress, BEROutputStream outgoingMessage, TransportStateReference tmStateReference) int
MessageProcessingModel.prepareResponseMessage
(int messageProcessingModel, int maxMsgSize, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference, StatusInformation statusInformation, BEROutputStream outgoingMessage) Prepares a response message as defined in RFC3412 §7.1.int
MPv1.prepareResponseMessage
(int messageProcessingModel, int maxMessageSize, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference, StatusInformation statusInformation, BEROutputStream outgoingMessage) int
MPv2c.prepareResponseMessage
(int messageProcessingModel, int maxMessageSize, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference, StatusInformation statusInformation, BEROutputStream outgoingMessage) int
MPv3.prepareResponseMessage
(int messageProcessingModel, int maxMessageSize, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference, StatusInformation statusInformation, BEROutputStream outgoingMessage) -
Uses of PDU in org.snmp4j.tools.console
Modifier and TypeMethodDescriptionSnmpRequest.createPDU
(MessageProcessingModel messageProcessingModel) SnmpRequest.send()
Modifier and TypeMethodDescriptionprotected static void
SnmpRequest.printReport
(PDU response) protected static void
SnmpRequest.printVariableBindings
(PDU response) -
Uses of PDU in org.snmp4j.util
Modifier and TypeMethodDescriptionstatic PDU
DefaultPDUFactory.createPDU
(int targetVersion) Creates aPDU
instance for the specified SNMP version.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.Create aPDU
instance for the supplied target.static PDU
Create aPDU
instance for the supplied target.static PDU
Create aPDU
instance for the supplied target.PDUFactory.createPDU
(MessageProcessingModel messageProcessingModel) Creates aPDU
instance that is compatible with the given SNMP version (message processing model).Creates aPDU
instance for the supplied target.SnmpConfigurator.InnerPDUFactory.createPDU
(MessageProcessingModel messageProcessingModel) RetrievalEvent.getReportPDU()
Gets the report PDU associated with this event.Modifier and TypeMethodDescriptionprotected void
DefaultPDUFactory.applyContextInfoToScopedPDU
(PDU pdu) Sets context engine ID and context name members on the given PDU if that PDU is aScopedPDU
.int
MultiThreadedMessageDispatcher.returnResponsePdu
(int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference, StatusInformation statusInformation) MultiThreadedMessageDispatcher.sendPdu
(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse) MultiThreadedMessageDispatcher.sendPdu
(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> callback) protected void
TableUtils.TableRequest.sendRequest
(PDU pdu, Target target, TableUtils.ColumnsOfRequest sendColumns) Modifier and TypeMethodDescriptionMultiThreadedMessageDispatcher.sendPdu
(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> callback) ModifierConstructorDescriptionRetrievalEvent
(org.snmp4j.util.TreeUtils.TreeRequest source, Object userObject, PDU report) Creates a retrieval event with a report PDU.TableEvent
(TableUtils.TableRequest source, Object userObject, PDU report) Creates a table event with a report PDU.
DefaultPDUFactory.createPDU(MessageProcessingModel, int)
instead.