![]() |
Open Kilda Java Documentation
|
Classes | |
| enum | Strategy |
Public Member Functions | |
| default Long | getWeight (IslInfoData isl) |
| ImmutablePair< PathInfoData, PathInfoData > | getPath (Flow flow, AvailableNetwork network, Strategy strategy) throws UnroutablePathException, RecoverableException |
| ImmutablePair< PathInfoData, PathInfoData > | getPath (Flow flow, Strategy strategy) throws UnroutablePathException, RecoverableException |
| default List< FlowInfo > | getFlowInfo () |
| default List< Flow > | getAllFlows () |
| default List< Flow > | getFlow (String flowId) |
| default List< Flow > | getFlows (String flowId) |
| default List< SwitchInfoData > | getSwitches () |
| default List< IslInfoData > | getIsls () |
| AvailableNetwork | getAvailableNetwork (boolean ignoreBandwidth, long requestedBandwidth) |
PathComputation interface represent operations on flow path.
Definition at line 33 of file PathComputer.java.
| default List<Flow> org.openkilda.pce.provider.PathComputer.getAllFlows | ( | ) |
Read flows from Neo4j and covert them in our common representation org.openkilda.messaging.model.Flow
Implemented in org.openkilda.pce.provider.NeoDriver.
Definition at line 87 of file PathComputer.java.
| AvailableNetwork org.openkilda.pce.provider.PathComputer.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. |
Implemented in org.openkilda.pce.provider.NeoDriver, org.openkilda.pce.provider.PathComputerMock, and org.openkilda.wfm.topology.flow.PathComputerMock.
| default List<Flow> org.openkilda.pce.provider.PathComputer.getFlow | ( | String | flowId | ) |
Read a single flow from Neo4j and convert to our common representation Flow. In reality, a single flow will typically be bi-directional, so just represent as a list.
Implemented in org.openkilda.pce.provider.NeoDriver.
Definition at line 97 of file PathComputer.java.
| default List<FlowInfo> org.openkilda.pce.provider.PathComputer.getFlowInfo | ( | ) |
Interact with the PathComputer to get the FlowInfo for all flows.
Implemented in org.openkilda.pce.provider.NeoDriver, and org.openkilda.pce.provider.PathComputerMock.
Definition at line 77 of file PathComputer.java.
| default List<Flow> org.openkilda.pce.provider.PathComputer.getFlows | ( | String | flowId | ) |
Implemented in org.openkilda.pce.provider.NeoDriver.
Definition at line 104 of file PathComputer.java.
| default List<IslInfoData> org.openkilda.pce.provider.PathComputer.getIsls | ( | ) |
Implemented in org.openkilda.pce.provider.NeoDriver.
Definition at line 112 of file PathComputer.java.
| ImmutablePair<PathInfoData, PathInfoData> org.openkilda.pce.provider.PathComputer.getPath | ( | Flow | flow, |
| AvailableNetwork | network, | ||
| Strategy | strategy | ||
| ) | throws UnroutablePathException, RecoverableException |
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. |
Implemented in org.openkilda.pce.provider.NeoDriver, org.openkilda.pce.provider.PathComputerMock, and org.openkilda.wfm.topology.flow.PathComputerMock.
| ImmutablePair<PathInfoData, PathInfoData> org.openkilda.pce.provider.PathComputer.getPath | ( | Flow | flow, |
| Strategy | strategy | ||
| ) | throws UnroutablePathException, RecoverableException |
Gets path between source and destination switch for specified flow.
| flow | Flow instances |
Implemented in org.openkilda.pce.provider.PathComputerMock, org.openkilda.pce.provider.NeoDriver, and org.openkilda.wfm.topology.flow.PathComputerMock.
| default List<SwitchInfoData> org.openkilda.pce.provider.PathComputer.getSwitches | ( | ) |
Implemented in org.openkilda.pce.provider.NeoDriver.
Definition at line 108 of file PathComputer.java.
| default Long org.openkilda.pce.provider.PathComputer.getWeight | ( | IslInfoData | isl | ) |
Gets isl weight.
| isl | isl instance |
Implemented in org.openkilda.pce.provider.PathComputerMock.
Definition at line 49 of file PathComputer.java.