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
Constructors Constructor Description OvsdbConnectionManager(org.opendaylight.mdsal.binding.api.DataBroker db, TransactionInvoker txInvoker, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, OvsdbConnection ovsdbConnection, InstanceIdentifierCodec instanceIdentifierCodec, org.opendaylight.serviceutils.upgrade.UpgradeState upgradeState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
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)
void
connected(OvsdbClient externalClient)
Event thrown to the connection listener when a new Passive connection is established.OvsdbConnectionInstance
connectedButCallBacksNotRegistered(OvsdbClient externalClient)
void
disconnect(OvsdbNodeAugmentation ovsdbNode)
void
disconnected(OvsdbClient client)
Event thrown to the connection listener when an existing connection is terminated.OvsdbClient
getClient(ConnectionInfo connectionInfo)
OvsdbClient
getClient(OvsdbBridgeAttributes mn)
OvsdbClient
getClient(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
Map<ConnectionInfo,OvsdbConnectionInstance>
getClients()
OvsdbConnectionInstance
getConnectionInstance(ConnectionInfo key)
OvsdbConnectionInstance
getConnectionInstance(OvsdbBridgeAttributes mn)
OvsdbConnectionInstance
getConnectionInstance(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
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)
Boolean
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>
getInstanceIdentifier(ConnectionInfo key)
void
reconcileBridgeConfigurations(OvsdbConnectionInstance client)
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 Detail
-
OvsdbConnectionManager
public OvsdbConnectionManager(org.opendaylight.mdsal.binding.api.DataBroker db, TransactionInvoker txInvoker, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, OvsdbConnection ovsdbConnection, InstanceIdentifierCodec instanceIdentifierCodec, org.opendaylight.serviceutils.upgrade.UpgradeState upgradeState)
-
-
Method Detail
-
connected
public void connected(OvsdbClient externalClient)
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
public OvsdbConnectionInstance connectedButCallBacksNotRegistered(OvsdbClient externalClient)
-
disconnected
public void disconnected(OvsdbClient client)
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
public void disconnect(OvsdbNodeAugmentation ovsdbNode) throws UnknownHostException
- 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
public OvsdbConnectionInstance getConnectionInstance(ConnectionInfo key)
-
getConnectionInstance
public OvsdbConnectionInstance getConnectionInstance(OvsdbBridgeAttributes mn)
-
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
public OvsdbClient getClient(ConnectionInfo connectionInfo)
-
getClient
public OvsdbClient getClient(OvsdbBridgeAttributes mn)
-
getClient
public OvsdbClient getClient(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
-
getHasDeviceOwnership
public Boolean getHasDeviceOwnership(ConnectionInfo connectionInfo)
-
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)
-
reconcileBridgeConfigurations
public void reconcileBridgeConfigurations(OvsdbConnectionInstance client)
-
getClients
public Map<ConnectionInfo,OvsdbConnectionInstance> getClients()
-
-