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.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.
|
Modifier and Type | Method and Description |
---|---|
TransportMapping |
TransportStateReference.getTransport() |
TransportMapping |
MessageDispatcherImpl.getTransport(Address destAddress)
Returns a transport mapping that can handle the supplied address.
|
TransportMapping |
MessageDispatcher.getTransport(Address destAddress)
Returns a transport mapping that can handle the supplied address.
|
TransportMapping |
CommandResponderEvent.getTransportMapping()
Returns the transport mapping that received the PDU that triggered this
event.
|
protected TransportMapping |
Snmp.lookupTransportMapping(Target target) |
TransportMapping |
MessageDispatcherImpl.removeTransportMapping(TransportMapping transport)
Removes a transport mapping.
|
TransportMapping |
MessageDispatcher.removeTransportMapping(TransportMapping<? extends Address> transport)
Removes a previously added
TransportMapping from
the dispatcher. |
Modifier and Type | Method and Description |
---|---|
List<TransportMapping<? extends Address>> |
AbstractTarget.getPreferredTransports() |
List<TransportMapping<? extends Address>> |
Target.getPreferredTransports()
Gets the prioritised list of transport mappings to be used for this
target.
|
Collection<TransportMapping> |
MessageDispatcherImpl.getTransportMappings()
Gets a collection of all registered transport mappings.
|
Collection<TransportMapping> |
MessageDispatcher.getTransportMappings()
Gets the
Collection of transport mappings in this message
dispatcher. |
Modifier and Type | Method and Description |
---|---|
void |
MessageDispatcherImpl.addTransportMapping(TransportMapping transport)
Adds a transport mapping.
|
void |
MessageDispatcher.addTransportMapping(TransportMapping<? extends Address> transport)
Adds a
TransportMapping to the dispatcher. |
void |
Snmp.addTransportMapping(TransportMapping<? extends Address> transportMapping)
Adds a
TransportMapping to this SNMP session. |
protected void |
MessageDispatcherImpl.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.
|
void |
MessageDispatcherImpl.processMessage(TransportMapping sourceTransport,
Address incomingAddress,
BERInputStream wholeMessage,
TransportStateReference tmStateReference) |
void |
MessageDispatcherImpl.processMessage(TransportMapping sourceTransport,
Address incomingAddress,
ByteBuffer wholeMessage,
TransportStateReference tmStateReference) |
void |
MessageDispatcher.processMessage(TransportMapping sourceTransport,
Address incomingAddress,
ByteBuffer wholeMessage,
TransportStateReference tmStateReference)
Process an incoming SNMP message.
|
TransportMapping |
MessageDispatcherImpl.removeTransportMapping(TransportMapping transport)
Removes a transport mapping.
|
TransportMapping |
MessageDispatcher.removeTransportMapping(TransportMapping<? extends Address> transport)
Removes a previously added
TransportMapping from
the dispatcher. |
void |
Snmp.removeTransportMapping(TransportMapping<? extends Address> transportMapping)
Removes the specified transport mapping from this SNMP session.
|
ResponseEvent |
Snmp.send(PDU pdu,
Target target,
TransportMapping transport)
Sends a
PDU to the given target and if the PDU
is a confirmed request, then the received response is returned
synchronously. |
ResponseEvent |
Session.send(PDU pdu,
Target target,
TransportMapping transport)
Sends a
PDU to the given target and returns the received
response PDU encapsulated in a ResponseEvent
object that also includes:
the transport address of the response sending peer,
the Target information of the target,
the request PDU ,
the response PDU (if any). |
void |
Snmp.send(PDU pdu,
Target target,
TransportMapping transport,
Object userHandle,
ResponseListener listener) |
void |
Session.send(PDU pdu,
Target target,
TransportMapping transport,
Object userHandle,
ResponseListener listener)
Asynchronously sends a
PDU to the given target. |
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.
|
protected void |
MessageDispatcherImpl.sendMessage(TransportMapping transport,
Address destAddress,
byte[] message,
TransportStateReference tmStateReference)
Sends a message using the
TransportMapping that has been
assigned for the supplied address type. |
PduHandle |
MessageDispatcherImpl.sendPdu(TransportMapping transportMapping,
Target target,
PDU pdu,
boolean expectResponse) |
PduHandle |
MessageDispatcher.sendPdu(TransportMapping transportMapping,
Target target,
PDU pdu,
boolean expectResponse)
Sends a PDU to the supplied transport address.
|
PduHandle |
MessageDispatcherImpl.sendPdu(TransportMapping transport,
Target target,
PDU pdu,
boolean expectResponse,
PduHandleCallback<PDU> pduHandleCallback) |
PduHandle |
MessageDispatcher.sendPdu(TransportMapping transportMapping,
Target target,
PDU pdu,
boolean expectResponse,
PduHandleCallback<PDU> callback)
Sends a PDU to the supplied transport address and returns the
PduHandle that uniquely identifies the request as response
after the request has been sent and optional, if a
PduHandleCallback is given, it returns also the
PduHandle just before the request is sent through the
the callback interface. |
protected void |
CommandResponderEvent.setTransportMapping(TransportMapping transportMapping) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractTarget.setPreferredTransports(List<TransportMapping<? extends Address>> preferredTransports)
Sets the prioritised list of transport mappings to be used for this
target.
|
Constructor and Description |
---|
CommandResponderEvent(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 a
Snmp instance by supplying a
MessageDispatcher and a TransportMapping . |
Snmp(TransportMapping<? extends Address> transportMapping)
Creates a
Snmp instance that uses a
MessageDispatcherImpl 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,
Object sessionID) |
TransportStateReference(TransportMapping transport,
Address address,
OctetString securityName,
SecurityLevel requestedSecurityLevel,
SecurityLevel transportSecurityLevel,
boolean sameSecurity,
Object sessionID,
CertifiedIdentity certifiedIdentity) |
Modifier and Type | Method and Description |
---|---|
TransportMapping |
AuthenticationFailureEvent.getTransport()
Returns the transport mapping over which the message has bee received.
|
Constructor and Description |
---|
AuthenticationFailureEvent(TransportListener source,
Address sourceAddress,
TransportMapping transport,
int error,
BERInputStream message)
Creates an authentication failure event.
|
Modifier and Type | Method and Description |
---|---|
TransportMapping |
StateReference.getTransportMapping() |
Modifier and Type | Method and Description |
---|---|
void |
StateReference.setTransportMapping(TransportMapping transportMapping) |
Constructor and Description |
---|
StateReference(int msgID,
int msgFlags,
int maxSizeResponseScopedPDU,
PduHandle pduHandle,
Address peerAddress,
TransportMapping 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,
Address peerAddress,
TransportMapping peerTransport,
SecurityModel secModel,
byte[] secName,
int errorCode)
Creates a state reference for community based security models.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConnectionOrientedTransportMapping<A extends Address>
Transport mappings for connection oriented transport protocols have to
implement this interface.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractTransportMapping<A extends Address>
The
AbstractTransportMapping provides an abstract
implementation for the message dispatcher list and the maximum inbound
message size. |
class |
DefaultSshTransportMapping
The
DefaultSshTransportMapping implements a TCP transport
mapping with TLS according to RFC 5592 (named SSHTM therein). |
class |
DefaultTcpTransportMapping
The
DefaultTcpTransportMapping implements a TCP transport
mapping with the Java 1.4 new IO API. |
class |
DefaultUdpTransportMapping
The
DefaultUdpTransportMapping implements a UDP transport
mapping based on Java standard IO and using an internal thread for
listening on the inbound socket. |
class |
DummyTransport<A extends IpAddress>
The
DummyTransport is a test TransportMapping for Command Generators
which actually does not sent messages over the network. |
class |
DummyTransport.DummyTransportResponder |
class |
TcpTransportMapping
The
TcpTransportMapping is the abstract base class for
TCP transport mappings. |
class |
TLSTM
The
TLSTM implements the Transport Layer Security
Transport Mapping (TLS-TM) as defined by RFC 5953
with the new IO API and SSLEngine . |
class |
UdpTransportMapping
The
UdpTransportMapping is the abstract base class for
UDP transport mappings. |
Modifier and Type | Method and Description |
---|---|
TransportMapping<? extends Address> |
TransportMappings.createTransportMapping(Address transportAddress)
Returns a
TransportMapping instance that is initialized with
the supplied transport address. |
Modifier and Type | Method and Description |
---|---|
void |
TransportListener.processMessage(TransportMapping sourceTransport,
Address incomingAddress,
ByteBuffer wholeMessage,
TransportStateReference tmStateReference)
Processes an incoming message.
|
Modifier and Type | Method and Description |
---|---|
TransportMapping |
MultiThreadedMessageDispatcher.getTransport(Address destAddress) |
TransportMapping |
MultiThreadedMessageDispatcher.removeTransportMapping(TransportMapping<? extends Address> transport) |
Modifier and Type | Method and Description |
---|---|
Collection<TransportMapping> |
MultiThreadedMessageDispatcher.getTransportMappings() |
Modifier and Type | Method and Description |
---|---|
void |
MultiThreadedMessageDispatcher.addTransportMapping(TransportMapping<? extends Address> transport) |
void |
MultiThreadedMessageDispatcher.processMessage(TransportMapping sourceTransport,
Address incomingAddress,
ByteBuffer wholeMessage,
TransportStateReference tmStateReference) |
TransportMapping |
MultiThreadedMessageDispatcher.removeTransportMapping(TransportMapping<? extends Address> transport) |
PduHandle |
MultiThreadedMessageDispatcher.sendPdu(TransportMapping transportMapping,
Target target,
PDU pdu,
boolean expectResponse) |
PduHandle |
MultiThreadedMessageDispatcher.sendPdu(TransportMapping transportMapping,
Target target,
PDU pdu,
boolean expectResponse,
PduHandleCallback<PDU> callback) |
Copyright © 2019 SNMP4J.org. All rights reserved.