Class OvsdbConnectionManager
java.lang.Object
org.opendaylight.ovsdb.southbound.OvsdbConnectionManager
- All Implemented Interfaces:
AutoCloseable
,OvsdbConnectionListener
public class OvsdbConnectionManager
extends Object
implements OvsdbConnectionListener, AutoCloseable
-
Constructor Summary
ConstructorDescriptionOvsdbConnectionManager
(org.opendaylight.mdsal.binding.api.DataBroker db, TransactionInvoker txInvoker, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, OvsdbConnection ovsdbConnection, InstanceIdentifierCodec instanceIdentifierCodec) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
connect
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> iid, OvsdbNodeAugmentation ovsdbNode) void
connected
(OvsdbClient externalClient) Event thrown to the connection listener when a new Passive connection is established.connectedButCallBacksNotRegistered
(OvsdbClient externalClient) void
disconnect
(OvsdbNodeAugmentation ovsdbNode) void
disconnected
(OvsdbClient client) Event thrown to the connection listener when an existing connection is terminated.getClient
(ConnectionInfo connectionInfo) getClient
(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) getConnectionInstance
(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) getConnectionInstance
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodePath) getHasDeviceOwnership
(ConnectionInfo connectionInfo) org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
void
reconcileConnection
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> iid, OvsdbNodeAugmentation ovsdbNode) void
stopBridgeConfigReconciliationIfActive
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> iid) void
stopConnectionReconciliationIfActive
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> iid, OvsdbNodeAugmentation ovsdbNode)
-
Constructor Details
-
OvsdbConnectionManager
public OvsdbConnectionManager(org.opendaylight.mdsal.binding.api.DataBroker db, TransactionInvoker txInvoker, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, OvsdbConnection ovsdbConnection, InstanceIdentifierCodec instanceIdentifierCodec)
-
-
Method Details
-
connected
Description copied from interface:OvsdbConnectionListener
Event thrown to the connection listener when a new Passive connection is established.- Specified by:
connected
in interfaceOvsdbConnectionListener
- Parameters:
externalClient
- OvsdbClient that represents the connection.
-
connectedButCallBacksNotRegistered
-
disconnected
Description copied from interface:OvsdbConnectionListener
Event thrown to the connection listener when an existing connection is terminated.- Specified by:
disconnected
in interfaceOvsdbConnectionListener
- Parameters:
client
- OvsdbClient that represents the connection.
-
connect
public OvsdbClient connect(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> iid, OvsdbNodeAugmentation ovsdbNode) throws UnknownHostException, ConnectException - Throws:
UnknownHostException
ConnectException
-
disconnect
- Throws:
UnknownHostException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getInstanceIdentifier
public org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> getInstanceIdentifier(ConnectionInfo key) -
getConnectionInstance
-
getConnectionInstance
-
getConnectionInstance
public OvsdbConnectionInstance getConnectionInstance(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) -
getConnectionInstance
public OvsdbConnectionInstance getConnectionInstance(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodePath) -
getClient
-
getClient
-
getClient
public OvsdbClient getClient(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) -
getHasDeviceOwnership
-
reconcileConnection
public void reconcileConnection(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> iid, OvsdbNodeAugmentation ovsdbNode) -
stopConnectionReconciliationIfActive
public void stopConnectionReconciliationIfActive(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> iid, OvsdbNodeAugmentation ovsdbNode) -
stopBridgeConfigReconciliationIfActive
public void stopBridgeConfigReconciliationIfActive(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> iid)
-