public interface AgentXMessageDispatcher extends TransportListener
Modifier and Type | Method and Description |
---|---|
void |
addCommandListener(AgentXCommandListener listener) |
void |
addTransportMapping(TransportMapping transport)
Adds a
TransportMapping to the dispatcher. |
Collection<TransportMapping> |
getTransportMappings()
Gets the
Collection of transport mappings in this message
dispatcher. |
void |
removeCommandListener(AgentXCommandListener listener) |
TransportMapping |
removeTransportMapping(TransportMapping transport)
Removes a previously added
TransportMapping from
the dispatcher. |
PduHandle |
send(TransportMapping transport,
Address address,
AgentXPDU message,
PduHandleCallback<AgentXPDU> pduHandleCallback)
Sends a AgentX PDU to the specified address using the specified transport
mapping.
|
processMessage
void addTransportMapping(TransportMapping transport)
TransportMapping
to the dispatcher. The transport mapping
is used to send and receive messages to/from the network.transport
- a TransportMapping
instance.TransportMapping removeTransportMapping(TransportMapping transport)
TransportMapping
from
the dispatcher.transport
- a TransportMapping
instance.TransportMapping
instance supplied if it
could be successfully removed, null
otherwise.Collection<TransportMapping> getTransportMappings()
Collection
of transport mappings in this message
dispatcher.void addCommandListener(AgentXCommandListener listener)
void removeCommandListener(AgentXCommandListener listener)
PduHandle send(TransportMapping transport, Address address, AgentXPDU message, 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 © 2016 SNMP4J.org. All rights reserved.