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)
SwitchConnectionHandler
onSwitchConnected
in interface SwitchConnectionHandler
connectionAdapter
- to switch proving message sending/receiving, connection managementpublic boolean accept(InetAddress switchAddress)
SwitchConnectionHandler
accept
in interface SwitchConnectionHandler
switchAddress
- address of incoming connection (address + port)public void setDeviceConnectedHandler(DeviceConnectedHandler deviceConnectedHandler)
ConnectionManager
setDeviceConnectedHandler
in interface ConnectionManager
deviceConnectedHandler
- device connected handlerpublic void setDeviceDisconnectedHandler(DeviceDisconnectedHandler deviceDisconnectedHandler)
ConnectionManager
setDeviceDisconnectedHandler
in interface ConnectionManager
deviceDisconnectedHandler
- device disconnected handlerCopyright © 2018 OpenDaylight. All rights reserved.