Yuta HIGUCHI | 8b389a7 | 2014-07-18 13:50:00 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.topology; |
| 2 | |
| 3 | import java.util.Collection; |
| 4 | |
| 5 | import net.floodlightcontroller.util.MACAddress; |
| 6 | import net.onrc.onos.core.util.Dpid; |
| 7 | import net.onrc.onos.core.util.LinkTuple; |
| 8 | import net.onrc.onos.core.util.SwitchPort; |
| 9 | |
| 10 | /** |
| 11 | * Interface to reference internal self-contained elements. |
| 12 | */ |
| 13 | public interface TopologyInternal extends Topology { |
Yuta HIGUCHI | 8b389a7 | 2014-07-18 13:50:00 -0700 | [diff] [blame] | 14 | /** |
| 15 | * Gets a SwitchEvent. |
| 16 | * |
| 17 | * @param dpid Switch DPID |
| 18 | * @return the SwitchEvent for the Switch DPID if found, otherwise null |
| 19 | */ |
| 20 | public SwitchEvent getSwitchEvent(Dpid dpid); |
| 21 | |
| 22 | /** |
Pavlin Radoslavov | 054cd59 | 2014-08-07 20:57:16 -0700 | [diff] [blame] | 23 | * Gets all SwitchEvent entries. |
| 24 | * |
| 25 | * @return all SwitchEvent entries. |
| 26 | */ |
| 27 | public Collection<SwitchEvent> getAllSwitchEvents(); |
| 28 | |
| 29 | /** |
Yuta HIGUCHI | 8b389a7 | 2014-07-18 13:50:00 -0700 | [diff] [blame] | 30 | * Gets a PortEvent. |
| 31 | * |
| 32 | * @param port Port identifier |
| 33 | * @return the PortEvent for the Port identifier if found, otherwise null |
| 34 | */ |
| 35 | public PortEvent getPortEvent(SwitchPort port); |
| 36 | |
| 37 | /** |
Pavlin Radoslavov | 054cd59 | 2014-08-07 20:57:16 -0700 | [diff] [blame] | 38 | * Gets all PortEvent entries. |
| 39 | * |
| 40 | * @return all PortEvent entries. |
| 41 | */ |
| 42 | public Collection<PortEvent> getAllPortEvents(); |
| 43 | |
| 44 | /** |
Yuta HIGUCHI | 8b389a7 | 2014-07-18 13:50:00 -0700 | [diff] [blame] | 45 | * Gets a LinkEvent. |
| 46 | * |
| 47 | * @param linkId Link identifier |
| 48 | * @return the LinkEvent for the Link identifier if found, otherwise null |
| 49 | */ |
| 50 | public LinkEvent getLinkEvent(LinkTuple linkId); |
| 51 | |
| 52 | /** |
| 53 | * Gets a LinkEvent. |
| 54 | * |
| 55 | * @param linkId Link identifier |
| 56 | * @param type type |
| 57 | * @return the LinkEvent for the Link identifier and type if found, otherwise null |
| 58 | */ |
| 59 | public LinkEvent getLinkEvent(final LinkTuple linkId, final String type); |
| 60 | |
| 61 | /** |
Pavlin Radoslavov | 054cd59 | 2014-08-07 20:57:16 -0700 | [diff] [blame] | 62 | * Gets a collection of LinkEvent entries. |
Yuta HIGUCHI | 8b389a7 | 2014-07-18 13:50:00 -0700 | [diff] [blame] | 63 | * |
| 64 | * @param linkId Link identifier |
Pavlin Radoslavov | 054cd59 | 2014-08-07 20:57:16 -0700 | [diff] [blame] | 65 | * @return Collection of LinkEvent entries. |
Yuta HIGUCHI | 8b389a7 | 2014-07-18 13:50:00 -0700 | [diff] [blame] | 66 | */ |
| 67 | public Collection<LinkEvent> getLinkEvents(LinkTuple linkId); |
| 68 | |
| 69 | /** |
Pavlin Radoslavov | 054cd59 | 2014-08-07 20:57:16 -0700 | [diff] [blame] | 70 | * Gets all LinkEvent entries. |
| 71 | * |
| 72 | * @return all LinkEvent entries. |
| 73 | */ |
| 74 | public Collection<LinkEvent> getAllLinkEvents(); |
| 75 | |
| 76 | /** |
Yuta HIGUCHI | 8b389a7 | 2014-07-18 13:50:00 -0700 | [diff] [blame] | 77 | * Gets a HostEvent. |
| 78 | * |
| 79 | * @param mac MACAddress of the host |
| 80 | * @return the HostEvent for the MACAddress if found, otherwise null |
| 81 | */ |
| 82 | public HostEvent getHostEvent(MACAddress mac); |
| 83 | |
Pavlin Radoslavov | 054cd59 | 2014-08-07 20:57:16 -0700 | [diff] [blame] | 84 | /** |
| 85 | * Gets all HostEvent entries. |
| 86 | * |
| 87 | * @return all HostEvent entries. |
| 88 | */ |
| 89 | public Collection<HostEvent> getAllHostEvents(); |
Yuta HIGUCHI | 8b389a7 | 2014-07-18 13:50:00 -0700 | [diff] [blame] | 90 | } |