public interface ConnectionAdapter extends OpenflowProtocolService
Modifier and Type | Method and Description |
---|---|
void |
checkListeners()
Throws exception if any of required listeners is missing.
|
Future<Boolean> |
disconnect()
Disconnect corresponding switch.
|
void |
fireConnectionReadyNotification()
Notify listener about connection ready-to-use event.
|
InetSocketAddress |
getRemoteAddress()
Returns the address of the connected switch.
|
boolean |
isAlive()
Determines if the connection to the switch is alive.
|
boolean |
isAutoRead()
Determines if the channel is configured to auto-read.
|
<T extends OutboundQueueHandler> |
registerOutboundQueueHandler(T handler,
int maxQueueDepth,
long maxBarrierNanos)
Registers a new bypass outbound queue.
|
void |
setAlienMessageListener(AlienMessageListener alienMessageListener)
Set handler for alien messages received from device.
|
void |
setAutoRead(boolean autoRead)
Sets option for automatic channel reading - if set to false, incoming messages won't be read.
|
void |
setConnectionReadyListener(ConnectionReadyListener connectionReadyListener)
Set listener for connection became ready-to-use event.
|
void |
setDatapathId(BigInteger datapathId)
Set datapathId for the dpn.
|
void |
setMessageListener(OpenflowProtocolListener messageListener)
Sets the protocol message listener.
|
void |
setPacketInFiltering(boolean enabled)
Set filtering of PacketIn messages.
|
void |
setSystemListener(SystemNotificationsListener systemListener)
Sets the system message listener.
|
barrier, echo, echoReply, experimenter, flowMod, getAsync, getConfig, getFeatures, getQueueConfig, groupMod, hello, meterMod, multipartRequest, packetOut, portMod, roleRequest, setAsync, setConfig, tableMod
Future<Boolean> disconnect()
boolean isAlive()
InetSocketAddress getRemoteAddress()
void setMessageListener(OpenflowProtocolListener messageListener)
messageListener
- here will be pushed all messages from switchvoid setSystemListener(SystemNotificationsListener systemListener)
systemListener
- here will be pushed all system messages from libraryvoid setAlienMessageListener(AlienMessageListener alienMessageListener)
alienMessageListener
- here will be pushed all alien messages from switchvoid checkListeners()
void fireConnectionReadyNotification()
void setConnectionReadyListener(ConnectionReadyListener connectionReadyListener)
connectionReadyListener
- listens to connection ready eventvoid setAutoRead(boolean autoRead)
autoRead
- target value to be switched toboolean isAutoRead()
@Beta <T extends OutboundQueueHandler> OutboundQueueHandlerRegistration<T> registerOutboundQueueHandler(T handler, int maxQueueDepth, long maxBarrierNanos)
T
- handler typehandler
- queue handlermaxQueueDepth
- max amount of not confirmed messaged in queue (i.e. edge for barrier message)maxBarrierNanos
- regular base for barrier messageOutboundQueueHandlerRegistration
@Beta void setPacketInFiltering(boolean enabled)
enabled
- True if PacketIn messages should be filtered, false if they should be reported.void setDatapathId(BigInteger datapathId)
datapathId
- of the dpnCopyright © 2020 OpenDaylight. All rights reserved.