public interface AgentXMessageDispatcher
extends org.snmp4j.transport.TransportListener
| Modifier and Type | Method and Description |
|---|---|
void |
addCommandListener(AgentXCommandListener listener) |
void |
addTransportMapping(org.snmp4j.TransportMapping transport)
Adds a
TransportMapping to the dispatcher. |
Collection<org.snmp4j.TransportMapping> |
getTransportMappings()
Gets the
Collection of transport mappings in this message
dispatcher. |
void |
removeCommandListener(AgentXCommandListener listener) |
org.snmp4j.TransportMapping |
removeTransportMapping(org.snmp4j.TransportMapping transport)
Removes a previously added
TransportMapping from
the dispatcher. |
org.snmp4j.mp.PduHandle |
send(org.snmp4j.TransportMapping transport,
org.snmp4j.smi.Address address,
AgentXPDU message,
org.snmp4j.mp.PduHandleCallback<AgentXPDU> pduHandleCallback)
Sends a AgentX PDU to the specified address using the specified transport
mapping.
|
void addTransportMapping(org.snmp4j.TransportMapping transport)
TransportMapping to the dispatcher. The transport mapping
is used to send and receive messages to/from the network.transport - a TransportMapping instance.org.snmp4j.TransportMapping removeTransportMapping(org.snmp4j.TransportMapping transport)
TransportMapping from
the dispatcher.transport - a TransportMapping instance.TransportMapping instance supplied if it
could be successfully removed, null otherwise.Collection<org.snmp4j.TransportMapping> getTransportMappings()
Collection of transport mappings in this message
dispatcher.void addCommandListener(AgentXCommandListener listener)
void removeCommandListener(AgentXCommandListener listener)
org.snmp4j.mp.PduHandle send(org.snmp4j.TransportMapping transport,
org.snmp4j.smi.Address address,
AgentXPDU message,
org.snmp4j.mp.PduHandleCallback<AgentXPDU> pduHandleCallback)
throws IOException
transport - a TransportMapping supported by the AgentX protocol.address - the target Address.message - the AgentXPDU to send.pduHandleCallback - an optional callback reference. If not null then the
callback will be informed about the assigned PduHandle just before the
request is sent out.IOException - if the IO operation fails.Copyright © 2020 SNMP4J.org. All rights reserved.