Class NatSwitchCacheImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      NatSwitchCacheImpl​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addSwitch​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      Adds a switch to the scheduler pool.
      java.util.Set<org.opendaylight.yangtools.yang.common.Uint64> getSwitchesConnectedToExternal​(java.lang.String providerNet)
      Return the switches which has external bridge mappings.
      boolean isSwitchConnectedToExternal​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, java.lang.String providerNet)
      Check whether the switch has external bridge mappings.
      void register​(NatSwitchCacheListener centralizedSwitchCacheListener)
      Register for switch added notification.
      void removeSwitch​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      Removes a switch from the scheduler pool.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NatSwitchCacheImpl

        @Inject
        public NatSwitchCacheImpl​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
    • Method Detail

      • addSwitch

        public void addSwitch​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
        Description copied from interface: NatSwitchCache
        Adds a switch to the scheduler pool.
        Specified by:
        addSwitch in interface NatSwitchCache
        Parameters:
        dpnId - the switch id.
      • removeSwitch

        public void removeSwitch​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
        Description copied from interface: NatSwitchCache
        Removes a switch from the scheduler pool.
        Specified by:
        removeSwitch in interface NatSwitchCache
        Parameters:
        dpnId - the switch id.
      • isSwitchConnectedToExternal

        public boolean isSwitchConnectedToExternal​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                   java.lang.String providerNet)
        Description copied from interface: NatSwitchCache
        Check whether the switch has external bridge mappings.
        Specified by:
        isSwitchConnectedToExternal in interface NatSwitchCache
        Parameters:
        dpnId - the switch id.
        providerNet - the provider network.
        Returns:
        whether connected to provider network or not.
      • getSwitchesConnectedToExternal

        public java.util.Set<org.opendaylight.yangtools.yang.common.Uint64> getSwitchesConnectedToExternal​(java.lang.String providerNet)
        Description copied from interface: NatSwitchCache
        Return the switches which has external bridge mappings.
        Specified by:
        getSwitchesConnectedToExternal in interface NatSwitchCache
        Parameters:
        providerNet - the provider network.
        Returns:
        the set of switches which has the mapping
      • register

        public void register​(NatSwitchCacheListener centralizedSwitchCacheListener)
        Description copied from interface: NatSwitchCache
        Register for switch added notification.
        Specified by:
        register in interface NatSwitchCache
        Parameters:
        centralizedSwitchCacheListener - the instance of a listener