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
ConstructorsConstructorDescriptionOvsdbConnectionManager(org.opendaylight.mdsal.binding.api.DataBroker db, Operations ops, TransactionInvoker txInvoker, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, OvsdbConnection ovsdbConnection, InstanceIdentifierCodec instanceIdentifierCodec, List<String> reconcileBridgeInclusionList, List<String> reconcileBridgeExclusionList) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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) voidconnected(OvsdbClient externalClient) Event thrown to the connection listener when a new Passive connection is established.connectedButCallBacksNotRegistered(OvsdbClient externalClient) voiddisconnect(OvsdbNodeAugmentation ovsdbNode) voiddisconnected(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> voidreconcileConnection(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) voidstopBridgeConfigReconciliationIfActive(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) voidstopConnectionReconciliationIfActive(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, Operations ops, TransactionInvoker txInvoker, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, OvsdbConnection ovsdbConnection, InstanceIdentifierCodec instanceIdentifierCodec, List<String> reconcileBridgeInclusionList, List<String> reconcileBridgeExclusionList)
-
-
Method Details
-
connected
Description copied from interface:OvsdbConnectionListenerEvent thrown to the connection listener when a new Passive connection is established.- Specified by:
connectedin interfaceOvsdbConnectionListener- Parameters:
externalClient- OvsdbClient that represents the connection.
-
connectedButCallBacksNotRegistered
-
disconnected
Description copied from interface:OvsdbConnectionListenerEvent thrown to the connection listener when an existing connection is terminated.- Specified by:
disconnectedin 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:
UnknownHostExceptionConnectException
-
disconnect
- Throws:
UnknownHostException
-
close
public void close()- Specified by:
closein 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)
-