Class ConnectionManagerImpl
java.lang.Object
org.opendaylight.openflowplugin.impl.connection.ConnectionManagerImpl
- All Implemented Interfaces:
- AutoCloseable,- SwitchConnectionHandler,- ConnectionManager
- 
Constructor SummaryConstructorsConstructorDescriptionConnectionManagerImpl(OpenflowProviderConfig config, ExecutorService executorService, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, @NonNull org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaccept(InetAddress switchAddress) Invoked to determine if a switch connection should be accepted.voidclose()voidonSwitchConnected(ConnectionAdapter connectionAdapter) Invoked when a switch connects.voidsetDeviceConnectedHandler(DeviceConnectedHandler deviceConnectedHandler) Method registers handler responsible handling operations related to connected device after device is connected.voidsetDeviceDisconnectedHandler(DeviceDisconnectedHandler deviceDisconnectedHandler) Method registers handler responsible handling device disconnected event.
- 
Constructor Details- 
ConnectionManagerImplpublic ConnectionManagerImpl(OpenflowProviderConfig config, ExecutorService executorService, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, @NonNull org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService) 
 
- 
- 
Method Details- 
onSwitchConnectedDescription copied from interface:SwitchConnectionHandlerInvoked when a switch connects.- Specified by:
- onSwitchConnectedin interface- SwitchConnectionHandler
- Parameters:
- connectionAdapter- to switch proving message sending/receiving, connection management
 
- 
acceptDescription copied from interface:SwitchConnectionHandlerInvoked to determine if a switch connection should be accepted.- Specified by:
- acceptin interface- SwitchConnectionHandler
- Parameters:
- switchAddress- address of incoming connection (address + port)
- Returns:
- true, if connection from switch having given address shell be accepted; false otherwise
 
- 
setDeviceConnectedHandlerDescription copied from interface:ConnectionManagerMethod registers handler responsible handling operations related to connected device after device is connected.- Specified by:
- setDeviceConnectedHandlerin interface- ConnectionManager
- Parameters:
- deviceConnectedHandler- device connected handler
 
- 
setDeviceDisconnectedHandlerDescription copied from interface:ConnectionManagerMethod registers handler responsible handling device disconnected event.- Specified by:
- setDeviceDisconnectedHandlerin interface- ConnectionManager
- Parameters:
- deviceDisconnectedHandler- device disconnected handler
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Throws:
- Exception
 
 
-