Uses of Interface
org.snmp4j.smi.Address
-
Packages that use Address 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.security Provides classes and interfaces for authentication and privacy of SNMP(v3) messages.org.snmp4j.smi Provides classes for the representation of SMIv1/v2 data types (which also includes some basic ASN.1 primitive data types).org.snmp4j.tools.console org.snmp4j.transport Provides transport protocol mappings for SNMP.org.snmp4j.transport.tls org.snmp4j.util Contains table retrieval utilities and multi-threading support classes as well as miscellaneous utility classes. -
-
Uses of Address in org.snmp4j
Classes in org.snmp4j with type parameters of type Address Modifier and Type Interface Description interface
TransportMapping<A extends Address>
TheTransportMapping
defines the common interface for SNMP transport mappings.Methods in org.snmp4j with type parameters of type Address Modifier and Type Method Description protected <A extends Address>
voidMessageDispatcherImpl. sendMessage(TransportMapping<A> transport, Address destAddress, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
Sends a message using theTransportMapping
that has been assigned for the supplied address type.Methods in org.snmp4j that return Address Modifier and Type Method Description Address
AbstractTarget. getAddress()
Gets the address of this target.Address
Target. getAddress()
Gets the address of this target.Address
TransportStateReference. getAddress()
Address
CommandResponderEvent. getPeerAddress()
Gets the transport address of the sending entity.Methods in org.snmp4j that return types with arguments of type Address Modifier and Type Method Description java.util.List<TransportMapping<? extends Address>>
AbstractTarget. getPreferredTransports()
java.util.List<TransportMapping<? extends Address>>
Target. getPreferredTransports()
Gets the prioritised list of transport mappings to be used for this target.java.lang.Class<? extends Address>
TransportMapping. getSupportedAddressClass()
Gets the primaryAddress
class that is supported by this transport mapping.default java.util.Set<java.lang.Class<? extends Address>>
TransportMapping. getSupportedAddressClasses()
Return allAddress
classes supported by this transport mapping.TransportMapping<? extends Address>
MessageDispatcher. getTransport(Address destAddress)
Returns a transport mapping that can handle the supplied address.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.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 with parameters of type Address Modifier and Type Method Description boolean
Snmp. addNotificationListener(Address listenAddress, CommandResponder listener)
Adds a notification listener to this Snmp instance.boolean
Snmp. addNotificationListener(TransportMapping<?> transportMapping, Address listenAddress, CommandResponder listener)
Adds a notification listener to this Snmp instance.protected void
MessageDispatcherImpl. checkOutgoingMsg(Address transportAddress, int messageProcessingModel, PDU pdu)
Checks outgoing messages for consistency between PDU and target used.byte[]
Snmp. discoverAuthoritativeEngineID(Address address, long timeout)
Discovers the engine ID of the SNMPv3 entity denoted by the supplied address.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.TransportMapping<?>
Snmp. getNotificationListenerTM(Address listenAddress)
Gets the transport mapping registered for the specified listen address.TransportMapping<? extends Address>
MessageDispatcher. getTransport(Address destAddress)
Returns a transport mapping that can handle the supplied address.TransportMapping<?>
MessageDispatcherImpl. getTransport(Address destAddress)
Returns a transport mapping that can handle the supplied address.protected void
Snmp. handleInternalResponse(PDU response, PDU pdu, Address target)
void
MessageDispatcher. processMessage(TransportMapping<?> sourceTransport, Address incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
Process an incoming SNMP message.void
MessageDispatcherImpl. processMessage(TransportMapping<?> sourceTransport, Address incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
void
MessageDispatcherImpl. processMessage(TransportMapping<?> sourceTransport, Address incomingAddress, BERInputStream wholeMessage, TransportStateReference tmStateReference)
boolean
Snmp. removeNotificationListener(Address listenAddress)
Removes (deletes) the notification listener for the specified transport endpoint.protected <A extends Address>
voidMessageDispatcherImpl. sendMessage(TransportMapping<A> transport, Address destAddress, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
Sends a message using theTransportMapping
that has been assigned for the supplied address type.void
AbstractTarget. setAddress(Address address)
Sets the address of the target.void
Target. setAddress(Address address)
Sets the address of the target.void
CommandResponderEvent. setPeerAddress(Address peerAddress)
Sets the transport address of the sending entity.Method parameters in org.snmp4j with type arguments of type Address Modifier and Type Method Description void
MessageDispatcher. addTransportMapping(TransportMapping<? extends Address> transport)
Adds aTransportMapping
to the dispatcher.void
Snmp. addTransportMapping(TransportMapping<? extends Address> transportMapping)
Adds aTransportMapping
to this SNMP session.TransportMapping<? extends Address>
MessageDispatcher. removeTransportMapping(TransportMapping<? extends Address> transport)
Removes a previously addedTransportMapping
from the dispatcher.void
Snmp. removeTransportMapping(TransportMapping<? extends Address> transportMapping)
Removes the specified transport mapping from this SNMP session.void
AbstractTarget. setPreferredTransports(java.util.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 Address Constructor Description AbstractTarget(Address address)
Creates a SNMPv3 target with no retries and a timeout of one second.AbstractTarget(Address address, OctetString securityName)
CertifiedTarget(Address address, OctetString identity, OctetString serverFingerprint, OctetString clientFingerprint)
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.CommunityTarget(Address address, OctetString community)
Creates a fully specified community target.SecureTarget(Address address, OctetString securityName)
Creates a SNMPv3 secure target with an address and security name.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, CertifiedIdentity certifiedIdentity)
UserTarget(Address address, OctetString securityName, byte[] authoritativeEngineID)
Creates a SNMPv3 USM target with security level noAuthNoPriv, one second time-out without retries.UserTarget(Address address, OctetString securityName, byte[] authoritativeEngineID, int securityLevel)
Creates a SNMPv3 USM target with the supplied security level, one second time-out without retries.Constructor parameters in org.snmp4j with type arguments of type Address Constructor Description 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. -
Uses of Address in org.snmp4j.event
Methods in org.snmp4j.event that return Address Modifier and Type Method Description Address
AuthenticationFailureEvent. getAddress()
Returns the source address from which the message has been received.Address
SnmpEngineEvent. getEngineAddress()
Returns the transport address of the engine.Address
ResponseEvent. getPeerAddress()
Gets the transport address of the response sender.Methods in org.snmp4j.event with parameters of type Address Modifier and Type Method Description protected void
ResponseEvent. setPeerAddress(Address peerAddress)
Constructors in org.snmp4j.event with parameters of type Address Constructor Description AuthenticationFailureEvent(TransportListener source, Address sourceAddress, TransportMapping transport, int error, BERInputStream message)
Creates an authentication failure event.ResponseEvent(java.lang.Object source, Address peerAddress, PDU request, PDU response, java.lang.Object userObject)
Creates anResponseEvent
instance.ResponseEvent(java.lang.Object source, Address peerAddress, PDU request, PDU response, java.lang.Object userObject, java.lang.Exception error)
Creates anResponseEvent
instance with an exception object indicating a message processing error.SnmpEngineEvent(MPv3 source, int type, OctetString engineID, Address engineAddress)
-
Uses of Address in org.snmp4j.mp
Methods in org.snmp4j.mp that return Address Modifier and Type Method Description Address
StateReference. getAddress()
Methods in org.snmp4j.mp that return types with arguments of type Address Modifier and Type Method Description java.util.Map<Address,OctetString>
MPv3.EngineIdCacheFactory. createEngineIdMap(EngineIdCacheSize maximumCapacity)
Create a engine ID map with the given maximum capacity.Methods in org.snmp4j.mp with parameters of type Address Modifier and Type Method Description boolean
MPv3. addEngineID(Address address, OctetString engineID)
Adds an engine ID (other than the local engine ID) to the internal storage.protected OctetString
MPv3. addEngineIdToCache(Address address, OctetString engineID)
Put the engine ID for the given address into the internal cache.OctetString
MPv3. getEngineID(Address address)
Gets the engine ID associated with the supplied address from the local storage and fires the correspondingSnmpEngineEvent
.int
MessageProcessingModel. prepareDataElements(MessageDispatcher messageDispatcher, Address transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference mutableStateReference)
Prepare data elements from an incoming SNMP message as described in RFC3412 §7.2.int
MPv1. prepareDataElements(MessageDispatcher messageDispatcher, Address transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference mutableStateReference)
int
MPv2c. prepareDataElements(MessageDispatcher messageDispatcher, Address transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference mutableStateReference)
int
MPv3. prepareDataElements(MessageDispatcher messageDispatcher, Address transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference mutableStateReference)
int
MessageProcessingModel. 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.int
MPv1. 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)
int
MPv2c. 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)
int
MPv3. 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)
OctetString
MPv3. removeEngineID(Address address)
Removes an engine ID association from the local storage and fires the correspondingSnmpEngineEvent
.void
StateReference. setAddress(Address address)
Constructors in org.snmp4j.mp with parameters of type Address Constructor 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. -
Uses of Address in org.snmp4j.security
Methods in org.snmp4j.security with parameters of type Address Modifier and Type Method Description protected java.lang.String
TSM. getTransportDomainPrefix(Address address)
-
Uses of Address in org.snmp4j.smi
Classes in org.snmp4j.smi that implement Address Modifier and Type Class Description class
DtlsAddress
TheTlsAddress
represents a TLS transport addresses as defined by RFC 5953 SnmpTSLAddress textual convention.class
GenericAddress
TheGenericAddress
implements the decorator and factory design pattern to provide a generic address type.class
IpAddress
TheIpAddress
class represents an IPv4 address SNMP variable.class
SMIAddress
ASMIAddress
is an address that is defined by the Structure of Management Information (SMI) and can be thereby serialized through the Basic Encoding Rules (BER) used by the SNMP protocol.class
TcpAddress
TheTcpAddress
represents TCP/IP transport addresses.class
TlsAddress
TheTlsAddress
represents a TLS transport addresses as defined by RFC 5953 SnmpTSLAddress textual convention.class
TransportIpAddress
TheTransportIpAddress
is the abstract base class for all transport addresses on top of IP network addresses.class
UdpAddress
TheUdpAddress
represents UDP/IP transport addresses.Methods in org.snmp4j.smi that return Address Modifier and Type Method Description Address
GenericAddress. getAddress()
static Address
DtlsAddress. parse(java.lang.String address)
static Address
GenericAddress. parse(java.lang.String address)
Parses a given transport protocol dependent address string into anAddress
instance that is subsumed by thisGenericAddress
object.static Address
IpAddress. parse(java.lang.String address)
Parses an IP address string and returns the correspondingIpAddress
instance.static Address
TcpAddress. parse(java.lang.String address)
static Address
TlsAddress. parse(java.lang.String address)
static Address
TransportIpAddress. parse(java.lang.String address)
static Address
UdpAddress. parse(java.lang.String address)
Method parameters in org.snmp4j.smi with type arguments of type Address Modifier and Type Method Description static java.lang.String
GenericAddress. getTDomainPrefix(java.lang.Class<? extends Address> addressClass)
Gets the transport domain prefix string (lowercase) for a suppliedAddress
class. -
Uses of Address in org.snmp4j.tools.console
Methods in org.snmp4j.tools.console with type parameters of type Address Modifier and Type Method Description protected <A extends Address>
voidSnmpCommand.SnmpCommandMessageDispatcher. sendMessage(TransportMapping<A> transport, Address destAddress, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
Methods in org.snmp4j.tools.console with parameters of type Address Modifier and Type Method Description void
SnmpCommand. processMessage(TransportMapping sourceTransport, Address destAddress, byte[] message)
void
SnmpCommand. processMessage(TransportMapping sourceTransport, Address incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
void
SnmpCommand.SnmpCommandMessageDispatcher. processMessage(TransportMapping<?> sourceTransport, Address incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
protected <A extends Address>
voidSnmpCommand.SnmpCommandMessageDispatcher. sendMessage(TransportMapping<A> transport, Address destAddress, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
-
Uses of Address in org.snmp4j.transport
Classes in org.snmp4j.transport with type parameters of type Address Modifier and Type Class Description class
AbstractServerSocket<A extends Address>
TheAbstractServerSocket
interface provides methods to manage the sockets of a connection oriented transport mapping listening for incoming requests.class
AbstractTransportMapping<A extends Address>
TheAbstractTransportMapping
provides an abstract implementation for the message dispatcher list and the maximum inbound message size.interface
ConnectionOrientedTransportMapping<A extends Address>
Transport mappings for connection oriented transport protocols have to implement this interface.class
SocketTimeout<A extends Address>
TheSocketTimeout
is aTimerTask
that provides means to detect when a socket is not used for predefined time and then close the socket and free its resources.Fields in org.snmp4j.transport with type parameters of type Address Modifier and Type Field Description protected java.util.Map<Address,S>
TcpTransportMapping. sockets
Methods in org.snmp4j.transport with type parameters of type Address 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 that return Address Modifier and Type Method Description Address
TransportStateEvent. getPeerAddress()
Methods in org.snmp4j.transport that return types with arguments of type Address Modifier and Type Method Description java.lang.Class<? extends Address>
UnsupportedAddressClassException. getAddressClass()
Returns the class of the address class that is not supported.abstract java.lang.Class<? extends Address>
AbstractTransportMapping. getSupportedAddressClass()
java.lang.Class<? extends Address>
DTLSTM. getSupportedAddressClass()
java.lang.Class<? extends Address>
DummyTransport.DummyTransportResponder. getSupportedAddressClass()
java.lang.Class<? extends Address>
DummyTransport. getSupportedAddressClass()
java.lang.Class<? extends Address>
TcpTransportMapping. getSupportedAddressClass()
java.lang.Class<? extends Address>
TLSTM. getSupportedAddressClass()
java.lang.Class<? extends Address>
UdpTransportMapping. getSupportedAddressClass()
java.util.Set<java.lang.Class<? extends Address>>
DTLSTM. getSupportedAddressClasses()
Returns a set ofDtlsAddress
andUdpAddress
.Methods in org.snmp4j.transport with parameters of type Address Modifier and Type Method Description protected void
AbstractTransportMapping. fireProcessMessage(Address address, java.nio.ByteBuffer buf, TransportStateReference tmStateReference)
void
TransportListener. processMessage(TransportMapping<?> sourceTransport, Address incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
Processes an incoming message.void
DefaultTcpTransportMapping.ServerThread. sendMessage(Address address, byte[] message, TransportStateReference tmStateReference)
Method parameters in org.snmp4j.transport with type arguments of type Address Modifier and Type Method Description protected void
TcpTransportMapping. closeSockets(java.util.Map<Address,S> sockets)
Constructors in org.snmp4j.transport with parameters of type Address Constructor Description TransportStateEvent(AbstractTransportMapping<?> source, Address peerAddress, int newState, java.io.IOException causingException)
TransportStateEvent(AbstractTransportMapping<?> source, Address peerAddress, int newState, java.io.IOException causingException, java.util.List<byte[]> discardedMessages)
Constructor parameters in org.snmp4j.transport with type arguments of type Address Constructor Description UnsupportedAddressClassException(java.lang.String message, java.lang.Class<? extends Address> addressClass)
-
Uses of Address in org.snmp4j.transport.tls
Methods in org.snmp4j.transport.tls with parameters of type Address Modifier and Type Method Description void
DefaultTlsTmSecurityCallback. addLocalCertMapping(Address address, java.lang.String certAlias)
Map a target address to a local certificate alias.java.lang.String
DefaultTlsTmSecurityCallback. getLocalCertificateAlias(Address targetAddress)
java.lang.String
PropertiesTlsTmSecurityCallback. getLocalCertificateAlias(Address targetAddress)
java.lang.String
TlsTmSecurityCallback. getLocalCertificateAlias(Address targetAddress)
Gets the local certificate alias to be used for the supplied target address.java.lang.String
DefaultTlsTmSecurityCallback. removeLocalCertMapping(Address address)
Remove the local certificate mapping for the given target address. -
Uses of Address in org.snmp4j.util
Methods in org.snmp4j.util that return Address Modifier and Type Method Description Address
SnmpConfigurator. getBindAddress(java.util.Map<java.lang.String,java.util.List<?>> settings)
Methods in org.snmp4j.util that return types with arguments of type Address Modifier and Type Method Description java.util.Collection<TransportMapping<? extends Address>>
MultiThreadedMessageDispatcher. getTransportMappings()
Methods in org.snmp4j.util with parameters of type Address Modifier and Type Method Description TransportMapping<?>
MultiThreadedMessageDispatcher. getTransport(Address destAddress)
void
MultiThreadedMessageDispatcher. processMessage(TransportMapping sourceTransport, Address incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
Method parameters in org.snmp4j.util with type arguments of type Address Modifier and Type Method Description void
MultiThreadedMessageDispatcher. addTransportMapping(TransportMapping<? extends Address> transport)
TransportMapping<?>
MultiThreadedMessageDispatcher. removeTransportMapping(TransportMapping<? extends Address> transport)
-