![]() |
Open Kilda Java Documentation
|
Public Member Functions | |
| NeoDriver (Driver driver) | |
| ImmutablePair< PathInfoData, PathInfoData > | getPath (Flow flow, Strategy strategy) throws UnroutablePathException, RecoverableException |
| ImmutablePair< PathInfoData, PathInfoData > | getPath (Flow flow, AvailableNetwork network, Strategy strategy) throws UnroutablePathException, RecoverableException |
| List< FlowInfo > | getFlowInfo () |
| List< Flow > | getFlow (String flowId) |
| List< Flow > | getFlows (String flowId) |
| List< Flow > | getAllFlows () |
| List< SwitchInfoData > | getSwitches () |
| List< IslInfoData > | getIsls () |
| AvailableNetwork | getAvailableNetwork (boolean ignoreBandwidth, long requestedBandwidth) |
Public Member Functions inherited from org.openkilda.pce.provider.PathComputer | |
| default Long | getWeight (IslInfoData isl) |
Definition at line 52 of file NeoDriver.java.
| org.openkilda.pce.provider.NeoDriver.NeoDriver | ( | Driver | driver | ) |
Definition at line 58 of file NeoDriver.java.
| List<Flow> org.openkilda.pce.provider.NeoDriver.getAllFlows | ( | ) |
Read flows from Neo4j and covert them in our common representation org.openkilda.messaging.model.Flow
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 188 of file NeoDriver.java.
| AvailableNetwork org.openkilda.pce.provider.NeoDriver.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 319 of file NeoDriver.java.
| List<Flow> org.openkilda.pce.provider.NeoDriver.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.
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 175 of file NeoDriver.java.
| List<FlowInfo> org.openkilda.pce.provider.NeoDriver.getFlowInfo | ( | ) |
Interact with the PathComputer to get the FlowInfo for all flows.
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 148 of file NeoDriver.java.
| List<Flow> org.openkilda.pce.provider.NeoDriver.getFlows | ( | String | flowId | ) |
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 181 of file NeoDriver.java.
| List<IslInfoData> org.openkilda.pce.provider.NeoDriver.getIsls | ( | ) |
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 263 of file NeoDriver.java.
| ImmutablePair<PathInfoData, PathInfoData> org.openkilda.pce.provider.NeoDriver.getPath | ( | Flow | flow, |
| Strategy | strategy | ||
| ) | throws UnroutablePathException, RecoverableException |
Gets path between source and destination switch for specified flow.
| flow | Flow instances |
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 66 of file NeoDriver.java.
| ImmutablePair<PathInfoData, PathInfoData> org.openkilda.pce.provider.NeoDriver.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. |
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 76 of file NeoDriver.java.
| List<SwitchInfoData> org.openkilda.pce.provider.NeoDriver.getSwitches | ( | ) |
Implements org.openkilda.pce.provider.PathComputer.
Definition at line 228 of file NeoDriver.java.