public class HwvtepConnectionManager extends Object implements OvsdbConnectionListener, AutoCloseable
Constructor and Description |
---|
HwvtepConnectionManager(org.opendaylight.controller.md.sal.binding.api.DataBroker db,
TransactionInvoker txInvoker,
org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService) |
Modifier and Type | Method and 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,
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 pNode) |
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.controller.md.sal.common.api.clustering.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) |
public HwvtepConnectionManager(org.opendaylight.controller.md.sal.binding.api.DataBroker db, TransactionInvoker txInvoker, org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService)
public void close() throws Exception
close
in interface AutoCloseable
Exception
public void connected(@Nonnull OvsdbClient externalClient)
OvsdbConnectionListener
connected
in interface OvsdbConnectionListener
externalClient
- OvsdbClient that represents the connection.public void disconnected(OvsdbClient client)
OvsdbConnectionListener
disconnected
in interface OvsdbConnectionListener
client
- OvsdbClient that represents the connection.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
UnknownHostException
ConnectException
public void disconnect(HwvtepGlobalAugmentation ovsdbNode) throws UnknownHostException
UnknownHostException
public HwvtepConnectionInstance connectedButCallBacksNotRegistered(OvsdbClient externalClient)
public HwvtepConnectionInstance getConnectionInstance(ConnectionInfo key)
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)
public HwvtepConnectionInstance getConnectionInstance(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
public HwvtepConnectionInstance getConnectionInstance(HwvtepPhysicalSwitchAttributes pNode)
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)
public void reconcileConfigurations(HwvtepConnectionInstance client, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode)
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)
public OvsdbClient getClient(ConnectionInfo connectionInfo)
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)
public void stopConnectionReconciliationIfActive(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid, HwvtepGlobalAugmentation hwvtepNode)
public void handleOwnershipChanged(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipChange ownershipChange)
Copyright © 2018 OpenDaylight. All rights reserved.