Class VppNetconfConnectionProbe
- java.lang.Object
-
- org.opendaylight.lispflowmapping.neutron.intenthandler.util.VppNetconfConnectionProbe
-
- All Implemented Interfaces:
java.util.EventListener
,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
public class VppNetconfConnectionProbe extends java.lang.Object implements org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
Purpose: verify whether provided netconf node is already connected or wait if not.VppNetconfConnectionProbe registers istener which catches node-related changes from topology-netconf. A
SettableFuture
is setBoolean.TRUE
, if the node is connected withinNODE_CONNECTION_TIMER
seconds. Else, proper exception is throws.
-
-
Field Summary
Fields Modifier and Type Field Description static int
NODE_CONNECTION_TIMER
-
Constructor Summary
Constructors Constructor Description VppNetconfConnectionProbe(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId nodeId, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onDataTreeChanged(java.util.Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes)
boolean
startProbing()
-
-
-
Field Detail
-
NODE_CONNECTION_TIMER
public static final int NODE_CONNECTION_TIMER
- See Also:
- Constant Field Values
-
-
Method Detail
-
startProbing
public boolean startProbing() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
-
onDataTreeChanged
public void onDataTreeChanged(java.util.Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes)
- Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
-
-