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
Constructors Constructor Description HwvtepConnectionManager(org.opendaylight.mdsal.binding.api.DataBroker db, TransactionInvoker txInvoker, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, OvsdbConnection ovsdbConnectionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
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, HwvtepGlobalAugmentation hwvtepGlobal)
void
connected(OvsdbClient externalClient)
Event thrown to the connection listener when a new Passive connection is established.HwvtepConnectionInstance
connectedButCallBacksNotRegistered(OvsdbClient externalClient)
void
disconnect(HwvtepGlobalAugmentation ovsdbNode)
void
disconnected(OvsdbClient client)
Event thrown to the connection listener when an existing connection is terminated.OvsdbClient
getClient(ConnectionInfo connectionInfo)
HwvtepConnectionInstance
getConnectionInstance(ConnectionInfo key)
HwvtepConnectionInstance
getConnectionInstance(HwvtepPhysicalSwitchAttributes node)
HwvtepConnectionInstance
getConnectionInstance(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
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)
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
handleOwnershipChanged(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange ownershipChange)
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 Detail
-
HwvtepConnectionManager
public HwvtepConnectionManager(org.opendaylight.mdsal.binding.api.DataBroker db, TransactionInvoker txInvoker, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, OvsdbConnection ovsdbConnectionService)
-
-
Method Detail
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
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.
-
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, HwvtepGlobalAugmentation hwvtepGlobal) throws UnknownHostException, ConnectException
- Throws:
UnknownHostException
ConnectException
-
disconnect
public void disconnect(HwvtepGlobalAugmentation ovsdbNode) throws UnknownHostException
- Throws:
UnknownHostException
-
connectedButCallBacksNotRegistered
public HwvtepConnectionInstance connectedButCallBacksNotRegistered(OvsdbClient externalClient)
-
getConnectionInstance
public HwvtepConnectionInstance getConnectionInstance(ConnectionInfo key)
-
getConnectionInstance
public HwvtepConnectionInstance getConnectionInstance(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
-
getConnectionInstance
public HwvtepConnectionInstance getConnectionInstance(HwvtepPhysicalSwitchAttributes node)
-
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
public OvsdbClient getClient(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, 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.EntityOwnershipChange ownershipChange)
-
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)
-
-