public interface OvsdbConnection
Applications that use OvsDBConnectionService can use the connect APIs to initiate Active connections and can listen to the asynchronous Passive connections via registerConnectionListener listener API.
Modifier and Type | Method and Description |
---|---|
OvsdbClient |
connect(InetAddress address,
int port)
connect API can be used by the applications to initiate Active connection from
the controller towards ovsdb-server.
|
OvsdbClient |
connectWithSsl(InetAddress address,
int port,
org.opendaylight.aaa.cert.api.ICertificateManager certificateManagerSrv)
connect API can be used by the applications to initiate Active ssl
connection from the controller towards ovsdb-server.
|
void |
disconnect(OvsdbClient client)
Method to disconnect an existing connection.
|
OvsdbClient |
getClient(io.netty.channel.Channel channel) |
Collection<OvsdbClient> |
getConnections()
Returns a Collection of all the active OVSDB Connections.
|
void |
registerConnectionListener(OvsdbConnectionListener listener)
Method to register a Passive Connection Listener with the ConnectionService.
|
boolean |
restartOvsdbManagerWithSsl(String ovsdbListenIp,
int ovsdbListenPort,
org.opendaylight.aaa.cert.api.ICertificateManager certificateManagerSrv,
String[] protocols,
String[] cipherSuites)
Method to restart ovsdb server for passive connection with SSL and user
specifies protocols and cipher suites.
|
boolean |
startOvsdbManager()
Method to start ovsdb server for passive connection.
|
boolean |
startOvsdbManagerWithSsl(String ovsdbListenIp,
int ovsdbListenPort,
org.opendaylight.aaa.cert.api.ICertificateManager certificateManagerSrv,
String[] protocols,
String[] cipherSuites)
Method to start ovsdb server for passive connection with SSL.
|
void |
unregisterConnectionListener(OvsdbConnectionListener listener)
Method to unregister a Passive Connection Listener with the ConnectionService.
|
OvsdbClient connect(InetAddress address, int port)
address
- IP Address of the remote server that hosts the ovsdb server.port
- Layer 4 port on which the remote ovsdb server is listening on.OvsdbClient connectWithSsl(InetAddress address, int port, org.opendaylight.aaa.cert.api.ICertificateManager certificateManagerSrv)
address
- IP Address of the remote server that hosts the ovsdb server.port
- Layer 4 port on which the remote ovsdb server is listening on.certificateManagerSrv
- Certificate manager for SSL/TLSvoid disconnect(OvsdbClient client)
client
- that represents the ovsdb connection.boolean startOvsdbManager()
boolean startOvsdbManagerWithSsl(String ovsdbListenIp, int ovsdbListenPort, org.opendaylight.aaa.cert.api.ICertificateManager certificateManagerSrv, String[] protocols, String[] cipherSuites)
boolean restartOvsdbManagerWithSsl(String ovsdbListenIp, int ovsdbListenPort, org.opendaylight.aaa.cert.api.ICertificateManager certificateManagerSrv, String[] protocols, String[] cipherSuites)
void registerConnectionListener(OvsdbConnectionListener listener)
listener
- Passive Connection listener interested in Passive OVSDB connection requests.void unregisterConnectionListener(OvsdbConnectionListener listener)
Collection<OvsdbClient> getConnections()
OvsdbClient getClient(io.netty.channel.Channel channel)
Copyright © 2019 OpenDaylight. All rights reserved.