Uses of Interface
org.snmp4j.MessageDispatcher
Package
Description
Provides classes and interfaces for creating, sending, and receiving SNMP
messages.
Provides classes and interfaces for the SNMP message processing.
Contains table retrieval utilities and multi-threading support classes as
well as miscellaneous utility classes.
-
Uses of MessageDispatcher in org.snmp4j
Modifier and TypeClassDescriptionclass
TheMessageDispatcherImpl
decodes and dispatches incoming messages usingMessageProcessingModel
instances and encodes and sends outgoing messages using an appropriateTransportMapping
instances.Modifier and TypeMethodDescriptionCommandResponderEvent.getMessageDispatcher()
Gets the message dispatcher instance that received the command (request PDU) or unconfirmed PDU like a report, trap, or notification..Snmp.getMessageDispatcher()
Returns the message dispatcher associated with this SNMP session.Modifier and TypeMethodDescriptionvoid
Snmp.setMessageDispatcher
(MessageDispatcher messageDispatcher) Sets the message dispatcher associated with this SNMP session.ModifierConstructorDescriptionCommandResponderEvent
(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.Snmp
(MessageDispatcher messageDispatcher) Creates aSnmp
instance by supplying aMessageDispatcher
.Snmp
(MessageDispatcher messageDispatcher, TransportMapping<? extends Address> transportMapping) Creates aSnmp
instance by supplying aMessageDispatcher
and aTransportMapping
. -
Uses of MessageDispatcher in org.snmp4j.mp
Modifier and TypeMethodDescription<A extends Address>
intMessageProcessingModel.prepareDataElements
(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference) Prepare data elements from an incoming SNMP message as described in RFC3412 ยง7.2.<A extends Address>
intMPv1.prepareDataElements
(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference) <A extends Address>
intMPv2c.prepareDataElements
(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference) <A extends Address>
intMPv3.prepareDataElements
(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference) int
MPv3.sendReport
(MessageDispatcher messageDispatcher, ScopedPDU pdu, int securityLevel, int securityModel, OctetString securityName, int maxSizeResponseScopedPDU, StateReference<?> stateReference, VariableBinding payload) Sends a report message. -
Uses of MessageDispatcher in org.snmp4j.util
Modifier and TypeClassDescriptionclass
TheMultiThreadedMessageDispatcher
class is a decorator for anyMessageDispatcher
instances that processes incoming message with a suppliedThreadPool
.Modifier and TypeMethodDescriptionMultiThreadedMessageDispatcher.getDispatcher()
Returns the wrapped dispatcher.Modifier and TypeMethodDescriptionvoid
SnmpConfigurator.configure
(Session snmp, USM usm, MessageDispatcher messageDispatcher, Map<String, List<Object>> settings) ModifierConstructorDescriptionMultiThreadedMessageDispatcher
(WorkerPool workerPool, MessageDispatcher decoratedDispatcher) Creates a multithreaded message dispatcher using the providedThreadPool
to concurrently process incoming messages that are forwarded to the supplied decoratedMessageDispatcher
.