Jonathan Hart | 062a2e8 | 2014-02-03 09:41:57 -0800 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.networkgraph; |
| 2 | |
Yuta HIGUCHI | 181d34d | 2014-02-05 15:05:46 -0800 | [diff] [blame^] | 3 | /** |
| 4 | * Interface of Link Object exposed to the "NB" read-only Topology. |
| 5 | * |
| 6 | * Everything returned by these interfaces must be either Unmodifiable view, |
| 7 | * immutable object, or a copy of the original "SB" In-memory Topology. |
| 8 | * |
| 9 | */ |
Jonathan Hart | 062a2e8 | 2014-02-03 09:41:57 -0800 | [diff] [blame] | 10 | public interface Link { |
| 11 | public Port getSourcePort(); |
| 12 | public Port getDestinationPort(); |
| 13 | public Switch getSourceSwitch(); |
| 14 | public Switch getDestinationSwitch(); |
Yuta HIGUCHI | 181d34d | 2014-02-05 15:05:46 -0800 | [diff] [blame^] | 15 | |
Jonathan Hart | 062a2e8 | 2014-02-03 09:41:57 -0800 | [diff] [blame] | 16 | public long getLastSeenTime(); |
| 17 | public int getCost(); |
Yuta HIGUCHI | 181d34d | 2014-02-05 15:05:46 -0800 | [diff] [blame^] | 18 | |
Jonathan Hart | 062a2e8 | 2014-02-03 09:41:57 -0800 | [diff] [blame] | 19 | // Not sure if we want to expose these northbound |
| 20 | public long getSourceSwitchDpid(); |
| 21 | public short getSourcePortNumber(); |
| 22 | public long getDestinationSwitchDpid(); |
| 23 | public short getDestinationPortNumber(); |
| 24 | } |