Class FloatingIPListener
- java.lang.Object
-
- org.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase<InternalToExternalPortMap,FloatingIPListener>
-
- org.opendaylight.netvirt.natservice.internal.FloatingIPListener
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.util.EventListener
,org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<InternalToExternalPortMap>
,org.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<InternalToExternalPortMap>
@Singleton public class FloatingIPListener extends org.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase<InternalToExternalPortMap,FloatingIPListener>
-
-
Constructor Summary
Constructors Constructor Description FloatingIPListener(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManager, FloatingIPHandler floatingIPHandler, SNATDefaultRouteProgrammer snatDefaultRouteProgrammer, org.opendaylight.infrautils.jobcoordinator.JobCoordinator coordinator, CentralizedSwitchScheduler centralizedSwitchScheduler, NatSwitchCache natSwitchCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalToExternalPortMap> identifier, InternalToExternalPortMap mapping)
protected FloatingIPListener
getDataTreeChangeListener()
protected org.opendaylight.yangtools.yang.common.Uint32
getOperationalIpMapping(java.lang.String routerId, java.lang.String interfaceName, java.lang.String internalIp)
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalToExternalPortMap>
getWildCardPath()
void
init()
protected void
remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalToExternalPortMap> identifier, InternalToExternalPortMap mapping)
protected void
update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalToExternalPortMap> identifier, InternalToExternalPortMap original, InternalToExternalPortMap update)
-
-
-
Constructor Detail
-
FloatingIPListener
@Inject public FloatingIPListener(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManager, FloatingIPHandler floatingIPHandler, SNATDefaultRouteProgrammer snatDefaultRouteProgrammer, org.opendaylight.infrautils.jobcoordinator.JobCoordinator coordinator, CentralizedSwitchScheduler centralizedSwitchScheduler, NatSwitchCache natSwitchCache)
-
-
Method Detail
-
init
@PostConstruct public void init()
- Overrides:
init
in classorg.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase<InternalToExternalPortMap,FloatingIPListener>
-
getWildCardPath
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalToExternalPortMap> getWildCardPath()
- Specified by:
getWildCardPath
in classorg.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase<InternalToExternalPortMap,FloatingIPListener>
-
getDataTreeChangeListener
protected FloatingIPListener getDataTreeChangeListener()
- Specified by:
getDataTreeChangeListener
in classorg.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase<InternalToExternalPortMap,FloatingIPListener>
-
add
protected void add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalToExternalPortMap> identifier, InternalToExternalPortMap mapping)
- Specified by:
add
in classorg.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase<InternalToExternalPortMap,FloatingIPListener>
-
remove
protected void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalToExternalPortMap> identifier, InternalToExternalPortMap mapping)
- Specified by:
remove
in classorg.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase<InternalToExternalPortMap,FloatingIPListener>
-
update
protected void update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalToExternalPortMap> identifier, InternalToExternalPortMap original, InternalToExternalPortMap update)
- Specified by:
update
in classorg.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase<InternalToExternalPortMap,FloatingIPListener>
-
getOperationalIpMapping
protected org.opendaylight.yangtools.yang.common.Uint32 getOperationalIpMapping(java.lang.String routerId, java.lang.String interfaceName, java.lang.String internalIp)
-
-