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.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 classPDUv1ThePDUv1represents SNMPv1 PDUs.classScopedPDUTheScopedPDUclass represents a SNMPv3 scoped PDU.Fields in org.snmp4j declared as PDU Modifier and Type Field Description protected PDUSnmp.PendingRequest. pduMethods in org.snmp4j that return PDU Modifier and Type Method Description PDUSnmp.PendingRequest. getNextPDU()PDUMutablePDU. getPdu()PDUCommandResponderEvent. getPDU()Methods in org.snmp4j with parameters of type PDU Modifier and Type Method Description voidSession. 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.<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 requestPDUto 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 requestPDUto 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 requestPDUto the given target.protected voidSnmp. 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 requestPDUto the given target.voidSnmp.PendingRequest. insertFirstPDU(PDU firstPDU)voidSnmp. notify(PDU pdu, Target<?> target)Sends a SNMPv2c or SNMPv3 notification to a target.voidSnmp.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 aPDUto 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 aPDUto the given target.<A extends Address>
ResponseEvent<A>Session. send(PDU pdu, Target<A> target, TransportMapping<? super A> 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).<A extends Address>
voidSession. send(PDU pdu, Target<A> target, TransportMapping<? super A> transport, java.lang.Object userHandle, ResponseListener listener)Asynchronously sends aPDUto 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 aPDUto the given target and if thePDUis 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 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.<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)voidSnmp. set(PDU pdu, Target<?> target, java.lang.Object userHandle, ResponseListener listener)Asynchronously sends a SET requestPDUto the given target.<A extends Address>
ResponseEvent<A>Snmp. set(PDU pdu, Target<A> target)Sends a SET request to a target.voidSnmp.PendingRequest. setNextPDU(PDU nextPDU)voidMutablePDU. setPdu(PDU pdu)voidCommandResponderEvent. 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 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.<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 PDUResponseEvent. getRequest()Gets the request PDU.PDUResponseEvent. getResponse()Gets the response PDU.Methods in org.snmp4j.event with parameters of type PDU Modifier and Type Method Description protected voidResponseEvent. setRequest(PDU request)protected voidResponseEvent. 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 anResponseEventinstance.ResponseEvent(java.lang.Object source, A peerAddress, PDU request, PDU response, java.lang.Object userObject, java.lang.Exception error)Creates anResponseEventinstance with an exception object indicating a message processing error. -
Uses of PDU in org.snmp4j.mp
Methods in org.snmp4j.mp that return PDU Modifier and Type Method Description PDUMPv3. 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 PDUSnmpCommand. send()Methods in org.snmp4j.tools.console with parameters of type PDU Modifier and Type Method Description protected static voidSnmpCommand. printReport(PDU response)protected static voidSnmpCommand. printVariableBindings(PDU response) -
Uses of PDU in org.snmp4j.util
Fields in org.snmp4j.util declared as PDU Modifier and Type Field Description protected PDURetrievalEvent. reportPDUMethods in org.snmp4j.util that return PDU Modifier and Type Method Description static PDUDefaultPDUFactory. createPDU(int targetVersion)Creates aPDUinstance for the specified SNMP version.PDUDefaultPDUFactory. createPDU(MessageProcessingModel messageProcessingModel)Creates aPDUinstance for the specifiedMessageProcessingModel.static PDUDefaultPDUFactory. createPDU(MessageProcessingModel messageProcessingModel, int pduType)Creates aPDUinstance for the specifiedMessageProcessingModeland PDU type.PDUDefaultPDUFactory. createPDU(Target<?> target)Create aPDUinstance for the supplied target.static PDUDefaultPDUFactory. createPDU(Target<?> target, int pduType)Create aPDUinstance for the supplied target.static PDUDefaultPDUFactory. createPDU(Target<?> target, int pduType, int maxRepetitions, int nonRepeaters)Create aPDUinstance for the supplied target.PDUPDUFactory. createPDU(MessageProcessingModel messageProcessingModel)Creates aPDUinstance that is compatible with the given SNMP version (message processing model).PDUPDUFactory. createPDU(Target<?> target)Creates aPDUinstance for the supplied target.PDUSnmpConfigurator.InnerPDUFactory. createPDU(MessageProcessingModel messageProcessingModel)PDUSnmpConfigurator.InnerPDUFactory. createPDU(Target<?> target)PDURetrievalEvent. getReportPDU()Gets the report PDU associated with this event.protected PDUTableUtils.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 voidDefaultPDUFactory. 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 PDUTableUtils.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 voidTableUtils.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)
-