Open Kilda Java Documentation
DummyIIslFilter.java
Go to the documentation of this file.
1
package
org.openkilda.wfm.isl;
2
3
import
org
.
openkilda
.
messaging
.
model
.
DiscoveryLink
;
4
import
org
.
openkilda
.
messaging
.
model
.
SwitchId
;
5
6
import
java.util.HashSet;
7
import
java.util.Set;
8
9
public
class
DummyIIslFilter
implements
IIslFilter
{
10
private
final
Set<DiscoveryLink> matchSet;
11
12
public
DummyIIslFilter
() {
13
this.matchSet =
new
HashSet<>();
14
}
15
16
public
void
add
(
SwitchId
switchId,
int
portId) {
17
DiscoveryLink
match =
new
DiscoveryLink
(switchId, portId, 1,
DiscoveryLink
.
ENDLESS_ATTEMPTS
);
18
matchSet.add(match);
19
}
20
21
public
void
clear
() {
22
matchSet.clear();
23
}
24
25
@Override
26
public
boolean
isMatch
(
DiscoveryLink
subject) {
27
return
matchSet.contains(subject);
28
}
29
30
public
Set<DiscoveryLink>
getMatchSet
() {
31
return
matchSet;
32
}
33
}
org.openkilda.wfm.isl.DummyIIslFilter.DummyIIslFilter
DummyIIslFilter()
Definition:
DummyIIslFilter.java:12
org.openkilda.wfm.isl.DummyIIslFilter.isMatch
boolean isMatch(DiscoveryLink subject)
Definition:
DummyIIslFilter.java:26
org.openkilda.messaging.model.DiscoveryLink.ENDLESS_ATTEMPTS
static final int ENDLESS_ATTEMPTS
Definition:
DiscoveryLink.java:37
org.openkilda.messaging.model
Definition:
AbstractNetworkEndpoint.java:16
org.openkilda.messaging
Definition:
BaseMessage.java:16
org.openkilda.wfm.isl.IIslFilter
Definition:
IIslFilter.java:5
org
org.openkilda.wfm.isl.DummyIIslFilter.add
void add(SwitchId switchId, int portId)
Definition:
DummyIIslFilter.java:16
org.openkilda.wfm.isl.DummyIIslFilter
Definition:
DummyIIslFilter.java:9
org.openkilda.wfm.isl.DummyIIslFilter.clear
void clear()
Definition:
DummyIIslFilter.java:21
org.openkilda
org.openkilda.messaging.model.DiscoveryLink
Definition:
DiscoveryLink.java:32
org.openkilda.wfm.isl.DummyIIslFilter.getMatchSet
Set< DiscoveryLink > getMatchSet()
Definition:
DummyIIslFilter.java:30
org.openkilda.messaging.model.SwitchId
Definition:
SwitchId.java:29
open-kilda-develop
services
wfm
src
main
java
org
openkilda
wfm
isl
DummyIIslFilter.java
Generated by
1.8.14