public class ConnectionManagerImpl extends Object implements ConnectionManager
| Constructor and Description |
|---|
ConnectionManagerImpl(OpenflowProviderConfig config,
ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(InetAddress switchAddress)
Invoked to determine if a switch connection should be accepted.
|
void |
onSwitchConnected(ConnectionAdapter connectionAdapter)
Invoked when a switch connects.
|
void |
setDeviceConnectedHandler(DeviceConnectedHandler deviceConnectedHandler)
Method registers handler responsible handling operations related to connected device after
device is connected.
|
void |
setDeviceDisconnectedHandler(DeviceDisconnectedHandler deviceDisconnectedHandler)
Method registers handler responsible handling device disconnected event.
|
public ConnectionManagerImpl(OpenflowProviderConfig config, ExecutorService executorService)
public void onSwitchConnected(ConnectionAdapter connectionAdapter)
SwitchConnectionHandleronSwitchConnected in interface SwitchConnectionHandlerconnectionAdapter - to switch proving message sending/receiving, connection managementpublic boolean accept(InetAddress switchAddress)
SwitchConnectionHandleraccept in interface SwitchConnectionHandlerswitchAddress - address of incoming connection (address + port)public void setDeviceConnectedHandler(DeviceConnectedHandler deviceConnectedHandler)
ConnectionManagersetDeviceConnectedHandler in interface ConnectionManagerdeviceConnectedHandler - device connected handlerpublic void setDeviceDisconnectedHandler(DeviceDisconnectedHandler deviceDisconnectedHandler)
ConnectionManagersetDeviceDisconnectedHandler in interface ConnectionManagerdeviceDisconnectedHandler - device disconnected handlerCopyright © 2019 OpenDaylight. All rights reserved.