Interface NatSwitchCache
- 
- All Known Implementing Classes:
- NatSwitchCacheImpl
 
 public interface NatSwitchCache
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddSwitch(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.booleanisSwitchConnectedToExternal(org.opendaylight.yangtools.yang.common.Uint64 dpnId, java.lang.String providerNet)Check whether the switch has external bridge mappings.voidregister(NatSwitchCacheListener centralizedSwitchCacheListener)Register for switch added notification.voidremoveSwitch(org.opendaylight.yangtools.yang.common.Uint64 dpnId)Removes a switch from the scheduler pool.
 
- 
- 
- 
Method Detail- 
addSwitchvoid addSwitch(org.opendaylight.yangtools.yang.common.Uint64 dpnId) Adds a switch to the scheduler pool.- Parameters:
- dpnId- the switch id.
 
 - 
removeSwitchvoid removeSwitch(org.opendaylight.yangtools.yang.common.Uint64 dpnId) Removes a switch from the scheduler pool.- Parameters:
- dpnId- the switch id.
 
 - 
isSwitchConnectedToExternalboolean isSwitchConnectedToExternal(org.opendaylight.yangtools.yang.common.Uint64 dpnId, java.lang.String providerNet)Check whether the switch has external bridge mappings.- Parameters:
- dpnId- the switch id.
- providerNet- the provider network.
- Returns:
- whether connected to provider network or not.
 
 - 
getSwitchesConnectedToExternaljava.util.Set<org.opendaylight.yangtools.yang.common.Uint64> getSwitchesConnectedToExternal(java.lang.String providerNet) Return the switches which has external bridge mappings.- Parameters:
- providerNet- the provider network.
- Returns:
- the set of switches which has the mapping
 
 - 
registervoid register(NatSwitchCacheListener centralizedSwitchCacheListener) Register for switch added notification.- Parameters:
- centralizedSwitchCacheListener- the instance of a listener
 
 
- 
 
-