Speeding up stuff.
HostDescription now passes up just a single IpAddress.
Showing
4 changed files
with
52 additions
and
0 deletions
| 1 | +package org.onlab.onos; | ||
| 2 | + | ||
| 3 | +import java.util.Objects; | ||
| 4 | + | ||
| 5 | +/** | ||
| 6 | + * Test application ID. | ||
| 7 | + */ | ||
| 8 | +public class TestApplicationId implements ApplicationId { | ||
| 9 | + | ||
| 10 | + private final String name; | ||
| 11 | + private final short id; | ||
| 12 | + | ||
| 13 | + public TestApplicationId(String name) { | ||
| 14 | + this.name = name; | ||
| 15 | + this.id = (short) Objects.hash(name); | ||
| 16 | + } | ||
| 17 | + | ||
| 18 | + public static ApplicationId create(String name) { | ||
| 19 | + return new TestApplicationId(name); | ||
| 20 | + } | ||
| 21 | + | ||
| 22 | + @Override | ||
| 23 | + public short id() { | ||
| 24 | + return id; | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | + @Override | ||
| 28 | + public String name() { | ||
| 29 | + return name; | ||
| 30 | + } | ||
| 31 | +} |
tools/package/bin/onos-jpenable
0 → 100755
tools/test/cells/cbench
0 → 100644
-
Please register or login to post a comment