![]() |
Open Kilda Java Documentation
|
Definition at line 46 of file FlowCache.java.
boolean org.openkilda.pce.cache.FlowCache.cacheContainsFlow | ( | String | flowId | ) |
Checks if flow pool contains Flow instance.
flowId | Flow instance id |
Definition at line 117 of file FlowCache.java.
void org.openkilda.pce.cache.FlowCache.clear | ( | ) |
Clears the inner network and pools.
Definition at line 76 of file FlowCache.java.
ImmutablePair<Flow, Flow> org.openkilda.pce.cache.FlowCache.createFlow | ( | Flow | flow, |
ImmutablePair< PathInfoData, PathInfoData > | path | ||
) |
Creates flow.
flow | flow |
path | flow path |
Definition at line 268 of file FlowCache.java.
ImmutablePair<Flow, Flow> org.openkilda.pce.cache.FlowCache.deleteFlow | ( | String | flowId | ) |
Set<ImmutablePair<Flow, Flow> > org.openkilda.pce.cache.FlowCache.dumpFlows | ( | ) |
Set<ImmutablePair<Flow, Flow> > org.openkilda.pce.cache.FlowCache.getActiveFlowsWithAffectedPath | ( | SwitchId | switchId | ) |
Gets active or cached flows with specified switch in the path.
switchId | switch id |
Definition at line 129 of file FlowCache.java.
Set<ImmutablePair<Flow, Flow> > org.openkilda.pce.cache.FlowCache.getActiveFlowsWithAffectedPath | ( | IslInfoData | islData | ) |
Gets active flows with specified isl in the path.
islData | isl |
Definition at line 146 of file FlowCache.java.
Set<ImmutablePair<Flow, Flow> > org.openkilda.pce.cache.FlowCache.getActiveFlowsWithAffectedPath | ( | PortInfoData | portData | ) |
Gets flows with specified switch and port in the path.
portData | port |
Definition at line 160 of file FlowCache.java.
Set<Integer> org.openkilda.pce.cache.FlowCache.getAllocatedCookies | ( | ) |
Definition at line 545 of file FlowCache.java.
Map<SwitchId, Set<Integer> > org.openkilda.pce.cache.FlowCache.getAllocatedMeters | ( | ) |
Definition at line 549 of file FlowCache.java.
Set<Integer> org.openkilda.pce.cache.FlowCache.getAllocatedVlans | ( | ) |
Definition at line 541 of file FlowCache.java.
ImmutablePair<Flow, Flow> org.openkilda.pce.cache.FlowCache.getFlow | ( | String | flowId | ) |
ImmutablePair<PathInfoData, PathInfoData> org.openkilda.pce.cache.FlowCache.getFlowPath | ( | String | flowId | ) |
Gets flow path.
flowId | flow id |
Definition at line 237 of file FlowCache.java.
Gets flows with specified switch and port.
switchId | the switch ID |
port | the port |
Definition at line 500 of file FlowCache.java.
Set<Flow> org.openkilda.pce.cache.FlowCache.getFlowsForEndpoint | ( | SwitchId | switchId, |
int | port, | ||
int | vlan | ||
) |
Gets flows with specified switch, port and vlan.
NOTE: The result set also includes flows that match switch, port and with no VLAN (vlan = 0) defined.
switchId | the switch ID |
port | the port |
vlan | the vlan |
Definition at line 520 of file FlowCache.java.
Map<String, String> org.openkilda.pce.cache.FlowCache.getFlowsWithAffectedEndpoint | ( | SwitchId | switchId | ) |
Gets flows for state change.
switchId | switch id |
Definition at line 218 of file FlowCache.java.
Set<ImmutablePair<Flow, Flow> > org.openkilda.pce.cache.FlowCache.getFlowsWithAffectedPath | ( | SwitchId | switchId | ) |
Gets flows with specified switch in the path.
switchId | switch id |
Definition at line 175 of file FlowCache.java.
Set<ImmutablePair<Flow, Flow> > org.openkilda.pce.cache.FlowCache.getFlowsWithAffectedPath | ( | IslInfoData | islData | ) |
Gets flows with specified isl in the path.
islData | isl |
Definition at line 191 of file FlowCache.java.
Set<ImmutablePair<Flow, Flow> > org.openkilda.pce.cache.FlowCache.getFlowsWithAffectedPath | ( | PortInfoData | portData | ) |
Gets flows with specified switch and port in the path.
portData | port |
Definition at line 204 of file FlowCache.java.
Set<ImmutablePair<Flow, Flow> > org.openkilda.pce.cache.FlowCache.getIngressAndEgressFlows | ( | SwitchId | switchId | ) |
Gets flow pairs which have source or destination is on the switch.
Definition at line 534 of file FlowCache.java.
Set<PathNode> org.openkilda.pce.cache.FlowCache.getPathIntersection | ( | PathInfoData | firstPath, |
PathInfoData | secondPath | ||
) |
Returns intersection between two paths.
firstPath | first PathInfoData instances |
secondPath | second PathInfoData instances |
Definition at line 354 of file FlowCache.java.
ImmutablePair<Set<PathNode>, Set<PathNode> > org.openkilda.pce.cache.FlowCache.getPathIntersection | ( | ImmutablePair< PathInfoData, PathInfoData > | firstPath, |
ImmutablePair< PathInfoData, PathInfoData > | secondPath | ||
) |
Returns intersection between two paths.
firstPath | first LinkedList of PathInfoData instances |
secondPath | second LinkedList of PathInfoData instances |
Definition at line 368 of file FlowCache.java.
boolean org.openkilda.pce.cache.FlowCache.isOneSwitchFlow | ( | ImmutablePair< Flow, Flow > | flow | ) |
Checks if flow is through single switch.
FIXME(surabujin): looks extremely over engineered. Can be replaces with org.openkilda.messaging.model.Flow::isOneSwitchFlow()
flow | flow |
Definition at line 468 of file FlowCache.java.
void org.openkilda.pce.cache.FlowCache.load | ( | Set< ImmutablePair< Flow, Flow >> | flows | ) |
void org.openkilda.pce.cache.FlowCache.pushFlow | ( | ImmutablePair< Flow, Flow > | flow | ) |
Track and allocate the flow.
flow | The flow to track / allocate. |
Definition at line 106 of file FlowCache.java.
ImmutablePair<Flow, Flow> org.openkilda.pce.cache.FlowCache.putFlow | ( | ImmutablePair< Flow, Flow > | flow | ) |
Puts flow directly to the cache.
flow | flow |
Definition at line 87 of file FlowCache.java.
ImmutablePair<Flow, Flow> org.openkilda.pce.cache.FlowCache.removeFlow | ( | String | flowId | ) |
Removes flow directly from the cache.
flowId | flow id |
Definition at line 97 of file FlowCache.java.
String org.openkilda.pce.cache.FlowCache.toString | ( | ) |
Definition at line 557 of file FlowCache.java.
ImmutablePair<Flow, Flow> org.openkilda.pce.cache.FlowCache.updateFlow | ( | Flow | flow, |
ImmutablePair< PathInfoData, PathInfoData > | path | ||
) |
Updates flow.
flow | flow |
path | flow path |
Definition at line 312 of file FlowCache.java.