Uses of Interface
org.snmp4j.TransportMapping
-
Packages that use TransportMapping 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.transport Provides transport protocol mappings for SNMP.org.snmp4j.util Contains table retrieval utilities and multi-threading support classes as well as miscellaneous utility classes. -
-
Uses of TransportMapping in org.snmp4j
Fields in org.snmp4j declared as TransportMapping Modifier and Type Field Description protected TransportMapping<? super A>
Snmp.PendingRequest. transport
Methods in org.snmp4j that return TransportMapping Modifier and Type Method Description TransportMapping<?>
Snmp. getNotificationListenerTM(Address listenAddress)
Gets the transport mapping registered for the specified listen address.<A extends Address>
TransportMapping<? super A>MessageDispatcher. getTransport(A destAddress)
Deprecated.UseMessageDispatcher.getTransport(Address, TransportType)
instead to make sure that the returned mapping supports the intended SNMP application type usage (i.e.<A extends Address>
TransportMapping<? super A>MessageDispatcher. getTransport(A destAddress, TransportType transportType)
Returns a transport mapping that can handle the supplied address.<A extends Address>
TransportMapping<? super A>MessageDispatcherImpl. getTransport(A destAddress)
Deprecated.UseMessageDispatcherImpl.getTransport(Address, TransportType)
instead to make sure that the returned mapping supports the intended SNMP application type usage (i.e.<A extends Address>
TransportMapping<? super A>MessageDispatcherImpl. getTransport(A destAddress, TransportType transportType)
Returns a transport mapping that can handle the supplied address.TransportMapping<?>
TransportStateReference. getTransport()
TransportMapping<? super A>
CommandResponderEvent. getTransportMapping()
Returns the transport mapping that received the PDU that triggered this event.TransportMapping<?>
Snmp.NotificationDispatcher. getTransportMapping(Address listenAddress)
protected <A extends Address>
TransportMapping<? super A>Snmp. lookupTransportMapping(Target<A> target)
TransportMapping<? extends Address>
MessageDispatcher. removeTransportMapping(TransportMapping<? extends Address> transport)
Removes a previously addedTransportMapping
from the dispatcher.TransportMapping<? extends Address>
MessageDispatcherImpl. removeTransportMapping(TransportMapping<?> transport)
Removes a transport mapping.Methods in org.snmp4j that return types with arguments of type TransportMapping Modifier and Type Method Description java.util.List<TransportMapping<? super A>>
AbstractTarget. getPreferredTransports()
java.util.List<TransportMapping<? super A>>
Target. getPreferredTransports()
Gets the prioritised list of transport mappings to be used for this target.java.util.Collection<TransportMapping<? extends Address>>
MessageDispatcher. getTransportMappings()
Gets theCollection
of transport mappings in this message dispatcher.java.util.Collection<TransportMapping<? extends Address>>
MessageDispatcherImpl. getTransportMappings()
Gets a collection of all registered transport mappings.Methods in org.snmp4j with parameters of type TransportMapping Modifier and Type Method Description boolean
Snmp. addNotificationListener(TransportMapping<?> transportMapping, Address listenAddress, CommandResponder listener)
Adds a notification listener to this Snmp instance.void
Snmp.NotificationDispatcher. addNotificationListener(Address listenAddress, TransportMapping<?> transport, CommandResponder listener)
void
MessageDispatcher. addTransportMapping(TransportMapping<? extends Address> transport)
Adds aTransportMapping
to the dispatcher.void
MessageDispatcherImpl. addTransportMapping(TransportMapping<?> transport)
Adds a transport mapping.void
Snmp. addTransportMapping(TransportMapping<? extends Address> transportMapping)
Adds aTransportMapping
to this SNMP session.protected void
Snmp. closeTransportMapping(TransportMapping<?> tm)
protected <A extends Address>
voidMessageDispatcherImpl. dispatchMessage(TransportMapping<? super A> sourceTransport, MessageProcessingModel mp, A incomingAddress, BERInputStream wholeMessage, TransportStateReference tmStateReference)
Actually decodes and dispatches an incoming SNMP message using the supplied message processing model.<A extends Address>
voidMessageDispatcher. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
Process an incoming SNMP message.<A extends Address>
voidMessageDispatcherImpl. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
<A extends Address>
voidMessageDispatcherImpl. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, BERInputStream wholeMessage, TransportStateReference tmStateReference)
TransportMapping<? extends Address>
MessageDispatcher. removeTransportMapping(TransportMapping<? extends Address> transport)
Removes a previously addedTransportMapping
from the dispatcher.TransportMapping<? extends Address>
MessageDispatcherImpl. removeTransportMapping(TransportMapping<?> transport)
Removes a transport mapping.void
Snmp. removeTransportMapping(TransportMapping<? extends Address> transportMapping)
Removes the specified transport mapping from this SNMP session.<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, 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>
voidMessageDispatcherImpl. sendMessage(TransportMapping<? super A> transport, A destAddress, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
Sends a message using theTransportMapping
that has been assigned for the supplied address type.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)
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(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
TransportStateReference. setTransport(TransportMapping<?> transport)
protected void
CommandResponderEvent. setTransportMapping(TransportMapping<? super A> transportMapping)
Method parameters in org.snmp4j with type arguments of type TransportMapping Modifier and Type Method Description void
AbstractTarget. setPreferredTransports(java.util.List<TransportMapping<? super A>> preferredTransports)
Sets the prioritised list of transport mappings to be used for this target.Constructors in org.snmp4j with parameters of type TransportMapping 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.PendingRequest(ResponseListener listener, java.lang.Object userObject, PDU pdu, Target<A> target, TransportMapping<? super A> transport)
Snmp(MessageDispatcher messageDispatcher, TransportMapping<? extends Address> transportMapping)
Creates aSnmp
instance by supplying aMessageDispatcher
and aTransportMapping
.Snmp(TransportMapping<? extends Address> transportMapping)
Creates aSnmp
instance that uses aMessageDispatcherImpl
with 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, java.lang.Object sessionID)
TransportStateReference(TransportMapping<?> transport, Address address, OctetString securityName, SecurityLevel requestedSecurityLevel, SecurityLevel transportSecurityLevel, boolean sameSecurity, java.lang.Object sessionID, Target<?> target)
-
Uses of TransportMapping in org.snmp4j.event
Methods in org.snmp4j.event that return TransportMapping Modifier and Type Method Description TransportMapping<? super A>
AuthenticationFailureEvent. getTransport()
Returns the transport mapping over which the message has bee received.Constructors in org.snmp4j.event with parameters of type TransportMapping Constructor Description AuthenticationFailureEvent(TransportListener source, A sourceAddress, TransportMapping<? super A> transport, int error, BERInputStream message)
Creates an authentication failure event. -
Uses of TransportMapping in org.snmp4j.mp
Methods in org.snmp4j.mp that return TransportMapping Modifier and Type Method Description TransportMapping<? super A>
StateReference. getTransportMapping()
Methods in org.snmp4j.mp with parameters of type TransportMapping Modifier and Type Method Description void
StateReference. setTransportMapping(TransportMapping<? super A> transportMapping)
Constructors in org.snmp4j.mp with parameters of type TransportMapping Constructor Description StateReference(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.tools.console
Methods in org.snmp4j.tools.console with parameters of type TransportMapping Modifier and Type Method Description void
SnmpCommand. processMessage(TransportMapping<?> sourceTransport, Address destAddress, byte[] message)
<A extends Address>
voidSnmpCommand. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
<A extends Address>
voidSnmpCommand.SnmpCommandMessageDispatcher. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
protected <A extends Address>
voidSnmpCommand.SnmpCommandMessageDispatcher. sendMessage(TransportMapping<? super A> transport, A destAddress, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
-
Uses of TransportMapping in org.snmp4j.transport
Subinterfaces of TransportMapping in org.snmp4j.transport Modifier and Type Interface Description interface
ConnectionOrientedTransportMapping<A extends Address>
Transport mappings for connection oriented transport protocols have to implement this interface.Classes in org.snmp4j.transport that implement TransportMapping Modifier and Type Class Description class
AbstractTransportMapping<A extends Address>
TheAbstractTransportMapping
provides an abstract implementation for the message dispatcher list and the maximum inbound message size.class
DefaultTcpTransportMapping
TheDefaultTcpTransportMapping
implements a TCP transport mapping with the Java 1.4 new IO API.class
DefaultUdpTransportMapping
TheDefaultUdpTransportMapping
implements a UDP transport mapping based on Java standard IO and using an internal thread for listening on the inbound socket.class
DTLSTM
TheDTLSTM
implements the Datagram Transport Layer Security Transport Mapping (TLS-TM) as defined by RFC 5953 with the new IO API andSSLEngine
.class
DummyTransport<A extends IpAddress>
TheDummyTransport
is a test TransportMapping for Command Generators which actually does not sent messages over the network.class
DummyTransport.DummyTransportResponder
class
TcpTransportMapping<S extends AbstractSocketEntry>
TheTcpTransportMapping
is the abstract base class for TCP transport mappings.class
TLSTM
TheTLSTM
implements the Transport Layer Security Transport Mapping (TLS-TM) as defined by RFC 5953 with the new IO API andSSLEngine
.class
UdpTransportMapping
TheUdpTransportMapping
is the abstract base class for UDP transport mappings.Methods in org.snmp4j.transport that return TransportMapping Modifier and Type Method Description <A extends Address>
TransportMapping<A>TransportMappings. createTransportMapping(A transportAddress)
Returns aTransportMapping
instance that is initialized with the supplied transport address.Methods in org.snmp4j.transport with parameters of type TransportMapping Modifier and Type Method Description <A extends Address>
voidTransportListener. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
Processes an incoming message. -
Uses of TransportMapping in org.snmp4j.util
Methods in org.snmp4j.util that return TransportMapping Modifier and Type Method Description <A extends Address>
TransportMapping<? super A>MultiThreadedMessageDispatcher. getTransport(A destAddress)
<A extends Address>
TransportMapping<? super A>MultiThreadedMessageDispatcher. getTransport(A destAddress, TransportType transportType)
TransportMapping<?>
MultiThreadedMessageDispatcher. removeTransportMapping(TransportMapping<? extends Address> transport)
Methods in org.snmp4j.util that return types with arguments of type TransportMapping Modifier and Type Method Description java.util.Collection<TransportMapping<? extends Address>>
MultiThreadedMessageDispatcher. getTransportMappings()
Methods in org.snmp4j.util with parameters of type TransportMapping Modifier and Type Method Description void
MultiThreadedMessageDispatcher. addTransportMapping(TransportMapping<? extends Address> transport)
<A extends Address>
voidMultiThreadedMessageDispatcher. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
TransportMapping<?>
MultiThreadedMessageDispatcher. removeTransportMapping(TransportMapping<? extends Address> transport)
<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)
-