Uses of Class
org.snmp4j.PDU
Packages that use 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
Subclasses of PDU in org.snmp4jModifier and TypeClassDescriptionclassThePDUv1represents SNMPv1 PDUs.classTheScopedPDUclass represents a SNMPv3 scoped PDU.Methods in org.snmp4j that return PDUMethods in org.snmp4j with parameters of type PDUModifier and TypeMethodDescriptionvoidSession.cancel(PDU request, ResponseListener listener) Cancels an asynchronous request.voidSnmp.cancel(PDU request, ResponseListener listener) protected voidMessageDispatcherImpl.checkOutgoingMsg(Address transportAddress, int messageProcessingModel, PDU pdu) Checks outgoing messages for consistency between PDU and target used.Sends a GET request to a target.voidSnmp.get(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends a GET requestPDUto the given target.Sends a GETBULK request to a target.voidSnmp.getBulk(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends a GETBULK requestPDUto the given target.Sends a GETNEXT request to a target.voidSnmp.getNext(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends a GETNEXT requestPDUto the given target.protected voidSnmp.handleInternalResponse(PDU response, PDU pdu, Address target) Sends an INFORM request to a target.voidSnmp.inform(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends an INFORM requestPDUto the given target.voidSends a SNMPv2c or SNMPv3 notification to a target.protected booleanSnmp.resendRequest(org.snmp4j.Snmp.PendingRequest request, PDU response) intMessageDispatcher.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.intMessageDispatcherImpl.returnResponsePdu(int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference, StatusInformation statusInformation) Sends aPDUto the given target and returns the received responsePDU.voidSession.send(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends aPDUto the given target.Session.send(PDU pdu, Target target, TransportMapping transport) Sends aPDUto the given target and returns the received responsePDUencapsulated in aResponseEventobject that also includes: the transport address of the response sending peer, theTargetinformation of the target, the requestPDU, the responsePDU(if any).voidSession.send(PDU pdu, Target target, TransportMapping transport, Object userHandle, ResponseListener listener) Asynchronously sends aPDUto the given target.voidSnmp.send(PDU pdu, Target target, Object userHandle, ResponseListener listener) Snmp.send(PDU pdu, Target target, TransportMapping transport) Sends aPDUto the given target and if thePDUis a confirmed request, then the received response is returned synchronously.voidSnmp.send(PDU pdu, Target target, TransportMapping transport, Object userHandle, ResponseListener listener) protected PduHandleSnmp.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 thePduHandlethat uniquely identifies the request as response after the request has been sent and optional, if aPduHandleCallbackis given, it returns also thePduHandlejust 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.voidSnmp.set(PDU pdu, Target target, Object userHandle, ResponseListener listener) Asynchronously sends a SET requestPDUto the given target.voidvoidMethod parameters in org.snmp4j with type arguments of type PDUModifier and TypeMethodDescriptionprotected PduHandleSnmp.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 thePduHandlethat uniquely identifies the request as response after the request has been sent and optional, if aPduHandleCallbackis given, it returns also thePduHandlejust before the request is sent through the the callback interface.MessageDispatcherImpl.sendPdu(TransportMapping transport, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> pduHandleCallback) Constructors in org.snmp4j with parameters of type PDUModifierConstructorDescriptionCommandResponderEvent(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
Methods in org.snmp4j.event that return PDUModifier and TypeMethodDescriptionResponseEvent.getRequest()Gets the request PDU.ResponseEvent.getResponse()Gets the response PDU.Methods in org.snmp4j.event with parameters of type PDUModifier and TypeMethodDescriptionprotected final voidResponseEvent.setRequest(PDU request) protected final voidResponseEvent.setResponse(PDU response) Constructors in org.snmp4j.event with parameters of type PDU -
Uses of PDU in org.snmp4j.mp
Methods in org.snmp4j.mp that return PDUMethods in org.snmp4j.mp with parameters of type PDUModifier and TypeMethodDescriptionintMessageProcessingModel.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.intMPv1.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) intMPv2c.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) intMPv3.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) intMessageProcessingModel.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.intMPv1.prepareResponseMessage(int messageProcessingModel, int maxMessageSize, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference, StatusInformation statusInformation, BEROutputStream outgoingMessage) intMPv2c.prepareResponseMessage(int messageProcessingModel, int maxMessageSize, int securityModel, byte[] securityName, int securityLevel, PDU pdu, int maxSizeResponseScopedPDU, StateReference stateReference, StatusInformation statusInformation, BEROutputStream outgoingMessage) intMPv3.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
Methods in org.snmp4j.tools.console that return PDUModifier and TypeMethodDescriptionSnmpRequest.createPDU(MessageProcessingModel messageProcessingModel) SnmpRequest.send()Methods in org.snmp4j.tools.console with parameters of type PDUModifier and TypeMethodDescriptionprotected static voidSnmpRequest.printReport(PDU response) protected static voidSnmpRequest.printVariableBindings(PDU response) -
Uses of PDU in org.snmp4j.util
Fields in org.snmp4j.util declared as PDUMethods in org.snmp4j.util that return PDUModifier and TypeMethodDescriptionstatic PDUDefaultPDUFactory.createPDU(int targetVersion) Creates aPDUinstance for the specified SNMP version.DefaultPDUFactory.createPDU(MessageProcessingModel messageProcessingModel) Creates aPDUinstance for the specifiedMessageProcessingModel.static PDUDefaultPDUFactory.createPDU(MessageProcessingModel messageProcessingModel, int pduType) Creates aPDUinstance for the specifiedMessageProcessingModeland PDU type.Create aPDUinstance for the supplied target.static PDUCreate aPDUinstance for the supplied target.static PDUCreate aPDUinstance for the supplied target.PDUFactory.createPDU(MessageProcessingModel messageProcessingModel) Creates aPDUinstance that is compatible with the given SNMP version (message processing model).Creates aPDUinstance for the supplied target.SnmpConfigurator.InnerPDUFactory.createPDU(MessageProcessingModel messageProcessingModel) RetrievalEvent.getReportPDU()Gets the report PDU associated with this event.Methods in org.snmp4j.util with parameters of type PDUModifier and TypeMethodDescriptionprotected voidDefaultPDUFactory.applyContextInfoToScopedPDU(PDU pdu) Sets context engine ID and context name members on the given PDU if that PDU is aScopedPDU.intMultiThreadedMessageDispatcher.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 voidTableUtils.TableRequest.sendRequest(PDU pdu, Target target, TableUtils.ColumnsOfRequest sendColumns) Method parameters in org.snmp4j.util with type arguments of type PDUModifier and TypeMethodDescriptionMultiThreadedMessageDispatcher.sendPdu(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> callback) Constructors in org.snmp4j.util with parameters of type PDUModifierConstructorDescriptionRetrievalEvent(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.