Class HwvtepConnectionManager
java.lang.Object
org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepConnectionManager
- All Implemented Interfaces:
AutoCloseable
,OvsdbConnectionListener
public class HwvtepConnectionManager
extends Object
implements OvsdbConnectionListener, AutoCloseable
-
Constructor Summary
ConstructorDescriptionHwvtepConnectionManager
(org.opendaylight.mdsal.binding.api.DataBroker db, TransactionInvoker txInvoker, Operations ops, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, OvsdbConnection ovsdbConnectionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanupOperationalNode
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid) void
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, HwvtepGlobalAugmentation hwvtepGlobal) void
connected
(OvsdbClient externalClient) Event thrown to the connection listener when a new Passive connection is established.connectedButCallBacksNotRegistered
(OvsdbClient externalClient) void
disconnect
(HwvtepGlobalAugmentation ovsdbNode) void
disconnected
(OvsdbClient client) Event thrown to the connection listener when an existing connection is terminated.getClient
(ConnectionInfo connectionInfo) getConnectionInstance
(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) getConnectionInstanceFromNodeIid
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid) 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
handleOwnershipChanged
(org.opendaylight.mdsal.eos.binding.api.Entity entity, org.opendaylight.mdsal.eos.common.api.EntityOwnershipStateChange change) void
reconcileConfigurations
(HwvtepConnectionInstance client, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode) 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, HwvtepGlobalAugmentation hwvtepNode) void
stopConfigurationReconciliation
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid) void
stopConnectionReconciliationIfActive
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid, HwvtepGlobalAugmentation hwvtepNode)
-
Constructor Details
-
HwvtepConnectionManager
public HwvtepConnectionManager(org.opendaylight.mdsal.binding.api.DataBroker db, TransactionInvoker txInvoker, Operations ops, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, OvsdbConnection ovsdbConnectionService)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
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.
-
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, HwvtepGlobalAugmentation hwvtepGlobal) throws UnknownHostException, ConnectException - Throws:
UnknownHostException
ConnectException
-
disconnect
- Throws:
UnknownHostException
-
connectedButCallBacksNotRegistered
-
getConnectionInstance
-
getConnectionInstance
public HwvtepConnectionInstance getConnectionInstance(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) -
getConnectionInstance
-
getConnectionInstanceFromNodeIid
public HwvtepConnectionInstance getConnectionInstanceFromNodeIid(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid) -
stopConfigurationReconciliation
public void stopConfigurationReconciliation(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid) -
reconcileConfigurations
public void reconcileConfigurations(HwvtepConnectionInstance client, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode) -
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) -
getClient
-
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, HwvtepGlobalAugmentation hwvtepNode) -
stopConnectionReconciliationIfActive
public void stopConnectionReconciliationIfActive(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid, HwvtepGlobalAugmentation hwvtepNode) -
handleOwnershipChanged
public void handleOwnershipChanged(org.opendaylight.mdsal.eos.binding.api.Entity entity, org.opendaylight.mdsal.eos.common.api.EntityOwnershipStateChange change) -
cleanupOperationalNode
public void cleanupOperationalNode(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid) -
dependencyExecutor
-