Uses of Interface
org.snmp4j.TransportMapping
Packages that use TransportMapping
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.
Provides transport protocol mappings for SNMP.
Contains table retrieval utilities and multi-threading support classes as
well as miscellaneous utility classes.
-
Uses of TransportMapping in org.snmp4j
Methods in org.snmp4j that return TransportMappingModifier and TypeMethodDescriptionSnmp.getNotificationListenerTM(Address listenAddress) Gets the transport mapping registered for the specified listen address.MessageDispatcher.getTransport(Address destAddress) Returns a transport mapping that can handle the supplied address.MessageDispatcherImpl.getTransport(Address destAddress) Returns a transport mapping that can handle the supplied address.TransportStateReference.getTransport()CommandResponderEvent.getTransportMapping()Returns the transport mapping that received the PDU that triggered this event.protected TransportMappingSnmp.lookupTransportMapping(Target target) MessageDispatcher.removeTransportMapping(TransportMapping<? extends Address> transport) Removes a previously addedTransportMappingfrom the dispatcher.MessageDispatcherImpl.removeTransportMapping(TransportMapping transport) Removes a transport mapping.Methods in org.snmp4j that return types with arguments of type TransportMappingModifier and TypeMethodDescriptionList<TransportMapping<? extends Address>>AbstractTarget.getPreferredTransports()List<TransportMapping<? extends Address>>Target.getPreferredTransports()Gets the prioritised list of transport mappings to be used for this target.MessageDispatcher.getTransportMappings()Gets theCollectionof transport mappings in this message dispatcher.MessageDispatcherImpl.getTransportMappings()Gets a collection of all registered transport mappings.Methods in org.snmp4j with parameters of type TransportMappingModifier and TypeMethodDescriptionbooleanSnmp.addNotificationListener(TransportMapping transportMapping, Address listenAddress, CommandResponder listener) Adds a notification listener to this Snmp instance.voidMessageDispatcher.addTransportMapping(TransportMapping<? extends Address> transport) Adds aTransportMappingto the dispatcher.voidMessageDispatcherImpl.addTransportMapping(TransportMapping transport) Adds a transport mapping.voidSnmp.addTransportMapping(TransportMapping<? extends Address> transportMapping) Adds aTransportMappingto this SNMP session.protected voidSnmp.closeTransportMapping(TransportMapping tm) protected voidMessageDispatcherImpl.dispatchMessage(TransportMapping sourceTransport, MessageProcessingModel mp, Address incomingAddress, BERInputStream wholeMessage, TransportStateReference tmStateReference) Actually decodes and dispatches an incoming SNMP message using the supplied message processing model.voidMessageDispatcher.processMessage(TransportMapping sourceTransport, Address incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) Process an incoming SNMP message.voidMessageDispatcherImpl.processMessage(TransportMapping sourceTransport, Address incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) voidMessageDispatcherImpl.processMessage(TransportMapping sourceTransport, Address incomingAddress, BERInputStream wholeMessage, TransportStateReference tmStateReference) MessageDispatcher.removeTransportMapping(TransportMapping<? extends Address> transport) Removes a previously addedTransportMappingfrom the dispatcher.MessageDispatcherImpl.removeTransportMapping(TransportMapping transport) Removes a transport mapping.voidSnmp.removeTransportMapping(TransportMapping<? extends Address> transportMapping) Removes the specified transport mapping from this SNMP session.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.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 voidMessageDispatcherImpl.sendMessage(TransportMapping transport, Address destAddress, byte[] message, TransportStateReference tmStateReference) Sends a message using theTransportMappingthat has been assigned for the supplied address type.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.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) protected voidCommandResponderEvent.setTransportMapping(TransportMapping transportMapping) Method parameters in org.snmp4j with type arguments of type TransportMappingModifier and TypeMethodDescriptionvoidAbstractTarget.setPreferredTransports(List<TransportMapping<? extends Address>> preferredTransports) Sets the prioritised list of transport mappings to be used for this target.Constructors in org.snmp4j with parameters of type TransportMappingModifierConstructorDescriptionCommandResponderEvent(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.Snmp(MessageDispatcher messageDispatcher, TransportMapping<? extends Address> transportMapping) Creates aSnmpinstance by supplying aMessageDispatcherand aTransportMapping.Snmp(TransportMapping<? extends Address> transportMapping) Creates aSnmpinstance that uses aMessageDispatcherImplwith all supported message processing models and the default security protols for dispatching.TransportStateReference(TransportMapping transport, Address address, OctetString securityName, SecurityLevel requestedSecurityLevel, SecurityLevel transportSecurityLevel, boolean sameSecurity, Object sessionID) TransportStateReference(TransportMapping transport, Address address, OctetString securityName, SecurityLevel requestedSecurityLevel, SecurityLevel transportSecurityLevel, boolean sameSecurity, Object sessionID, CertifiedIdentity certifiedIdentity) -
Uses of TransportMapping in org.snmp4j.event
Methods in org.snmp4j.event that return TransportMappingModifier and TypeMethodDescriptionAuthenticationFailureEvent.getTransport()Returns the transport mapping over which the message has bee received.Constructors in org.snmp4j.event with parameters of type TransportMappingModifierConstructorDescriptionAuthenticationFailureEvent(TransportListener source, Address sourceAddress, TransportMapping transport, int error, BERInputStream message) Creates an authentication failure event. -
Uses of TransportMapping in org.snmp4j.mp
Methods in org.snmp4j.mp that return TransportMappingModifier and TypeMethodDescriptionTransportMapping<? super A>StateReference.getTransportMapping()Methods in org.snmp4j.mp with parameters of type TransportMappingModifier and TypeMethodDescriptionvoidStateReference.setTransportMapping(TransportMapping<? super A> transportMapping) Constructors in org.snmp4j.mp with parameters of type TransportMappingModifierConstructorDescriptionStateReference(int msgID, int msgFlags, int maxSizeResponseScopedPDU, PduHandle pduHandle, A peerAddress, TransportMapping<? super A> peerTransport, byte[] secEngineID, SecurityModel secModel, byte[] secName, int secLevel, byte[] contextEngineID, byte[] contextName, SecurityStateReference secStateReference, int errorCode) Creates a state reference for SNMPv3 messages.StateReference(PduHandle pduHandle, A peerAddress, TransportMapping<? super A> peerTransport, SecurityModel secModel, byte[] secName, int errorCode) Creates a state reference for community based security models. -
Uses of TransportMapping in org.snmp4j.transport
Subinterfaces of TransportMapping in org.snmp4j.transportModifier and TypeInterfaceDescriptioninterfaceConnectionOrientedTransportMapping<A extends Address>Transport mappings for connection oriented transport protocols have to implement this interface.Classes in org.snmp4j.transport that implement TransportMappingModifier and TypeClassDescriptionclassAbstractTransportMapping<A extends Address>TheAbstractTransportMappingprovides an abstract implementation for the message dispatcher list and the maximum inbound message size.classTheDefaultSshTransportMappingimplements a TCP transport mapping with TLS according to RFC 5592 (named SSHTM therein).classTheDefaultTcpTransportMappingimplements a TCP transport mapping with the Java 1.4 new IO API.classTheDefaultUdpTransportMappingimplements a UDP transport mapping based on Java standard IO and using an internal thread for listening on the inbound socket.classDummyTransport<A extends IpAddress>TheDummyTransportis a test TransportMapping for Command Generators which actually does not sent messages over the network.classclassTheTcpTransportMappingis the abstract base class for TCP transport mappings.classTheTLSTMimplements the Transport Layer Security Transport Mapping (TLS-TM) as defined by RFC 5953 with the new IO API andSSLEngine.classTheUdpTransportMappingis the abstract base class for UDP transport mappings.Methods in org.snmp4j.transport that return TransportMappingModifier and TypeMethodDescriptionTransportMapping<? extends Address>TransportMappings.createTransportMapping(Address transportAddress) Returns aTransportMappinginstance that is initialized with the supplied transport address.Methods in org.snmp4j.transport with parameters of type TransportMappingModifier and TypeMethodDescriptionvoidTransportListener.processMessage(TransportMapping sourceTransport, Address incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) Processes an incoming message. -
Uses of TransportMapping in org.snmp4j.util
Methods in org.snmp4j.util that return TransportMappingModifier and TypeMethodDescriptionMultiThreadedMessageDispatcher.getTransport(Address destAddress) MultiThreadedMessageDispatcher.removeTransportMapping(TransportMapping<? extends Address> transport) Methods in org.snmp4j.util that return types with arguments of type TransportMappingMethods in org.snmp4j.util with parameters of type TransportMappingModifier and TypeMethodDescriptionvoidMultiThreadedMessageDispatcher.addTransportMapping(TransportMapping<? extends Address> transport) voidMultiThreadedMessageDispatcher.processMessage(TransportMapping sourceTransport, Address incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) MultiThreadedMessageDispatcher.removeTransportMapping(TransportMapping<? extends Address> transport) MultiThreadedMessageDispatcher.sendPdu(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse) MultiThreadedMessageDispatcher.sendPdu(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> callback)