![]() |
Open Kilda Java Documentation
|
Definition at line 39 of file NetworkCache.java.
boolean org.openkilda.pce.cache.NetworkCache.cacheContainsIsl | ( | String | islId | ) |
Checks if isl pool contains IslInfoData instance.
islId | IslInfoData instance id |
Definition at line 450 of file NetworkCache.java.
boolean org.openkilda.pce.cache.NetworkCache.cacheContainsSwitch | ( | SwitchId | switchId | ) |
Checks if switch pool contains SwitchInfoData instance.
switchId | SwitchInfoData instance id |
Definition at line 308 of file NetworkCache.java.
void org.openkilda.pce.cache.NetworkCache.clear | ( | ) |
Clears the inner network and pools.
Definition at line 169 of file NetworkCache.java.
IslInfoData org.openkilda.pce.cache.NetworkCache.createIsl | ( | IslInfoData | isl | ) | throws CacheException |
Creates IslInfoData instance.
isl | IslInfoData instance |
CacheException | if SwitchInfoData related to IslInfoData instance do not exist |
Definition at line 356 of file NetworkCache.java.
IslInfoData org.openkilda.pce.cache.NetworkCache.createOrUpdateIsl | ( | IslInfoData | isl | ) |
Creates IslInfoData instance.
isl | IslInfoData instance |
CacheException | if SwitchInfoData related to IslInfoData instance do not exist |
Definition at line 398 of file NetworkCache.java.
SwitchInfoData org.openkilda.pce.cache.NetworkCache.createOrUpdateSwitch | ( | SwitchInfoData | newSwitch | ) |
Creates or updates SwitchInfoData instance.
newSwitch | SwitchInfoData instance |
CacheException | if SwitchInfoData instance with specified id already exists |
Definition at line 256 of file NetworkCache.java.
SwitchInfoData org.openkilda.pce.cache.NetworkCache.createSwitch | ( | SwitchInfoData | newSwitch | ) | throws CacheException |
Creates SwitchInfoData instance.
newSwitch | SwitchInfoData instance |
CacheException | if SwitchInfoData instance with specified id already exists |
Definition at line 203 of file NetworkCache.java.
IslInfoData org.openkilda.pce.cache.NetworkCache.deleteIsl | ( | String | islId | ) | throws CacheException |
Deletes IslInfoData instance.
islId | IslInfoData instance id |
CacheException | if IslInfoData instance with specified id does not exist |
Definition at line 419 of file NetworkCache.java.
SwitchInfoData org.openkilda.pce.cache.NetworkCache.deleteSwitch | ( | SwitchId | switchId | ) | throws CacheException |
Deletes SwitchInfoData instance.
switchId | SwitchInfoData instance id |
CacheException | if SwitchInfoData instance with specified id does not exist |
Definition at line 277 of file NetworkCache.java.
Set<IslInfoData> org.openkilda.pce.cache.NetworkCache.dumpIsls | ( | ) |
Gets all IslInfoData instances.
Definition at line 438 of file NetworkCache.java.
Set<SwitchInfoData> org.openkilda.pce.cache.NetworkCache.dumpSwitches | ( | ) |
Gets all SwitchInfoData instances.
Definition at line 296 of file NetworkCache.java.
Set<SwitchInfoData> org.openkilda.pce.cache.NetworkCache.getControllerSwitches | ( | String | controller | ) |
Gets all SwitchInfoData instances with specified controller ip address.
controller | controller ip address |
Definition at line 143 of file NetworkCache.java.
Set<SwitchInfoData> org.openkilda.pce.cache.NetworkCache.getDirectlyConnectedSwitches | ( | SwitchId | switchId | ) | throws CacheException |
Gets all SwitchInfoData instances directly connected to specified.
switchId | switch id |
CacheException | if SwitchInfoData instance with specified id does not exist |
Definition at line 158 of file NetworkCache.java.
IslInfoData org.openkilda.pce.cache.NetworkCache.getIsl | ( | String | islId | ) | throws CacheException |
Get IslInfoData instance.
islId | IslInfoData instance id |
CacheException | if IslInfoData instance with specified id does not exist |
Definition at line 337 of file NetworkCache.java.
Set<IslInfoData> org.openkilda.pce.cache.NetworkCache.getIslsByDestination | ( | SwitchId | switchId | ) |
Gets all IslInfoData instances which end node is specified SwitchInfoData instance.
switchId | SwitchInfoData instance id |
CacheException | if SwitchInfoData instance with specified id does not exists |
Definition at line 100 of file NetworkCache.java.
Set<IslInfoData> org.openkilda.pce.cache.NetworkCache.getIslsBySource | ( | SwitchId | switchId | ) |
Gets all IslInfoData instances which start node is specified SwitchInfoData instance.
switchId | SwitchInfoData instance id |
CacheException | if SwitchInfoData instance with specified id does not exists |
Definition at line 85 of file NetworkCache.java.
Set<IslInfoData> org.openkilda.pce.cache.NetworkCache.getIslsBySwitch | ( | SwitchId | switchId | ) | throws CacheException |
Gets all IslInfoData instances which start or end node is specified SwitchInfoData instance.
switchId | SwitchInfoData instance id |
CacheException | if SwitchInfoData instance with specified id does not exists |
Definition at line 115 of file NetworkCache.java.
Set<SwitchInfoData> org.openkilda.pce.cache.NetworkCache.getStateSwitches | ( | SwitchState | state | ) |
Gets all SwitchInfoData instances in specified SwitchState state.
state | SwitchState state |
Definition at line 129 of file NetworkCache.java.
SwitchInfoData org.openkilda.pce.cache.NetworkCache.getSwitch | ( | SwitchId | switchId | ) | throws CacheException |
Gets SwitchInfoData instance.
switchId | SwitchInfoData instance id |
CacheException | if SwitchInfoData instance with specified id does not exist |
Definition at line 184 of file NetworkCache.java.
void org.openkilda.pce.cache.NetworkCache.load | ( | Set< SwitchInfoData > | switches, |
Set< IslInfoData > | isls | ||
) |
Fills cache.
switches | Set of SwitchInfoData instances |
isls | Set of IslInfoData instances |
Definition at line 70 of file NetworkCache.java.
boolean org.openkilda.pce.cache.NetworkCache.switchIsOperable | ( | SwitchId | switchId | ) |
Checks if switch in operational state.
switchId | switch id |
Definition at line 320 of file NetworkCache.java.
String org.openkilda.pce.cache.NetworkCache.toString | ( | ) |
Definition at line 494 of file NetworkCache.java.
IslInfoData org.openkilda.pce.cache.NetworkCache.updateIsl | ( | IslInfoData | isl | ) | throws CacheException |
Updates IslInfoData instance.
isl | new IslInfoData instance |
CacheException | if SwitchInfoData related to IslInfoData instance do not exist |
Definition at line 375 of file NetworkCache.java.
SwitchInfoData org.openkilda.pce.cache.NetworkCache.updateSwitch | ( | SwitchInfoData | newSwitch | ) | throws CacheException |
Updates SwitchInfoData instance.
newSwitch | SwitchInfoData instance |
CacheException | if SwitchInfoData instance with specified id does not exist |
Definition at line 229 of file NetworkCache.java.