Interface SwitchConnectionProvider
- All Superinterfaces:
DeserializerExtensionProvider
,SerializerExtensionProvider
- All Known Implementing Classes:
SwitchConnectionProviderImpl
public interface SwitchConnectionProvider
extends SerializerExtensionProvider, DeserializerExtensionProvider
Provides handling for a switch connection.
- Author:
- mirehak, michal.polkorab
-
Method Summary
Modifier and TypeMethodDescriptionReturns the connection configuration.com.google.common.util.concurrent.ListenableFuture<Void>
shutdown()
Stop listening to switches.com.google.common.util.concurrent.ListenableFuture<Void>
startup
(SwitchConnectionHandler connectionHandler) Start listening to switches using specifiedSwitchConnectionHandler
.Methods inherited from interface org.opendaylight.openflowjava.protocol.api.extensibility.DeserializerExtensionProvider
registerActionDeserializer, registerDeserializer, registerDeserializerMapping, registerErrorDeserializer, registerExperimenterMessageDeserializer, registerInstructionDeserializer, registerMatchEntryDeserializer, registerMeterBandDeserializer, registerMultipartReplyMessageDeserializer, registerMultipartReplyTFDeserializer, registerQueuePropertyDeserializer, unregisterDeserializer, unregisterDeserializerMapping
Methods inherited from interface org.opendaylight.openflowjava.protocol.api.extensibility.SerializerExtensionProvider
registerActionSerializer, registerExperimenterMessageSerializer, registerInstructionSerializer, registerMatchEntrySerializer, registerMeterBandSerializer, registerMeterBandSerializer, registerMultipartRequestSerializer, registerMultipartRequestTFSerializer, registerSerializer, unregisterSerializer
-
Method Details
-
getConfiguration
ConnectionConfiguration getConfiguration()Returns the connection configuration.- Returns:
- configuration [protocol, port, address and supported features]
-
startup
com.google.common.util.concurrent.ListenableFuture<Void> startup(SwitchConnectionHandler connectionHandler) Start listening to switches using specifiedSwitchConnectionHandler
.- Parameters:
connectionHandler
- instance being informed when new switch connects- Returns:
- future completing when the channel has been resolved
-
shutdown
com.google.common.util.concurrent.ListenableFuture<Void> shutdown()Stop listening to switches.- Returns:
- future completing when all channels are down
-