Jonathan Hart | c7ca35d | 2013-06-25 20:54:25 +1200 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.proxyarp; |
| 2 | |
| 3 | |
| 4 | public class ArpTableEntry { |
| 5 | |
| 6 | private byte[] macAddress; |
| 7 | private long timeLastSeen; |
| 8 | |
| 9 | public ArpTableEntry(byte[] macAddress, long timeLastSeen) { |
| 10 | this.macAddress = macAddress; |
| 11 | this.timeLastSeen = timeLastSeen; |
| 12 | } |
| 13 | |
| 14 | public byte[] getMacAddress() { |
| 15 | return macAddress; |
| 16 | } |
| 17 | |
| 18 | public long getTimeLastSeen() { |
| 19 | return timeLastSeen; |
| 20 | } |
| 21 | |
| 22 | public void setTimeLastSeen(long time){ |
| 23 | //TODO thread safety issues? |
| 24 | timeLastSeen = time; |
| 25 | } |
| 26 | |
| 27 | } |