![]() |
Open Kilda Java Documentation
|
Public Member Functions | |
Long | getWeight (IslInfoData isl) |
ImmutablePair< PathInfoData, PathInfoData > | getPath (Flow flow, AvailableNetwork currentNetwork, Strategy strategy) |
ImmutablePair< PathInfoData, PathInfoData > | getPath (Flow flow, Strategy strategy) |
List< FlowInfo > | getFlowInfo () |
AvailableNetwork | getAvailableNetwork (boolean ignoreBandwidth, long requestedBandwidth) |
PathComputer | withNetwork (MutableNetwork< SwitchInfoData, IslInfoData > network) |
![]() | |
default List< Flow > | getAllFlows () |
default List< Flow > | getFlow (String flowId) |
default List< Flow > | getFlows (String flowId) |
default List< SwitchInfoData > | getSwitches () |
default List< IslInfoData > | getIsls () |
Definition at line 41 of file PathComputerMock.java.
AvailableNetwork org.openkilda.pce.provider.PathComputerMock.getAvailableNetwork | ( | boolean | ignoreBandwidth, |
long | requestedBandwidth | ||
) |
Loads network and ignores all ISLs with not enough available bandwidth if ignoreBandwidth is false.
ignoreBandwidth | defines if available bandwidth of links should be taken into account for calculations. |
requestedBandwidth | links in path should have enough amount of available bandwidth. |
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 87 of file PathComputerMock.java.
List<FlowInfo> org.openkilda.pce.provider.PathComputerMock.getFlowInfo | ( | ) |
Interact with the PathComputer to get the FlowInfo for all flows.
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 82 of file PathComputerMock.java.
ImmutablePair<PathInfoData, PathInfoData> org.openkilda.pce.provider.PathComputerMock.getPath | ( | Flow | flow, |
AvailableNetwork | network, | ||
Strategy | strategy | ||
) |
Gets path between source and destination switches for specified flow in preloaded network topology.
flow | Flow instances |
network | prepared network where searching will be performed. |
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 51 of file PathComputerMock.java.
ImmutablePair<PathInfoData, PathInfoData> org.openkilda.pce.provider.PathComputerMock.getPath | ( | Flow | flow, |
Strategy | strategy | ||
) |
Gets path between source and destination switch for specified flow.
flow | Flow instances |
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 77 of file PathComputerMock.java.
Long org.openkilda.pce.provider.PathComputerMock.getWeight | ( | IslInfoData | isl | ) |
Gets isl weight.
isl | isl instance |
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 45 of file PathComputerMock.java.
PathComputer org.openkilda.pce.provider.PathComputerMock.withNetwork | ( | MutableNetwork< SwitchInfoData, IslInfoData > | network | ) |
Definition at line 161 of file PathComputerMock.java.